From 2f44f2777196ea4991c559fa64f6bf1a1312ac9a Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Wed, 10 Feb 2021 17:59:11 +0100 Subject: [PATCH] Adblocking config --- qutebrowser.org | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/qutebrowser.org b/qutebrowser.org index d898cf5..69ef44b 100644 --- a/qutebrowser.org +++ b/qutebrowser.org @@ -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"