From ea60793808eb403034c196de2b6bd949cba00193 Mon Sep 17 00:00:00 2001 From: Phantop Date: Mon, 17 Oct 2022 22:32:55 -0400 Subject: [PATCH] qute: some theming and blocking updates --- qutebrowser/adblock.py | 3 +++ qutebrowser/config.py | 2 +- qutebrowser/user.scss | 55 +++++++++++++++++++++++++++++++++++------- 3 files changed, 50 insertions(+), 10 deletions(-) diff --git a/qutebrowser/adblock.py b/qutebrowser/adblock.py index c11dab4..7022046 100644 --- a/qutebrowser/adblock.py +++ b/qutebrowser/adblock.py @@ -1,6 +1,7 @@ host = c.content.blocking.hosts.lists.append host("https://www.github.developerdan.com/hosts/lists/facebook-extended.txt") +c.content.blocking.adblock.lists = [] abp = c.content.blocking.adblock.lists.append abp("https://fanboy.co.nz/r/fanboy-ultimate.txt") abp("https://fanboy.co.nz/fanboy-antifacebook.txt") @@ -8,6 +9,8 @@ abp("https://fanboy.co.nz/fanboy-annoyance.txt") abp("https://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://easylist-downloads.adblockplus.org/easylist.txt") +abp("https://easylist-downloads.adblockplus.org/easyprivacy.txt") abp("https://github.com/DandelionSprout/adfilt/raw/master/LegitimateURLShortener.txt") abp("https://github.com/DandelionSprout/adfilt/raw/master/AnnoyancesList") diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 05df9cc..3f6fead 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -11,7 +11,7 @@ c.confirm_quit = ['downloads'] c.downloads.location.directory = '~/Downloads' c.qt.workarounds.remove_service_workers = True -c.url.searchengines['l'] = 'librex.catalyst.sx/search.php?q={}' +c.url.searchengines['l'] = 'lx.vern.cc/search.php?q={}' c.url.searchengines['m'] = 'morty.ononoki.org/?mortyurl={}' c.url.searchengines['s'] = 'farside.link/searxng/search?q={}' c.url.searchengines['y'] = 'farside.link/invidious/search?q={}' diff --git a/qutebrowser/user.scss b/qutebrowser/user.scss index 1cc8735..a82d44e 100644 --- a/qutebrowser/user.scss +++ b/qutebrowser/user.scss @@ -25,15 +25,6 @@ )} div.doc-container div.doc div {max-width: 666pt !important; margin: auto} -ul.work > li.download { - font-size: 0; - > ul { - border: none !important; - position: static !important; - display: inline; - > li {font-size: small; &:not(:nth-child(2)) {display: none !important}} - } -} $class: ad-frame-container, ad-panel, ad-slot, adsbygoogle, adbox, adunit, adunit-wrapper, b_ad, leaderboard, "pure-u-lg-1-5:nth-child(3)"; @@ -62,3 +53,49 @@ body { [id^="streamEntryBody"] {display: none} .stream-grade.ng-hide { display: flex !important } + +body>div#outer.wrapper { + background: #000; + color: #fff; + #inner .actions, fieldset { + a, select, input, span.current { + background: #000; + border: 1px solid #222; + border-radius: .25em; + color: #fff; + box-shadow: none; + } + } + a, fieldset, .comment, textarea, h4.byline, .navigation, #footer, .menu, + a:hover, [role="menu-item"] a, .bookmark, .reading h4.viewed, ol.index.group { + background: #000; + color: #fff; + } + fieldset, #user-bookmarks, .bookmark .user { + background: #000; + border: 1px solid #555; + box-shadow: none; + ol.index.group {box-shadow: none} + button, h3 {color: #fff} + } + + dl.meta, li.blurb, li.comment {border-color: #555} + a:visited {color: #999} + #admin-banner, #header > ul.primary {display:none} + h1.heading a, .splash .module h3, a:hover {color: MediumPurple} + .secondary {box-shadow:none;background: #000;} + #dashboard {border:none; .navigation.actions {border-top:none}} + .user.home h2 {border-bottom: none} + + + ul.work > li { + &.share {display: none} + a.collapsed {display: none} + ul { + border: none !important; + display: inline !important; + position: static; + &:not(#chapter_index) > li:not(:nth-child(2)) {display: none} + } + } +}