~ecs/dotfiles

2abe2c0f54f6edf9345b1204a577f697233b37ea — Eyal Sawady 8 days ago 3e57415
qb: add cookie whitelist
1 files changed, 13 insertions(+), 2 deletions(-)

M etc/qutebrowser/config.py
M etc/qutebrowser/config.py => etc/qutebrowser/config.py +13 -2
@@ 18,6 18,19 @@ for site in js_whitelist:
    with config.pattern(site) as p:
        p.content.javascript.enabled = True

c.content.cookies.accept = "never"
c.content.cookies.store = False
cookies_whitelist = [
    "*://*.sr.ht/*",
    "*://*.d2evs.net/*",
    "*://localhost/*",
    "*://127.0.0.1/*",
    "file:///*"
]
for site in cookies_whitelist:
    with config.pattern(site) as p:
        p.content.cookies.accept = "no-3rdparty"

config.bind("x", "open https://xkcd.com")
config.bind("X", "open -t https://xkcd.com")
config.bind("z", "open https://c.xkcd.com/random/comic")


@@ 39,8 52,6 @@ c.completion.height = "20%"
c.content.autoplay = False
c.content.host_blocking.enabled = True
c.content.canvas_reading = False
c.content.cookies.accept = "never"
c.content.cookies.store = False
c.content.geolocation = False
c.content.headers.referer = "never"
c.content.local_storage = False