diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-25 15:17:37 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-25 15:26:09 +0100 |
| commit | d59a26f882017a62b4119a7649ca3d4b43f65725 (patch) | |
| tree | 3ec808804ef398651a9bcc9a021f16c5d30b7b88 /config/qutebrowser | |
| parent | bb72eb10b6c7148ad3107c50a4232dea080d1468 (diff) | |
| download | dotfiles-d59a26f882017a62b4119a7649ca3d4b43f65725.tar.gz dotfiles-d59a26f882017a62b4119a7649ca3d4b43f65725.tar.bz2 dotfiles-d59a26f882017a62b4119a7649ca3d4b43f65725.zip | |
Added vint and flake8 to lint vim and qutebrowser conf, Added shellcheck to zsh files, Fixing all linting errors
Diffstat (limited to 'config/qutebrowser')
| -rw-r--r-- | config/qutebrowser/config.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index d449658..0fe74ba 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -2,20 +2,22 @@ import os from qutebrowser.api import interceptor + config.load_autoconfig(True) + # Youtube ad blocking def filter_yt(info: interceptor.Request): url = info.request_url if ( - url.host() == 'www.youtube.com' - and url.path() == '/get_video_info' - and '&adformat=' in url.query() + url.host() == 'www.youtube.com' and + url.path() == '/get_video_info' and + '&adformat=' in url.query() ): info.block() -interceptor.register(filter_yt) +interceptor.register(filter_yt) c.aliases = { 'q': 'close', @@ -60,13 +62,12 @@ config.bind('K', 'tab-next', 'normal') config.bind('<F12>', 'devtools', 'normal') -c.colors.webpage.darkmode.enabled = True # Convert light themed sites to dark theme (very nice result) -c.colors.webpage.bg = 'black' # Disabling white flash before page loading +c.colors.webpage.darkmode.enabled = True # Convert light themed sites to dark theme # c.content.proxy = 'socks://localhost:9050/' # tor c.content.autoplay = False c.content.notifications = False -#c.content.cookies.accept = 'no-3rdparty' +# c.content.cookies.accept = 'no-3rdparty' c.auto_save.session = True c.session.lazy_restore = True @@ -137,10 +138,10 @@ c.colors.contextmenu.disabled.fg = base04 # Background color of the context menu. If set to null, the Qt default is used. c.colors.contextmenu.menu.bg = base00 # Foreground color of the context menu. If set to null, the Qt default is used. -c.colors.contextmenu.menu.fg = base05 +c.colors.contextmenu.menu.fg = base05 # Background color of the context menu’s selected item. If set to null, the Qt default is used. c.colors.contextmenu.selected.bg = base02 -#Foreground color of the context menu’s selected item. If set to null, the Qt default is used. +# Foreground color of the context menu’s selected item. If set to null, the Qt default is used. c.colors.contextmenu.selected.fg = base05 # Background color for the download bar. c.colors.downloads.bar.bg = base00 @@ -281,6 +282,5 @@ c.colors.tabs.selected.odd.bg = base02 c.colors.tabs.selected.even.fg = base05 # Background color of selected even tabs. c.colors.tabs.selected.even.bg = base02 -# Background color for webpages if unset (or empty to use the theme's -# color). -# c.colors.webpage.bg = base00 +# Background color for webpages if unset (or empty to use the theme's color). +c.colors.webpage.bg = base00 |
