1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-22 23:02:46 +00:00

qute: add and change redirects

This commit is contained in:
Phantop 2022-02-27 18:58:18 -05:00
parent c43402aed4
commit d50a9cb51f

View file

@ -2,7 +2,7 @@ from qutebrowser.api import interceptor
import operator
invid = 'vid.puffyan.us'
nitter = 'nitter.snopyta.org'
nitter = 'nitter.net'
reddit = 'libreddit.pussthecat.org'
o = operator.methodcaller
@ -21,12 +21,13 @@ MAP = {
"youtube.com": o(s, invid),
"www.youtube.com": o(s, invid),
"www.instagram.com": o(s, 'bibliogram.art'),
"www.instagram.com": o(s, 'bibliogram.pussthecat.org'),
"www.amazon.com": o(s, 'smile.amazon.com'),
"imgur.com" : o(s, 'imgin.voidnet.tech'),
"imgur.com" : o(s, 'i.bcow.xyz'),
"medium.com" : o(s, 'scribe.rip'),
"www.twitch.tv" : o(s, 'm.twitch.tv'),
"discord.com" : o(s, 'canary.discord.com')
"discord.com" : o(s, 'canary.discord.com'),
"vm.tiktok.com" : o(s, 'proxitok.herokuapp.com')
}
def f(info: i.Request):
if (info.resource_type != i.ResourceType.main_frame or