~cadence/bibliogram

ref: d660c849411808d12f8ab75beac87d633491c6e2 bibliogram/src/site/pug/blocked.pug -rw-r--r-- 1.9 KiB
d660c849Cadence Ember Fix shortcode fetching 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//- Needs website_origin, instancesURL, username, expiresMinutes?

include includes/error.pug

doctype html
html#bibliogram-identifier-blocked
	head
		title= `Blocked | Bibliogram`
		include includes/head
		script(src=getStaticURL("html", "/static/js/user_available_waiter.js") type="module")
	body
		div(data-username=username)#data
		.error-page
			h1.code 503
			p.message Blocked by Instagram
			p.explanation
				| Instagram is temporarily refusing to provide data to this server.

			.width-block
				#dynamic-status-area

				ul
					li
						| #[a(href="#unblock-on-mac-or-linux") Unblock with shell], no download, Mac and Linux only
						.hidden-section#unblock-on-mac-or-linux
							p Open the Terminal application, then paste this code:
							pre curl -Ss #{website_origin}/u/#{username}/unblock.sh | bash
					li
						| #[a(href="#unblock-with-userscript") Unblock automatically with userscript], any modern browser
						.hidden-section#unblock-with-userscript
							p If you don't already have a userscript manager, install #[a(href="https://violentmonkey.github.io/get-it/") Violentmonkey] (open source) or #[a(href="https://www.tampermonkey.net/") Tampermonkey] (closed source)
							p #[a(href="/userscripts/unblock.user.js") Open this link.] You should be prompted to install the script. Press "Confirm installation" on that page.
							p Reload this page.
					li To learn more, #[a(href="https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instagram%20rate%20limits.md#tldr-what-does-it-mean-if-an-instance-is-blocked") read about blocking.]
					li You may be able to avoid this by #[a(href="https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md") browsing on another instance.]
					li It's good to read scripts to see what they do. #[a(href=`${website_origin}/u/${username}/unblock.sh`) Read ./unblock.sh]

			a(href="/").back ↵ Return home