Adblocking config
This commit is contained in:
parent
553319970b
commit
fb781b71fa
@ -12,6 +12,12 @@ from qutebrowser.config.config import ConfigContainer
|
||||
import sys, os
|
||||
#+end_src
|
||||
|
||||
* Auto Config
|
||||
Do not load config set with =:set= command in qutebrowser.
|
||||
#+begin_src python
|
||||
config.load_autoconfig(True)
|
||||
#+end_src
|
||||
|
||||
* General config
|
||||
#+begin_src python
|
||||
c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
|
||||
@ -29,6 +35,7 @@ c.content.javascript.alert = True
|
||||
c.content.javascript.can_access_clipboard = True
|
||||
c.content.pdfjs = False
|
||||
c.content.proxy = 'system'
|
||||
c.content.blocking.method = 'both'
|
||||
#+END_SRC
|
||||
|
||||
* Editor
|
||||
@ -46,6 +53,13 @@ c.downloads.position = 'bottom'
|
||||
c.downloads.remove_finished = 10000
|
||||
#+END_SRC
|
||||
|
||||
* File Select
|
||||
#+begin_src python
|
||||
c.fileselect.handler = "default"
|
||||
# c.fileselect.single_file.command = ['termine', '-e', 'ranger', '--choosefile', '{}']
|
||||
# c.fileselect.multiple_files.command = ['termite', '-e', 'ranger', '--choosefiles', '{}']
|
||||
#+end_src
|
||||
|
||||
* Colors
|
||||
#+begin_src python
|
||||
# c.colors.webpage.darkmode.enabled = True
|
||||
@ -312,7 +326,7 @@ config.bind(',a', "jseval javascript:(function(){window.hypothesisConfig=functio
|
||||
|
||||
See Amazon price history using CamelCamelCamel
|
||||
#+begin_src python
|
||||
config.bind(',A', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
|
||||
config.bind(',A', "open -t https://fr.camelcamelcamel.com/search?sq={url}")
|
||||
#+end_src
|
||||
|
||||
Org Roam Entry for the current page
|
||||
@ -320,6 +334,10 @@ Org Roam Entry for the current page
|
||||
config.bind(',R', "open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))")
|
||||
#+end_src
|
||||
|
||||
#+begin_src python
|
||||
config.bind(',Z', "open -w https://bm.tdehaeze.xyz/bookmarks/new?url={url}&auto_close")
|
||||
#+end_src
|
||||
|
||||
* Userscripts
|
||||
:PROPERTIES:
|
||||
:header-args:bash: :shebang "#!/usr/bin/env bash"
|
||||
|
Loading…
Reference in New Issue
Block a user