Adblocking config
This commit is contained in:
parent
e35ef29559
commit
2f44f27771
@ -12,6 +12,12 @@ from qutebrowser.config.config import ConfigContainer
|
|||||||
import sys, os
|
import sys, os
|
||||||
#+end_src
|
#+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
|
* General config
|
||||||
#+begin_src python
|
#+begin_src python
|
||||||
c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
|
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.javascript.can_access_clipboard = True
|
||||||
c.content.pdfjs = False
|
c.content.pdfjs = False
|
||||||
c.content.proxy = 'system'
|
c.content.proxy = 'system'
|
||||||
|
c.content.blocking.method = 'both'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Editor
|
* Editor
|
||||||
@ -46,6 +53,13 @@ c.downloads.position = 'bottom'
|
|||||||
c.downloads.remove_finished = 10000
|
c.downloads.remove_finished = 10000
|
||||||
#+END_SRC
|
#+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
|
* Colors
|
||||||
#+begin_src python
|
#+begin_src python
|
||||||
# c.colors.webpage.darkmode.enabled = True
|
# 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
|
See Amazon price history using CamelCamelCamel
|
||||||
#+begin_src python
|
#+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
|
#+end_src
|
||||||
|
|
||||||
Org Roam Entry for the current page
|
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))")
|
config.bind(',R', "open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src python
|
||||||
|
config.bind(',Z', "open -w https://bm.tdehaeze.xyz/bookmarks/new?url={url}&auto_close")
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Userscripts
|
* Userscripts
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args:bash: :shebang "#!/usr/bin/env bash"
|
:header-args:bash: :shebang "#!/usr/bin/env bash"
|
||||||
|
Loading…
Reference in New Issue
Block a user