Qute: WhiteList toggle

This commit is contained in:
Phantop 2022-01-20 00:06:06 -05:00
parent e08ada07da
commit 2a456a5b7f
3 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ c.colors.webpage.darkmode.policy.images = 'never'
c.aliases['re'] = 'restart'
c.aliases['mpv'] = 'spawn -mdv mpv --ytdl-raw-options=sub-lang=en'
c.aliases['remove-sticky'] = 'jseval -q document.querySelectorAll("*").forEach(e=>{["sticky","fixed"].includes(getComputedStyle(e).position)&&e.parentNode.removeChild(e)})'
c.aliases['toggle-dark'] = 'reload;; jseval -qf ~/.config/qutebrowser/greasemonkey/white.js;; stop'
config.set('content.notifications.enabled', True, 'https://mail.tutanota.com')
config.set('content.register_protocol_handler', True, 'https://mail.tutanota.com')

View File

@ -7,6 +7,7 @@ bind = {
'm': 'mpv {url}',
's1': 'download-open',
'sa': 'open -t archive.is/?run=1&url={url}',
'sc': 'toggle-dark',
'sd': "spawn fish -c 'dl; open (ls | rofi -dmenu -b -i || exit 0)'",
'sg': 'debug-dump-page ~/Downloads/dump.html',
'sq': 'spawn -u qr',

View File

@ -1,5 +1,5 @@
// ==UserScript==
// @match
// @name WhiteList
// @match https://archiveofourown.org/*
// @match https://canary.discord.com/*
// @match https://drop.lol/*