mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-19 21:32:48 +00:00
ditch splash for priviblur fully
This commit is contained in:
parent
a6e68998d1
commit
5d48489fad
|
@ -39,7 +39,7 @@ bind = {
|
|||
'E': 'config-cycle -p content.javascript.enabled ;; reload',
|
||||
's1': 'download-open',
|
||||
'sa': 'open -t archive.is/submit/?url={url}',
|
||||
'sb': 'open tumblash.fly.dev/?u={url}',
|
||||
'sb': 'spawn -u priviblur',
|
||||
'sc': 'toggle-dark',
|
||||
'sd': "spawn fish -c 'dl; open (ls -a | rofi -dmenu -b -i || exit 0)'",
|
||||
'sg': 'debug-dump-page ~/Downloads/dump.html',
|
||||
|
|
|
@ -73,7 +73,7 @@ m = {
|
|||
|
||||
"www.twitch.tv" : o(s, 'twineo.exozy.me'),
|
||||
"discord.com" : o(s, 'canary.discord.com'),
|
||||
"tumblr.com" : o(s, 'tumblash.fly.dev'),
|
||||
"tumblr.com" : o(s, 'priviblur.fly.dev'),
|
||||
"www.tumblr.com" : o(s, 'priviblur.fly.dev'),
|
||||
"www.npr.org" : o(s, 'text.npr.org'),
|
||||
"www.goodreads.com" : o(s, 'bl.vern.cc'),
|
||||
|
|
8
qutebrowser/userscripts/priviblur
Executable file
8
qutebrowser/userscripts/priviblur
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/fish
|
||||
set json (trurl --json $QUTE_URL | jq .[].parts)
|
||||
set blog (echo $json | jq -r .host | cut -d. -f1)
|
||||
set page (echo $json | jq -r .path)
|
||||
set instances https://github.com/syeopite/priviblur/raw/master/instances.md
|
||||
set instances priviblur.fly.dev (curl -L $instances | grep https | awk -F'[][]' '{print $2}')
|
||||
set instance (random choice $instances)
|
||||
echo "open $instance/$blog$page" >> $QUTE_FIFO
|
Loading…
Reference in a new issue