mirror of https://github.com/Phantop/dotfiles
qute: switch to miniflux, farside, ublock lists
This commit is contained in:
parent
3b6c0a5cfe
commit
8bb922424e
|
@ -13,7 +13,7 @@ a catbox 'curl https://catbox.moe/user/api.php -F reqtype=fileupload -F fileToUp
|
|||
a clip 'xclip -sel clip'
|
||||
a cpugov 's cpupower frequency-set -g performance'
|
||||
a dirdl 'wget -r -k -p --no-parent --no-clobber -e robots=off -R "index.html*"'
|
||||
a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -x16 -s16'
|
||||
a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16'
|
||||
a dot 'cd ~/.dotfiles'
|
||||
a ff 'fd -HILi -Edosdevices -E.git'
|
||||
a g git
|
||||
|
|
|
@ -22,3 +22,14 @@ abp("https://github.com/DandelionSprout/adfilt/raw/master/LegitimateURLShortener
|
|||
abp("https://github.com/DandelionSprout/adfilt/raw/master/AnnoyancesList")
|
||||
abp("https://github.com/DandelionSprout/adfilt/raw/master/SocialShareList.txt")
|
||||
abp("https://github.com/DandelionSprout/adfilt/raw/master/ExtremelyCondensedList.txt")
|
||||
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt")
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2020.txt")
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2021.txt")
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2022.txt")
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt")
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt")
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt")
|
||||
abp("https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt")
|
||||
abp("https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-online.txt")
|
||||
abp("https://pgl.yoyo.org/adservers/serverlist.php?hostformat=adblockplus&showintro=1&mimetype=plaintext")
|
||||
|
|
|
@ -13,7 +13,7 @@ bind = {
|
|||
'E': 'config-cycle -p content.javascript.enabled ;; reload',
|
||||
'm': 'mpv {url}',
|
||||
's1': 'download-open',
|
||||
'sa': 'open -t archive.is/?run=1&url={url}',
|
||||
'sa': 'open -t archive.is/submit/?url={url}',
|
||||
'sc': 'toggle-dark',
|
||||
'sd': "spawn fish -c 'dl; open (ls | rofi -dmenu -b -i || exit 0)'",
|
||||
'sg': 'debug-dump-page ~/Downloads/dump.html',
|
||||
|
|
|
@ -8,19 +8,17 @@ config.source('redirects.py')
|
|||
import subprocess
|
||||
subprocess.run(["sass", config.configdir / 'user.scss', config.configdir / 'user.css'])
|
||||
|
||||
c.url.default_page = 'feedly.com/i/my'
|
||||
c.url.start_pages = 'covid19.rpi.edu/dailycheckin'
|
||||
c.url.searchengines['y'] = 'vid.puffyan.us/search?q={}'
|
||||
|
||||
c.url.open_base_url = True
|
||||
c.content.fullscreen.window = True
|
||||
c.colors.webpage.darkmode.enabled = True
|
||||
c.url.start_pages = c.url.default_page = 'fast-headland-67505.herokuapp.com'
|
||||
config.set('content.javascript.enabled', True, c.url.start_pages)
|
||||
c.url.searchengines['y'] = 'farside.link/invidious/search?q={}'
|
||||
|
||||
c.tabs.show = 'multiple'
|
||||
c.confirm_quit = ['downloads']
|
||||
c.qt.force_platformtheme = 'gtk2'
|
||||
c.content.fullscreen.window = True
|
||||
c.content.user_stylesheets = 'user.css'
|
||||
c.content.cookies.accept = 'no-3rdparty'
|
||||
c.colors.webpage.darkmode.enabled = True
|
||||
c.colors.webpage.preferred_color_scheme = 'dark'
|
||||
c.colors.webpage.darkmode.policy.images = 'never'
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ c.content.javascript.enabled = False
|
|||
sites = [
|
||||
'canary.discord.com',
|
||||
'duckduckgo.com',
|
||||
'feedly.com',
|
||||
'mail.tutanota.com',
|
||||
'*.rpi.edu',
|
||||
'api-3e0243bb.duosecurity.com',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
dial https://covid19.rpi.edu/dailycheckin
|
||||
discord https://canary.discord.com/app
|
||||
hn https://news.ycombinator.com/
|
||||
lms https://lms.rpi.edu/ultra/stream
|
||||
tuta https://mail.tutanota.com
|
||||
dial covid19.rpi.edu/dailycheckin
|
||||
discord canary.discord.com/app
|
||||
hn news.ycombinator.com
|
||||
lms lms.rpi.edu/ultra/stream
|
||||
tuta mail.tutanota.com
|
||||
|
|
|
@ -1,35 +1,57 @@
|
|||
from qutebrowser.api import interceptor
|
||||
from urllib.parse import urljoin
|
||||
from PyQt5.QtCore import QUrl
|
||||
import operator
|
||||
|
||||
invid = 'vid.puffyan.us'
|
||||
nitter = 'nitter.pussthecat.org'
|
||||
reddit = 'libreddit.pussthecat.org'
|
||||
|
||||
o = operator.methodcaller
|
||||
s = 'setHost'
|
||||
i = interceptor
|
||||
|
||||
def farside(url: QUrl, i) -> bool:
|
||||
url.setHost('farside.link')
|
||||
p = url.path().strip('/')
|
||||
url.setPath(urljoin(i, p))
|
||||
return True
|
||||
|
||||
def nitter(url: QUrl) -> bool:
|
||||
return farside(url, '/nitter/')
|
||||
def rimgo(url: QUrl) -> bool:
|
||||
return farside(url, '/rimgo/')
|
||||
def scribe(url: QUrl) -> bool:
|
||||
return farside(url, '/scribe/')
|
||||
def wikiless(url: QUrl) -> bool:
|
||||
return farside(url, '/wikiless/')
|
||||
def invid(url: QUrl) -> bool:
|
||||
return farside(url, '/invidious/')
|
||||
def reddit(url: QUrl) -> bool:
|
||||
return farside(url, '/libreddit/')
|
||||
def bibliogram(url: QUrl) -> bool:
|
||||
return farside(url, '/bibliogram/')
|
||||
def simplytranslate(url: QUrl) -> bool:
|
||||
return farside(url, '/simplytranslate/')
|
||||
|
||||
MAP = {
|
||||
"reddit.com": o(s, reddit),
|
||||
"www.reddit.com": o(s, reddit),
|
||||
"old.reddit.com": o(s, reddit),
|
||||
"reddit.com": reddit,
|
||||
"www.reddit.com": reddit,
|
||||
"old.reddit.com": reddit,
|
||||
|
||||
"twitter.com": o(s, nitter),
|
||||
"mobile.twitter.com": o(s, nitter),
|
||||
"youtu.be": invid,
|
||||
"youtube.com": invid,
|
||||
"www.youtube.com": invid,
|
||||
|
||||
"youtu.be": o(s, invid),
|
||||
"youtube.com": o(s, invid),
|
||||
"www.youtube.com": o(s, invid),
|
||||
"twitter.com": nitter,
|
||||
"mobile.twitter.com": nitter,
|
||||
|
||||
"imgur.com" : rimgo,
|
||||
"medium.com" : scribe,
|
||||
"en.wikipedia.org" : wikiless,
|
||||
"www.instagram.com": bibliogram,
|
||||
"translate.google.com" : simplytranslate,
|
||||
|
||||
"www.instagram.com": o(s, 'bibliogram.pussthecat.org'),
|
||||
"www.amazon.com": o(s, 'smile.amazon.com'),
|
||||
"imgur.com" : o(s, 'i.bcow.xyz'),
|
||||
"medium.com" : o(s, 'scribe.rip'),
|
||||
"www.twitch.tv" : o(s, 'm.twitch.tv'),
|
||||
"www.amazon.com": o(s, 'smile.amazon.com'),
|
||||
"discord.com" : o(s, 'canary.discord.com'),
|
||||
"vm.tiktok.com" : o(s, 'proxitok.herokuapp.com'),
|
||||
"en.wikipedia.org" : o(s, 'wikiless.org'),
|
||||
"translate.google.com" : o(s, 'simplytranslate.pussthecat.org')
|
||||
}
|
||||
def f(info: i.Request):
|
||||
if (info.resource_type != i.ResourceType.main_frame or
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import url(https://github.com/panicsteve/shutup-css/raw/master/shutup.css);
|
||||
@import url(https://nitter.net/css/themes/twitter_dark.css);
|
||||
@import url(https://necolas.github.io/normalize.css/latest/normalize.css);
|
||||
#hnmain {
|
||||
zoom: 120%;
|
||||
|
|
Loading…
Reference in New Issue