mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-16 11:52:47 +00:00
Qute: maybe actually nitterize redirect
This commit is contained in:
parent
702c683259
commit
05ed7391ff
|
@ -97,12 +97,17 @@ c.colors.completion.scrollbar.fg = accent
|
||||||
config.set('content.register_protocol_handler', True, 'https://mail.tutanota.com')
|
config.set('content.register_protocol_handler', True, 'https://mail.tutanota.com')
|
||||||
config.set('content.desktop_capture', True, 'https://discord.com')
|
config.set('content.desktop_capture', True, 'https://discord.com')
|
||||||
config.set('content.persistent_storage', True, 'https://mega.nz')
|
config.set('content.persistent_storage', True, 'https://mega.nz')
|
||||||
|
config.set('content.javascript.enabled', False, 'https://twitter.com')
|
||||||
|
|
||||||
# redirects
|
# redirects
|
||||||
import operator, typing
|
import operator, typing
|
||||||
REDIRECT_MAP = {
|
REDIRECT_MAP = {
|
||||||
"www.reddit.com": operator.methodcaller('setHost', 'old.reddit.com'),
|
"www.reddit.com": operator.methodcaller('setHost', 'old.reddit.com'),
|
||||||
"twitter.com": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
"twitter.com": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
||||||
|
"api.twitter.com": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
||||||
|
"platform.twitter.com": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
||||||
|
"www.platform.twitter.com": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
||||||
|
"t.co": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
||||||
"mobile.twitter.com": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
"mobile.twitter.com": operator.methodcaller('setHost', 'nitter.snopyta.org'),
|
||||||
"www.instagram.com": operator.methodcaller('setHost', 'bibliogram.snopyta.org'),
|
"www.instagram.com": operator.methodcaller('setHost', 'bibliogram.snopyta.org'),
|
||||||
"hn.algolia.com": operator.methodcaller('setHost', 'news.ycombinator.com'),
|
"hn.algolia.com": operator.methodcaller('setHost', 'news.ycombinator.com'),
|
||||||
|
|
Loading…
Reference in a new issue