aboutsummaryrefslogtreecommitdiff
path: root/config/qutebrowser
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-03-08 15:18:11 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-03-08 15:18:11 +0100
commitaee8dc66ee389bc58f309ccec412142b28a87942 (patch)
tree2c1c177088858b7e1708c6a0411e3990a14a35d2 /config/qutebrowser
parenta9bf6fc5e2bd11cbf50230a04e090ef722d0c709 (diff)
downloaddotfiles-aee8dc66ee389bc58f309ccec412142b28a87942.tar.gz
dotfiles-aee8dc66ee389bc58f309ccec412142b28a87942.zip
[qutebrowser] add autoconfig to enable js on trusted domains
Diffstat (limited to 'config/qutebrowser')
-rw-r--r--config/qutebrowser/autoconfig.yml22
-rw-r--r--config/qutebrowser/config.py5
2 files changed, 26 insertions, 1 deletions
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('<Ctrl-l>', '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)