Print archive uri for JS-laden/paywalled sites. - annna - Annna the nice friend… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 90f6e9a092fcabc6d187497fb44fb72447b0b3f4 | |
parent 4b9dce6013820f08b1fda84acd9603a9f56817c2 | |
Author: eidolon <?> | |
Date: Thu, 10 Oct 2024 07:20:32 -0400 | |
Print archive uri for JS-laden/paywalled sites. | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 4 ++++ | |
1 file changed, 4 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -164,6 +164,10 @@ case "${text}" in | |
nuris="text only: ${nuri}" | |
fi | |
;; | |
+ *wsj.com/*|*ft.com/*|*nytimes.com/*) | |
+ nuri="https://archive.is/newest/$uri" | |
+ nuris="recent archive: $nuri" | |
+ ;; | |
*www.reddit.com*) | |
nuri="$(printf '%s\n' "${uri}" | sed "s;www.reddit.com;old.red… | |
nuris="old.reddit: ${nuri}" |