diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-21 18:52:51 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-21 18:52:51 +0530 |
| commit | f1cf59ce2df9204f818cfd038538a2a31a5c2262 (patch) | |
| tree | 35b0a21501615b7551514262b96e9d8113375cbc /config/qutebrowser/styles | |
| parent | 6ff5a17adcf1ed72cd2f1c7bff606bdd3352b3bb (diff) | |
| download | nixos-config-f1cf59ce2df9204f818cfd038538a2a31a5c2262.tar.gz nixos-config-f1cf59ce2df9204f818cfd038538a2a31a5c2262.zip | |
Adds qutebrowser config
Diffstat (limited to 'config/qutebrowser/styles')
| -rw-r--r-- | config/qutebrowser/styles/adblocker.css | 108 | ||||
| -rw-r--r-- | config/qutebrowser/styles/dark.css | 23 | ||||
| -rw-r--r-- | config/qutebrowser/styles/default.css | 0 | ||||
| -rw-r--r-- | config/qutebrowser/styles/scrollbar.css | 33 |
4 files changed, 164 insertions, 0 deletions
diff --git a/config/qutebrowser/styles/adblocker.css b/config/qutebrowser/styles/adblocker.css new file mode 100644 index 0000000..2fa6b83 --- /dev/null +++ b/config/qutebrowser/styles/adblocker.css @@ -0,0 +1,108 @@ +/* + * This file can be used to apply a style to all web pages you view + * Rules without !important are overruled by author rules if the + * author sets any. Rules with !important overrule author rules. + */ + +/* You can find the latest version of this ad blocking css at: + * http://www.floppymoose.com + * hides many ads by preventing display of images that are inside + * links when the link HREF contans certain substrings. + */ + +A:link[HREF*="addata"] IMG, +A:link[HREF*="ad."] IMG, +A:link[HREF*="ads."] IMG, +A:link[HREF*="/ad"] IMG, +A:link[HREF*="/A="] IMG, +A:link[HREF*="/click"] IMG, +A:link[HREF*="?click"] IMG, +A:link[HREF*="?banner"] IMG, +A:link[HREF*="=click"] IMG, +A:link[HREF*="clickurl="] IMG, +A:link[HREF*=".atwola."] IMG, +A:link[HREF*="spinbox."] IMG, +A:link[HREF*="transfer.go"] IMG, +A:link[HREF*="adfarm"] IMG, +A:link[HREF*="adSpace"] IMG, +A:link[HREF*="adserve"] IMG, +A:link[HREF*=".banner"] IMG, +A:link[HREF*="bluestreak"] IMG, +A:link[HREF*="doubleclick"] IMG, +A:link[HREF*="/rd."] IMG, +A:link[HREF*="/0AD"] IMG, +A:link[HREF*=".falkag."] IMG, +A:link[HREF*="trackoffer."] IMG, +A:link[HREF*="casalemedia."] IMG, +A:link[HREF*="valueclick."] IMG, +A:link[HREF*="betterbasketball."] IMG, +A:link[HREF*="sponsors.phtml"] IMG, +A:link[HREF*="realgmtix.phtml"] IMG, +A:link[HREF*="BurstingPipe"] IMG, +A:link[HREF*="ebayobjects"] IMG, +A:link[HREF*="tracksponsor."] IMG { display: none ! important } + +/* disable ad iframes */ +IFRAME[SRC*="addata"], +IFRAME[SRC*="ad."], +IFRAME[SRC*="ads."], +IFRAME[SRC*="/ad"], +IFRAME[SRC*="/A="], +IFRAME[SRC*="/click"], +IFRAME[SRC*="?click"], +IFRAME[SRC*="?banner"], +IFRAME[SRC*="=click"], +IFRAME[SRC*="clickurl="], +IFRAME[SRC*=".atwola."], +IFRAME[SRC*="spinbox."], +IFRAME[SRC*="transfer.go"], +IFRAME[SRC*="adfarm"], +IFRAME[SRC*="adSpace"], +IFRAME[SRC*="adserve"], +IFRAME[SRC*="adjuggler"], +IFRAME[SRC*=".banner"], +IFRAME[SRC*="bluestreak"], +IFRAME[SRC*="doubleclick"], +IFRAME[SRC*="/rd."], +IFRAME[SRC*="/0AD"], +IFRAME[SRC*=".falkag."], +IFRAME[SRC*="trackoffer."], +IFRAME[SRC*="connextra."], +IFRAME[ID*="merchandisingMERC"], +IFRAME[SRC*="tracksponsor."] { display: none ! important } + + +/* miscellaneous different blocking rules to block some stuff that gets through */ + +A:link[onmouseover*="AdSolution"] IMG, +*[class=sponsors], +*[class=sp_links], +*[class=advertising], +*[ID=sponsors], +*[ID=ad], +*[ID=inlinead], +*[ID=ad_creative], +*[ID=contextualLinks], +IMG[SRC*=".msads."] { display: none ! important } + + +/* turning some false positives back off */ + +A:link[HREF*="/add"] IMG, +A:link[HREF*="/adsl"] IMG, +A:link[HREF*="thread."] IMG, +A:link[HREF*="download."] IMG, +A:link[HREF*="downloads."] IMG, +A:link[HREF*="netflix.com/AddToQueue"] IMG, +A:link[HREF*="load."], +A:link[HREF*="loads."], +IFRAME[SRC*="load."], +IFRAME[SRC*="loads."], +A:link[HREF*="click.mp3"] IMG { display: inline ! important } + + +/* + * For more examples see http://www.mozilla.org/unix/customizing.html + */ + + diff --git a/config/qutebrowser/styles/dark.css b/config/qutebrowser/styles/dark.css new file mode 100644 index 0000000..86b65fa --- /dev/null +++ b/config/qutebrowser/styles/dark.css @@ -0,0 +1,23 @@ +/*html, body, body * {*/ + /*background-color: #111 !important;*/ + /*color: #ddd !important;*/ +/*}*/ + +/*body {*/ +html, body, body * { + color: #d7d7d8 !important; + background-color: #0f0c19 !important; +} + +a { + color: #4e3aA3 !important; +} + +code { + /*color: #d5dada;*/ + /*background: #313231 !important;*/ +} + +figcaption { + color: #d7d7d8 !important; +} diff --git a/config/qutebrowser/styles/default.css b/config/qutebrowser/styles/default.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/config/qutebrowser/styles/default.css diff --git a/config/qutebrowser/styles/scrollbar.css b/config/qutebrowser/styles/scrollbar.css new file mode 100644 index 0000000..2e58110 --- /dev/null +++ b/config/qutebrowser/styles/scrollbar.css @@ -0,0 +1,33 @@ +:root { + --scroll-bar-color: #aabaca; +} + +::-webkit-scrollbar { + width: 4px; + height: 8px; +} + +::-webkit-scrollbar-track:vertical { + background: black; + border-left: 1px solid black; +} + +::-webkit-scrollbar-thumb:vertical { + background: var(--scroll-bar-color); + border-left: 1px solid black; +} + +::-webkit-scrollbar-track:horizontal { + background: var(--scroll-bar-color); + border-radius: 4px; +} + +::-webkit-scrollbar-thumb:horizontal { + background: var(--scroll-bar-color); + border-radius: 4px; + box-shadow: inset 0 0 8px black; +} + +::-webkit-scrollbar-corner { + background: silver; +} |
