mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-28 07:06:37 +00:00
qute: add and change redirects
This commit is contained in:
parent
c43402aed4
commit
d50a9cb51f
|
|
@ -2,7 +2,7 @@ from qutebrowser.api import interceptor
|
||||||
import operator
|
import operator
|
||||||
|
|
||||||
invid = 'vid.puffyan.us'
|
invid = 'vid.puffyan.us'
|
||||||
nitter = 'nitter.snopyta.org'
|
nitter = 'nitter.net'
|
||||||
reddit = 'libreddit.pussthecat.org'
|
reddit = 'libreddit.pussthecat.org'
|
||||||
|
|
||||||
o = operator.methodcaller
|
o = operator.methodcaller
|
||||||
|
|
@ -21,12 +21,13 @@ MAP = {
|
||||||
"youtube.com": o(s, invid),
|
"youtube.com": o(s, invid),
|
||||||
"www.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'),
|
"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'),
|
"medium.com" : o(s, 'scribe.rip'),
|
||||||
"www.twitch.tv" : o(s, 'm.twitch.tv'),
|
"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):
|
def f(info: i.Request):
|
||||||
if (info.resource_type != i.ResourceType.main_frame or
|
if (info.resource_type != i.ResourceType.main_frame or
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue