diff --git a/qutebrowser/adblock.py b/qutebrowser/adblock.py index b820303..cd64d17 100644 --- a/qutebrowser/adblock.py +++ b/qutebrowser/adblock.py @@ -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") diff --git a/qutebrowser/bindings.py b/qutebrowser/bindings.py index e72f1f1..258933b 100644 --- a/qutebrowser/bindings.py +++ b/qutebrowser/bindings.py @@ -4,6 +4,8 @@ bind = { '': 'tab-close', '' : '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}', diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 44905db..b0fb3a2 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -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={}' diff --git a/qutebrowser/redirects.py b/qutebrowser/redirects.py index 9e97721..709b7f9 100644 --- a/qutebrowser/redirects.py +++ b/qutebrowser/redirects.py @@ -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 diff --git a/qutebrowser/user.css b/qutebrowser/user.css index be4574a..b5da948 100644 --- a/qutebrowser/user.css +++ b/qutebrowser/user.css @@ -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 } diff --git a/qutebrowser/user.scss b/qutebrowser/user.scss new file mode 100644 index 0000000..b354429 --- /dev/null +++ b/qutebrowser/user.scss @@ -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; } + } +}