@@ 1,14 1,14 @@
-#vim:ft=py
-for protocol in (
- 'file',
- 'chrome',
- 'qute'
- ):
- config.set('content.javascript.enabled', True, protocol + '://*')
+if not config.get('content.javascript.enabled'):
+ for protocol in (
+ 'file',
+ 'chrome',
+ 'qute'
+ ):
+ config.set('content.javascript.enabled', True, protocol + '://*')
-try:
- with open(config.configdir / 'conf.d' / 'domains', 'r') as f:
- for domain in f.read().splitlines():
- config.set('content.javascript.enabled', True, domain)
-except FileNotFoundError:
- config.set('content.javascript.enabled', True)
+ try:
+ with open(config.configdir / 'conf.d' / 'domains', 'r') as f:
+ for domain in f.read().splitlines():
+ config.set('content.javascript.enabled', True, domain)
+ except FileNotFoundError:
+ config.set('content.javascript.enabled', True)
@@ 31,7 31,7 @@ c.editor.command = ['termite', '-e', 'bash -c \'exec nvim -f {file} -c "normal {
c.auto_save.session = True
c.content.host_blocking.lists = ['https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts']
-c.content.javascript.enabled = False
+c.content.javascript.enabled = True
c.content.autoplay = False
c.content.pdfjs = True
c.content.netrc_file = '~/.netrc'