~pvsr/dotfiles

ref: c89f8675ebbc051c7857bd7346ab852163fb875d dotfiles/qutebrowser/.config/qutebrowser/conf.d/js.py -rw-r--r-- 420 bytes
c89f8675Peter Rice use vi mode in fish 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#vim:ft=py
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)