qutebrowser: Make use of dotter for dir structure
Since we now use dotter we can simplify the dir structure for qutebrowser a lot. Everything dot-filed earlier can now reside in simple directories called config (for ~/.config/qutebrowser), data (for ~/.local/share/qutebrowser), and scripts (for ~/.local/bin) files.
This commit is contained in:
parent
dcde027a67
commit
8681d34946
49 changed files with 9 additions and 5 deletions
41
qutebrowser/config/content.py
Normal file
41
qutebrowser/config/content.py
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# disable html5 canvas fingerprinting (at the cost of a couple streaming pages)
|
||||
c.content.canvas_reading = False
|
||||
c.content.blocking.enabled = True
|
||||
c.content.blocking.method = "both"
|
||||
c.content.blocking.adblock.lists = [
|
||||
"https://easylist.to/easylist/easylist.txt",
|
||||
"https://easylist.to/easylist/easyprivacy.txt",
|
||||
"https://someonewhocares.org/hosts/hosts",
|
||||
"https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext",
|
||||
"https://secure.fanboy.co.nz/fanboy-cookiemonster.txt",
|
||||
]
|
||||
c.content.blocking.whitelist = ["piwik.org"]
|
||||
c.content.autoplay = False
|
||||
c.content.prefers_reduced_motion = True
|
||||
c.content.pdfjs = False
|
||||
c.content.javascript.enabled = False
|
||||
js_whitelist = [
|
||||
"*://*.youtube.com/*",
|
||||
"*://127.0.0.1/*",
|
||||
"*://asciinema.org/*",
|
||||
"*://calendar.google.com/*",
|
||||
"*://darksky.net/*",
|
||||
"*://deepl.com/*",
|
||||
"*://duckduckgo.com/*",
|
||||
"*://fosstodon.org/*",
|
||||
"*://github.com/*",
|
||||
"*://gitlab.com/*",
|
||||
"*://localhost/*",
|
||||
"*://mail.google.com/*",
|
||||
"*://maps.google.com/*",
|
||||
"*://*.martyoeh.me/*",
|
||||
"*://news.ycombinator.com/*",
|
||||
"*://old.reddit.com/*",
|
||||
"*://translate.google.com/*",
|
||||
"chrome://*/*",
|
||||
"file://*",
|
||||
"qute://*/*",
|
||||
]
|
||||
for page in js_whitelist:
|
||||
with config.pattern(page) as p:
|
||||
p.content.javascript.enabled = True
|
||||
Loading…
Add table
Add a link
Reference in a new issue