aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)