qute: more adblock, redirs, binds, css

This commit is contained in:
Phantop 2022-03-01 22:57:07 -05:00
parent f4925ba8ee
commit 62c6a305ae
6 changed files with 61 additions and 4 deletions

View File

@ -11,3 +11,9 @@ abp("https://secure.fanboy.co.nz/fanboy-annoyance.txt")
abp("https://secure.fanboy.co.nz/fanboy-cookiemonster.txt")
abp("https://easylist-downloads.adblockplus.org/antiadblockfilters.txt")
abp("https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt")
abp("https://github.com/brave/adblock-lists/raw/master/brave-unbreak.txt")
abp("https://github.com/brave/adblock-lists/raw/master/coin-miners.txt")
abp("https://github.com/brave/adblock-lists/raw/master/brave-lists/brave-firstparty-cname.txt")
abp("https://github.com/brave/adblock-lists/raw/master/brave-lists/brave-firstparty.txt")
abp("https://github.com/brave/adblock-lists/raw/master/brave-lists/brave-social.txt")

View File

@ -4,6 +4,8 @@ bind = {
'<Ctrl-w>': 'tab-close',
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
',': 'hint links run mpv {hint-url}',
'aa': 'spawn kitty fish -c "dl && dl {url}"',
'as': 'spawn kitty fish -c "dl && ydl {url}"',
'e': 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload',
'E': 'config-cycle -p content.javascript.enabled ;; reload',
'm': 'mpv {url}',

View File

@ -1,10 +1,13 @@
config.load_autoconfig(False)
config.source('color.py')
config.source('adblock.py')
config.source('color.py')
config.source('bindings.py')
config.source('javascript.py')
config.source('redirects.py')
import subprocess
subprocess.run(["sassc", 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={}'

View File

@ -27,7 +27,8 @@ MAP = {
"medium.com" : o(s, 'scribe.rip'),
"www.twitch.tv" : o(s, 'm.twitch.tv'),
"discord.com" : o(s, 'canary.discord.com'),
"vm.tiktok.com" : o(s, 'proxitok.herokuapp.com')
"vm.tiktok.com" : o(s, 'proxitok.herokuapp.com'),
"en.wikipedia.org" : o(s, 'wikiless.org')
}
def f(info: i.Request):
if (info.resource_type != i.ResourceType.main_frame or

View File

@ -16,11 +16,16 @@
#app-mount [aria-label="Channels"] div [class^="unread"] { background-color: #cfcdcf; }
#app-mount [class^="container"] { background-color: transparent; }
#app-mount [aria-label$="sidebar"], #app-mount [aria-label="Inbox"], p#javascript-warning,
#app-mount [class^="privateChannels"] [class^="searchBar"], #app-mount [href="/store"],
#app-mount [aria-label$="gift"], #app-mount [aria-label="Help"] { display: none }
#app-mount [aria-label$="sidebar"], #app-mount [aria-label="Inbox"],
#app-mount [aria-label$="gift"], #app-mount [aria-label="Help"],
p#javascript-warning, ul.work > li.download > ul > li { display: none }
.app-container .doc-container .doc div { max-width: 666pt !important; margin: auto; }
body.dracula { max-width: 777pt; } body > nav { position: absolute; }
body>table>tbody>tr[bgcolor="#66FFFF"]>[bgcolor="#CCCCCC"] { background: #000000 }
ul.work > li.download { font-size: 0}
ul.work > li.download > ul { position: unset; border: none; display: inline}
ul.work > li.download > ul > li:nth-child(2) { display: inline; font-size: small }

40
qutebrowser/user.scss Normal file
View File

@ -0,0 +1,40 @@
#hnmain {
zoom: 120%;
background: #212121;
td[bgcolor="#ff6600"] { background: #4b5762; }
}
#app-mount {
$back: primary, secondary, secondary-alt, tertiary;
@each $i in $back { --background-#{$i}: transparent; }
--background-floating: rgba(0, 0, 0, .6);
--channeltextarea-background: transparent;
[class^="container"] { background-color: transparent; }
[aria-label="Channels"] div [class^="unread"] { background: #cfcdcf; }
$aria: gift, Help, Inbox, sidebar;
@each $i in $aria { [aria-label$="#{$i}"] { display: none; } }
[class^="privateChannels"] [class^="searchBar"], [href="/store"] { display: none; }
font-family: "Ubuntu Mono";
background: url(
"https://cdn.discordapp.com/attachments/773556458234052608/929383713932992512/0dKbZO5-16-9.webp"
);}
body.dracula { max-width: 777pt; }
body > nav { position: absolute; }
tbody>tr>[bgcolor="#CCCCCC"] { background: #000000; }
div.doc-container div.doc div { max-width: 666pt !important; margin: auto; }
p#javascript-warning { display: none; }
ul.work > li.download {
font-size: 0;
> ul {
position: unset;
border: none;
> li { font-size: small; }
> li:not(:nth-child(2)) { display: none; }
}
}