diff --git a/qutebrowser/bindings.py b/qutebrowser/bindings.py index 0f595bb..d27ad0d 100644 --- a/qutebrowser/bindings.py +++ b/qutebrowser/bindings.py @@ -1,32 +1,37 @@ a=c.aliases a['re'] = 'restart' -a['profile'] = 'spawn qutebrowser-profile' a['css-reload'] = 'set content.user_stylesheets user.css' a['scss-reload'] = 'spawn -u /bin/bash -c "sassc $QUTE_CONFIG_DIR/user.{s,}css"' 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' -a['shutup'] = 'jseval -q document.head.appendChild(document.createElement("style")).innerHTML="@import url(https://rickyromero.com/shutup/updates/shutup.css)"' a['monolith-save'] = 'spawn kitty fish -c "monolith {url} -o' -a['ao3-first'] = 'jseval -q window.location.href=document.getElementsByTagName(\'option\')[0].value' -a['ao3-latest'] = 'jseval -q c=document.getElementsByTagName(\'option\'); window.location.href = c[c.length-1].value' +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]' kitdl = 'spawn kitty fish -c "dl &&' bind = { '': 'close', - '': 'spawn -u readability', '': 'tab-close', - '': 'ao3-latest', - '': 'ao3-first', '' : 'config-cycle hints.chars qwerasdf asdfghjkl', + + '': 'ao3-first', + '': 'ao3-last', + 'A': 'ao3-next', + 'X': 'ao3-prev', + + 'm': 'spawn -mdv mpv {url}', ',': 'hint links run spawn -mdv mpv {hint-url}', ';a': 'hint links run ' + kitdl + ' dl {hint-url}"', ';v': 'hint links run ' + kitdl + ' ydl {hint-url}"', 'aa': kitdl + ' dl {url}"', 'av': kitdl + ' ydl {url}"', + + '': 'spawn -u readability', 'e': 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload', 'E': 'config-cycle -p content.javascript.enabled ;; reload', - 'm': 'spawn -mdv mpv {url}', 's1': 'download-open', 'sa': 'open -t archive.is/submit/?url={url}', 'sc': 'toggle-dark',