From eb9765c374b2b53dd2f8e7c4b1bec9107386acf7 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 18 Nov 2018 12:59:21 +0100 Subject: Block ads on startpage --- qutebrowser/.config/qutebrowser/config.py | 3 +++ qutebrowser/.config/qutebrowser/style.css | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 qutebrowser/.config/qutebrowser/style.css (limited to 'qutebrowser/.config') diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index 18d689e..128667c 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -68,3 +68,6 @@ c.aliases = { "history-all-clear": 'spawn rm /home/urbain/.local/share/qutebrowser/cmd-history ;; history-clear', "wq": 'quit -s', "q": 'quit', } + +# Style sheet +c.content.user_stylesheets='/home/urbain/dotfiles/qutebrowser/.config/qutebrowser/style.css' diff --git a/qutebrowser/.config/qutebrowser/style.css b/qutebrowser/.config/qutebrowser/style.css new file mode 100644 index 0000000..81e3491 --- /dev/null +++ b/qutebrowser/.config/qutebrowser/style.css @@ -0,0 +1,11 @@ +div#spon_links { + display: none !important; +} + +div#adBlock { + display: none !important; +} + +section[class='promotion card search-item'] { + display: none !important; +} -- cgit v1.2.3