2024-06-21 14:39:40 +00:00
|
|
|
#!/usr/bin/fish
|
|
|
|
set json (trurl --json $QUTE_URL | jq .[].parts)
|
2024-06-22 05:49:43 +00:00
|
|
|
set blog /(echo $json | jq -r .host | cut -d. -f1)
|
2024-06-21 14:39:40 +00:00
|
|
|
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)
|
2024-06-22 05:49:43 +00:00
|
|
|
if string match '* - Priviblur' $QUTE_TITLE
|
|
|
|
set blog ''
|
|
|
|
end
|
|
|
|
echo "open $instance$blog$page" >> $QUTE_FIFO
|