2022-04-11 16:39:19 +00:00
|
|
|
a=c.aliases
|
|
|
|
a['re'] = 'restart'
|
2024-02-03 04:52:31 +00:00
|
|
|
a['idk'] = 'spawn -u wikidns'
|
2024-07-08 13:54:38 +00:00
|
|
|
a['scss-reload'] = 'spawn -u /bin/bash -c "sass $QUTE_CONFIG_DIR/css/user.{s,}css"'
|
2022-04-11 16:39:19 +00:00
|
|
|
a['remove-sticky'] = 'jseval -q document.querySelectorAll("*").forEach(e=>{["sticky","fixed"].includes(getComputedStyle(e).position)&&e.parentNode.removeChild(e)})'
|
|
|
|
a['toggle-dark'] = 'reload;;jseval -q const meta=document.createElement("meta");meta.name="color-scheme";document.head.appendChild(meta).content="dark";;stop'
|
|
|
|
|
2022-07-12 22:53:52 +00:00
|
|
|
a['ao3-first'] = 'jseval -q window.location = document.getElementsByTagName("option")[0].value'
|
|
|
|
a['ao3-last'] = 'jseval -q c=document.getElementsByTagName("option"); window.location = c[c.length-1].value'
|
|
|
|
a['ao3-next'] = 'jseval -q window.location = document.getElementsByClassName("next")[0].children[0]'
|
|
|
|
a['ao3-prev'] = 'jseval -q window.location = document.getElementsByClassName("previous")[0].children[0]'
|
2022-10-31 21:15:11 +00:00
|
|
|
a['scrib-next'] = 'jseval -q window.location = document.getElementsByClassName("btn-next")[0]'
|
|
|
|
a['scrib-prev'] = 'jseval -q window.location = document.getElementsByClassName("btn-prev")[0]'
|
2024-10-10 01:36:51 +00:00
|
|
|
a['priviblur-reverse'] = 'jseval -q c=document.querySelector(".blog-posts");[...c.children].forEach(e=>c.prepend(e))'
|
2022-04-11 16:39:19 +00:00
|
|
|
|
2022-03-02 04:32:07 +00:00
|
|
|
kitdl = 'spawn kitty fish -c "dl &&'
|
2021-01-28 21:23:04 +00:00
|
|
|
bind = {
|
2023-05-02 17:50:07 +00:00
|
|
|
'<Ctrl-q>': 'history-clear -f ;; close',
|
2021-01-28 21:23:04 +00:00
|
|
|
'<Ctrl-w>': 'tab-close',
|
2021-05-18 16:50:56 +00:00
|
|
|
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
|
2022-07-12 22:53:52 +00:00
|
|
|
|
|
|
|
'<Ctrl-Shift-x>': 'ao3-first',
|
|
|
|
'<Ctrl-Shift-a>': 'ao3-last',
|
|
|
|
'A': 'ao3-next',
|
|
|
|
'X': 'ao3-prev',
|
2024-07-08 13:54:38 +00:00
|
|
|
'<Alt+a>': 'scrib-next',
|
|
|
|
'<Alt+x>': 'scrib-prev',
|
2022-07-12 22:53:52 +00:00
|
|
|
|
|
|
|
'm': 'spawn -mdv mpv {url}',
|
2022-04-09 19:38:29 +00:00
|
|
|
',': 'hint links run spawn -mdv mpv {hint-url}',
|
2022-03-02 04:32:07 +00:00
|
|
|
';a': 'hint links run ' + kitdl + ' dl {hint-url}"',
|
|
|
|
';v': 'hint links run ' + kitdl + ' ydl {hint-url}"',
|
|
|
|
'aa': kitdl + ' dl {url}"',
|
|
|
|
'av': kitdl + ' ydl {url}"',
|
2022-07-12 22:53:52 +00:00
|
|
|
|
|
|
|
'<Ctrl-r>': 'spawn -u readability',
|
2022-02-04 18:17:39 +00:00
|
|
|
'e': 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload',
|
2022-02-19 04:04:40 +00:00
|
|
|
'E': 'config-cycle -p content.javascript.enabled ;; reload',
|
2024-09-19 22:59:27 +00:00
|
|
|
'pb': 'spawn -u priviblur',
|
|
|
|
'pr': 'priviblur-reverse',
|
2021-01-28 21:23:04 +00:00
|
|
|
's1': 'download-open',
|
2022-03-09 19:13:21 +00:00
|
|
|
'sa': 'open -t archive.is/submit/?url={url}',
|
2022-01-20 05:06:06 +00:00
|
|
|
'sc': 'toggle-dark',
|
2022-04-09 19:38:29 +00:00
|
|
|
'sd': "spawn fish -c 'dl; open (ls -a | rofi -dmenu -b -i || exit 0)'",
|
2021-03-28 04:38:12 +00:00
|
|
|
'sg': 'debug-dump-page ~/Downloads/dump.html',
|
2024-06-06 04:35:52 +00:00
|
|
|
'sp': 'open ldrproxy.fly.dev/{url}',
|
|
|
|
'sP': 'open morty.ononoki.org/?mortyurl={url}',
|
2021-01-28 21:23:04 +00:00
|
|
|
'sq': 'spawn -u qr',
|
|
|
|
'sr': 'remove-sticky',
|
2022-04-11 16:39:19 +00:00
|
|
|
'st': 'config-cycle -p content.proxy socks://localhost:9050 ' + c.content.proxy,
|
2022-02-04 18:17:39 +00:00
|
|
|
'T' : 'tab-next',
|
|
|
|
'td': 'config-unset -u {url:host} content.headers.user_agent',
|
2022-07-05 23:48:52 +00:00
|
|
|
'W': 'config-cycle -p -u *://*.{url:host}/* content.cookies.accept no-3rdparty all never',
|
2022-09-09 18:54:48 +00:00
|
|
|
'<Alt+w>': 'config-cycle -p content.cookies.accept no-3rdparty never',
|
2021-01-28 21:23:04 +00:00
|
|
|
}
|
|
|
|
for a, b in bind.items():
|
|
|
|
config.bind(a, b)
|