diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index dc5a04b..6e99409 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -185,6 +185,30 @@ config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{w # Type: FormatString config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*') +# Which method of blocking ads should be used. Support for Adblock Plus +# (ABP) syntax blocklists using Brave's Rust library requires the +# `adblock` Python package to be installed, which is an optional +# dependency of qutebrowser. It is required when either `adblock` or +# `both` are selected. +# Type: String +# Valid values: +# - auto: Use Brave's ABP-style adblocker if available, host blocking otherwise +# - 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 = 'both' + +# List of URLs to ABP-style adblocking rulesets. Only used when Brave's +# ABP-style adblocker is used (see `content.blocking.method`). You can +# find an overview of available lists here: +# https://adblockplus.org/en/subscriptions - note that the special +# `subscribe.adblockplus.org` links aren't handled by qutebrowser, you +# will instead need to find the link to the raw `.txt` file (e.g. by +# 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', 'https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt', 'https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt', 'https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt', 'https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/quick-fixes.txt', 'https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt', 'https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt', 'https://filters.adtidy.org/extension/ublock/filters/11.txt', 'https://secure.fanboy.co.nz/fanboy-annoyance.txt', 'https://filters.adtidy.org/extension/ublock/filters/4.txt', 'https://secure.fanboy.co.nz/fanboy-antifacebook.txt', 'https://cdn.statically.io/gh/uBlockOrigin/uAssets/master/filters/annoyances.txt', 'https://filters.adtidy.org/extension/ublock/filters/3.txt', 'https://cdn.statically.io/gh/uBlockOrigin/uAssets/master/filters/filters.txt', 'https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-online.txt'] + # Load images automatically in web pages. # Type: Bool config.set('content.images', True, 'chrome-devtools://*')