From 68698faa3ab1adb1bb3d1d2fef1976738d2c0674 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 12 Feb 2021 17:50:10 +0000 Subject: Add ad-blocking to browser, remap some keys --- .config/qutebrowser/config.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to '.config/qutebrowser') diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 3d52842..648ba24 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -663,7 +663,7 @@ c.aliases = { ## extracting it from the `location` parameter of the subscribe URL and ## URL-decoding it). ## Type: List of Url -# c.content.blocking.adblock.lists = ['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt'] +c.content.blocking.adblock.lists = ['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt'] ## Enable the ad/host blocker ## Type: Bool @@ -679,7 +679,7 @@ c.aliases = { ## lists. The file `~/.config/qutebrowser/blocked-hosts` is always read ## if it exists. ## Type: List of Url -# c.content.blocking.hosts.lists = ['https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts'] +c.content.blocking.hosts.lists = ['https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts'] ## Which method of blocking ads should be used. Support for Adblock Plus ## (ABP) syntax blocklists using Brave's Rust library requires the @@ -692,7 +692,7 @@ c.aliases = { ## - adblock: Use Brave's ABP-style adblocker ## - hosts: Use hosts blocking ## - both: Use both hosts blocking and Brave's ABP-style adblocker -# c.content.blocking.method = 'auto' +c.content.blocking.method = 'both' ## A list of patterns that should always be loaded, despite being blocked ## by the ad-/host-blocker. Local domains are always exempt from @@ -1641,7 +1641,7 @@ c.aliases = { ## - always: Always show the statusbar. ## - never: Always hide the statusbar. ## - in-mode: Show the statusbar when in modes other than normal mode. -# c.statusbar.show = 'always' +c.statusbar.show = 'in-mode' ## List of widgets displayed in the statusbar. ## Type: List of String @@ -2072,7 +2072,7 @@ c.url.start_pages = ['https://start.duckduckgo.com'] # config.bind('', 'open -w') # config.bind('', 'tab-next') # config.bind('', 'tab-prev') -# config.bind('', 'quit') +config.bind('', 'tab-close') # config.bind('', 'selection-follow -t') # config.bind('', 'open -p') # config.bind('', 'undo') @@ -2092,6 +2092,8 @@ config.bind('', 'tab-prev') # config.bind('', 'fullscreen') # config.bind('', 'reload') # config.bind('', 'selection-follow') +config.bind('', 'back') +config.bind('', 'forward') # config.bind('', 'back') # config.bind('', 'forward') # config.bind('=', 'zoom') @@ -2159,7 +2161,7 @@ config.bind('', 'tab-prev') # config.bind('o', 'set-cmd-text -s :open') # config.bind('pP', 'open -- {primary}') # config.bind('pp', 'open -- {clipboard}') -# config.bind('q', 'macro-record') +config.bind('q', 'nop') # config.bind('r', 'reload') # config.bind('sf', 'save') # config.bind('sk', 'set-cmd-text -s :bind') -- cgit v1.2.3