From aee8dc66ee389bc58f309ccec412142b28a87942 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 8 Mar 2019 15:18:11 +0100 Subject: [qutebrowser] add autoconfig to enable js on trusted domains --- config/qutebrowser/autoconfig.yml | 22 ++++++++++++++++++++++ config/qutebrowser/config.py | 5 ++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 config/qutebrowser/autoconfig.yml (limited to 'config/qutebrowser') diff --git a/config/qutebrowser/autoconfig.yml b/config/qutebrowser/autoconfig.yml new file mode 100644 index 0000000..e31a2e7 --- /dev/null +++ b/config/qutebrowser/autoconfig.yml @@ -0,0 +1,22 @@ +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 2 +settings: + content.javascript.enabled: + '*://*.duckduckgo.com/*': true + '*://banking.sparda-n.de/*': true + '*://dict.leo.org/*': true + '*://github.com/*': true + '*://gitlab.com/*': true + '*://gitlab.cs.fau.de/*': true + '*://media.ccc.de/*': true + '*://mediathekviewweb.de/*': true + '*://paftown.ddns.net/*': true + '*://vimeo.com/*': true + '*://www.cardmarket.com/*': true + '*://www.cubetutor.com/*': true + '*://www.mtggoldfish.com/*': true + '*://www.openstreetmap.org/*': true + '*://www.studon.fau.de/*': true + '*://www.twitch.tv/*': true diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 5e567d2..0b1fb80 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -6,13 +6,16 @@ config.bind(',x', 'hint links spawn mpv {hint-url}') config.bind('', 'spawn --userscript password_fill') -c.editor.command = [os.environ["TERMINAL"], "-e", os.environ["VISUAL"], "+{line}", "{}"] +c.editor.command = [os.environ["TERMINAL"], "-e", os.environ["VISUAL"], "{}"] c.content.headers.do_not_track = True # Disable javascript by default config.set('content.javascript.enabled', False) +# Load autoconfig to enable javascript on trusted domains +config.load_autoconfig() + # base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova # Solarized Dark scheme by Ethan Schoonover (modified by aramisgithub) -- cgit v1.2.3