[qutebrowser] Add adblock blacklist, slightly change media shortcuts
This commit is contained in:
parent
991b906690
commit
13625bafec
1 changed files with 18 additions and 2 deletions
|
@ -14,6 +14,16 @@ config.load_autoconfig()
|
|||
c.completion.web_history.max_items = 1000
|
||||
c.hints.uppercase = True
|
||||
|
||||
c.content.host_blocking.enabled = True
|
||||
c.content.host_blocking.lists = [
|
||||
"http://www.malwaredomainlist.com/hostslist/hosts.txt",
|
||||
"http://someonewhocares.org/hosts/hosts",
|
||||
"http://winhelp2002.mvps.org/hosts.zip",
|
||||
"http://malwaredomains.lehigh.edu/files/justdomains.zip",
|
||||
"http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext",
|
||||
]
|
||||
c.content.host_blocking.whitelist = ['piwik.org']
|
||||
|
||||
c.content.pdfjs = True
|
||||
c.content.javascript.enabled = False
|
||||
js_whitelist = [
|
||||
|
@ -80,9 +90,15 @@ leader = "<Space>"
|
|||
# toggles ('cycles') between tabs always showing, or only when switching between them
|
||||
config.bind('tt', 'config-cycle -t tabs.show always switching')
|
||||
|
||||
# [M]edia shortcuts - watch, queue, download media
|
||||
|
||||
# bind mpv to play the current page/links, using a single instance which queues the next link passed
|
||||
config.bind('M', 'spawn umpv {url}')
|
||||
config.bind('m', 'hint links spawn umpv {hint-url}')
|
||||
config.bind(leader + 'M', 'spawn umpv {url}')
|
||||
config.bind(leader + 'm', 'hint links spawn umpv {hint-url}')
|
||||
|
||||
# bind youtube-dl to download the current page/links
|
||||
config.bind(leader + 'dM', 'spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')
|
||||
config.bind(leader + 'dm', 'hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')
|
||||
|
||||
# Let me close tabs more easily, and 'unclose' them with the same key
|
||||
config.bind('x', 'tab-close', mode='normal')
|
||||
|
|
Loading…
Reference in a new issue