1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-08 07:54:46 +00:00
dotfiles/qutebrowser/sites.py
Phantop e8146a89cc fish: add more pipx programs, update dwarfs alias
clean: remove more cache directories
qutebrowser: enable cookies/js on gradecope
2022-11-08 11:10:49 -05:00

21 lines
689 B
Python

c.content.cookies.accept = "never"
c.content.javascript.enabled = False
c.content.notifications.enabled = False
c.content.register_protocol_handler = False
sites = [
'archiveofourown.org',
'canary.discord.com',
'*.tutanota.com',
c.url.default_page,
'*.rpi.edu',
'api-3e0243bb.duosecurity.com',
'www.gradescope.com',
]
for site in sites:
config.set('content.javascript.enabled', True, 'https://' + site)
config.set('content.cookies.accept', 'no-3rdparty', 'https://' + site)
config.set('content.headers.user_agent', 'iPhone', 'docs.google.com')
config.set('content.headers.user_agent', 'iPhone', 'drive.google.com')