1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Generate focus-first sites properly

This commit is contained in:
Rohan Kumar 2024-02-27 03:29:54 -05:00
parent 5668fd47bf
commit 06dbd52a54
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 14 additions and 2 deletions

View file

@ -2,7 +2,6 @@ name,prev,home,next,random
Indieweb,https://xn--sr8hvo.ws/%F0%9F%98%A9%F0%9F%9A%A3%F0%9F%8D%91/previous,https://xn--sr8hvo.ws/,https://xn--sr8hvo.ws/%F0%9F%98%A9%F0%9F%9A%A3%F0%9F%8D%91/next,null Indieweb,https://xn--sr8hvo.ws/%F0%9F%98%A9%F0%9F%9A%A3%F0%9F%8D%91/previous,https://xn--sr8hvo.ws/,https://xn--sr8hvo.ws/%F0%9F%98%A9%F0%9F%9A%A3%F0%9F%8D%91/next,null
a11y-webring,https://a11y-webring.club/prev,https://a11y-webring.club/,https://a11y-webring.club/next,https://a11y-webring.club/random a11y-webring,https://a11y-webring.club/prev,https://a11y-webring.club/,https://a11y-webring.club/next,https://a11y-webring.club/random
Retroweb,https://webri.ng/webring/retroweb/previous?index=3,https://indieseek.xyz/webring/,https://webri.ng/webring/retroweb/next?index=3,https://webri.ng/webring/retroweb/random Retroweb,https://webri.ng/webring/retroweb/previous?index=3,https://indieseek.xyz/webring/,https://webri.ng/webring/retroweb/next?index=3,https://webri.ng/webring/retroweb/random
Focus First,https://dj-chase.com/,https://owlsroost.xyz/webring/,https://owlsroost.xyz/,null
CSS,https://webri.ng/webring/cssjoy/previous?via=https://seirdy.one/,https://cs.sjoy.lol/,https://webri.ng/webring/cssjoy/next?via=https://seirdy.one/,https://webri.ng/webring/cssjoy/random/ CSS,https://webri.ng/webring/cssjoy/previous?via=https://seirdy.one/,https://cs.sjoy.lol/,https://webri.ng/webring/cssjoy/next?via=https://seirdy.one/,https://webri.ng/webring/cssjoy/random/
TheOldNet,https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/previous/navigate,https://webring.theoldnet.com/,https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/next/navigate,https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/random/navigate TheOldNet,https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/previous/navigate,https://webring.theoldnet.com/,https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/next/navigate,https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/random/navigate
geekring,https://geekring.net/site/167/previous,https://geekring.net/,https://geekring.net/site/167/next,https://geekring.net/site/167/random geekring,https://geekring.net/site/167/previous,https://geekring.net/,https://geekring.net/site/167/next,https://geekring.net/site/167/random

1 name prev home next random
2 Indieweb https://xn--sr8hvo.ws/%F0%9F%98%A9%F0%9F%9A%A3%F0%9F%8D%91/previous https://xn--sr8hvo.ws/ https://xn--sr8hvo.ws/%F0%9F%98%A9%F0%9F%9A%A3%F0%9F%8D%91/next null
3 a11y-webring https://a11y-webring.club/prev https://a11y-webring.club/ https://a11y-webring.club/next https://a11y-webring.club/random
4 Retroweb https://webri.ng/webring/retroweb/previous?index=3 https://indieseek.xyz/webring/ https://webri.ng/webring/retroweb/next?index=3 https://webri.ng/webring/retroweb/random
Focus First https://dj-chase.com/ https://owlsroost.xyz/webring/ https://owlsroost.xyz/ null
5 CSS https://webri.ng/webring/cssjoy/previous?via=https://seirdy.one/ https://cs.sjoy.lol/ https://webri.ng/webring/cssjoy/next?via=https://seirdy.one/ https://webri.ng/webring/cssjoy/random/
6 TheOldNet https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/previous/navigate https://webring.theoldnet.com/ https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/next/navigate https://webring.theoldnet.com/member/ba438275f00f5df1a2e78e547424d05e/random/navigate
7 geekring https://geekring.net/site/167/previous https://geekring.net/ https://geekring.net/site/167/next https://geekring.net/site/167/random

View file

@ -65,12 +65,25 @@ endless_orbit() {
echo 'null' echo 'null'
} }
focus_first() {
printf 'Focus First,'
curl -sSL --compressed https://owlsroost.xyz/webring/onionring-variables.js \
| grep -C 1 https://seirdy.one/ \
| tr -d "'\r\n\t" | sed 's|https://seirdy.one/|https://owlsroost.xyz/webring/index.html|'
echo 'null'
}
all_lines() {
endless_orbit
focus_first
}
if [ "$dry_run" = '1' ]; then if [ "$dry_run" = '1' ]; then
endless_orbit endless_orbit
elif [ -f "$webrings_dest" ]; then elif [ -f "$webrings_dest" ]; then
echo "webrings file already generated" echo "webrings file already generated"
else else
endless_orbit | cat "$webrings_src" - >"$webrings_dest" all_lines | cat "$webrings_src" - >"$webrings_dest"
fi fi
# vi:ft=sh # vi:ft=sh