Introduction
Introduction Statistics Contact Development Disclaimer Help
message: sort websites alphabetically by domain name - annna - Annna the nice f…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit fb5c96f71e2d9dd5754b703e5255e018a0c5cacf
parent e24d5c12addb5448b6bcfecc7aa5cba2681eae60
Author: Quentin Rameau <[email protected]>
Date: Fri, 23 Jul 2021 12:46:44 +0200
message: sort websites alphabetically by domain name
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 62 ++++++++++++++++-------------…
1 file changed, 31 insertions(+), 31 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -75,30 +75,21 @@ case "${text}" in
fi
case "${uri}" in
- *youtube.com/*|*youtu.be/*)
- nuri="https://yewtu.be/${uri#https*://*/}"
- fetch-uri "${nuri}" > "${tmpf}"
- urititle="$(curl-grabtitle "${nuri}")"
- sturi="$(subtitle-paste "${uri}")"
- nuris="invidious: ${nuri}"
+ *github.com/*/blob/*)
+ urltitle=""
+ nuris="$(printf '%s' "${uri}" | sed 's/blob/raw/')"
nocuri=0
;;
- *twitter.com*)
- ninstance="$(nitter-instance | sed 's,\.,\\\.,g')"
- nuri="$(printf "%s\n" "${uri}" | sed "s;\(mobile\.\)\{…
- fetch-uri "${nuri}" > "${tmpf}"
- urititle="$(curl-grabtitle "${nuri}")"
- suri="$(screenshot-paste "${nuri}")"
- nuris="nitter: ${nuri}"
- nocuri=0
+ *lichess.org/????????|*lichess.org/????????/|*lichess.org/????…
+ nuris="$(printf "%s\n" "${uri}" \
+ | sed 's,https://lichess.org\(/[^ ]*\)$,\1,; s…
;;
- *en.wikipedia.org/wiki*)
- if ! regeximatch "$uri" '\.(jpg,bmp,gif,png,tiff,avi,m…
+ *www.npr.org/*)
+ post="$(printf '%s\n' "${uri}" | cut -d / -f 7)"
+ if [ -n "${post}" ];
then
- nuri="$(printf '%s\n' "${uri}" | sed -e "s;.*e…
- nuris="$(printf 'gopherpedia: %s\n' "${nuri}")"
- fetch-uri "${nuri}" > "${tmpf}"
- nocuri=0
+ nuri="https://text.npr.org/s.php?sId=${post}"
+ nuris="text only: ${nuri}"
fi
;;
*www.reddit.com*)
@@ -119,22 +110,31 @@ case "${text}" in
fi
nocuri=0
;;
- *github.com/*/blob/*)
- urltitle=""
- nuris="$(printf '%s' "${uri}" | sed 's/blob/raw/')"
+ *twitter.com*)
+ ninstance="$(nitter-instance | sed 's,\.,\\\.,g')"
+ nuri="$(printf "%s\n" "${uri}" | sed "s;\(mobile\.\)\{…
+ fetch-uri "${nuri}" > "${tmpf}"
+ urititle="$(curl-grabtitle "${nuri}")"
+ suri="$(screenshot-paste "${nuri}")"
+ nuris="nitter: ${nuri}"
nocuri=0
;;
- *www.npr.org/*)
- post="$(printf '%s\n' "${uri}" | cut -d / -f 7)"
- if [ -n "${post}" ];
+ *en.wikipedia.org/wiki*)
+ if ! regeximatch "$uri" '\.(jpg,bmp,gif,png,tiff,avi,m…
then
- nuri="https://text.npr.org/s.php?sId=${post}"
- nuris="text only: ${nuri}"
+ nuri="$(printf '%s\n' "${uri}" | sed -e "s;.*e…
+ nuris="$(printf 'gopherpedia: %s\n' "${nuri}")"
+ fetch-uri "${nuri}" > "${tmpf}"
+ nocuri=0
fi
;;
- *lichess.org/????????|*lichess.org/????????/|*lichess.org/????…
- nuris="$(printf "%s\n" "${uri}" \
- | sed 's,https://lichess.org\(/[^ ]*\)$,\1,; s…
+ *youtube.com/*|*youtu.be/*)
+ nuri="https://yewtu.be/${uri#https*://*/}"
+ fetch-uri "${nuri}" > "${tmpf}"
+ urititle="$(curl-grabtitle "${nuri}")"
+ sturi="$(subtitle-paste "${uri}")"
+ nuris="invidious: ${nuri}"
+ nocuri=0
;;
*)
mimetype="$(file -b --mime-type "${tmpf}")"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.