summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorepoch <epoch@enzo.thebackupbox.net>2022-02-24 11:01:08 +0000
committerepoch <epoch@enzo.thebackupbox.net>2022-02-24 11:01:08 +0000
commitaf7a8f4e59f0d3dbf0608eba169adab6c0d1951b (patch)
tree58c427a35ad0d4965a06db27fb764d0e8ef2511b /contrib
parentc5e49f1a3529fd1f7928fb679ad7d9a652e87c45 (diff)
downloaduritools-af7a8f4e59f0d3dbf0608eba169adab6c0d1951b.tar.gz
uritools-af7a8f4e59f0d3dbf0608eba169adab6c0d1951b.zip
added ability to convert file: URIs for cached wikipedia articles back into https URIs.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/wikipedia.uristart.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/wikipedia.uristart.conf b/contrib/wikipedia.uristart.conf
index 177ed88..a3c4d3c 100644
--- a/contrib/wikipedia.uristart.conf
+++ b/contrib/wikipedia.uristart.conf
@@ -1,2 +1,3 @@
s https d en.wikipedia.org p /wiki/*: wikipedia-handler "$(printf "%%s\n" '%p' | sed 's|^/wiki/||')"
s https d en.wikipedia.org p /w/index.php q *title=Special*Search* q *search=*: wikipedia-search-handler '%U'
+s file p */.cache/wikipedia/*.pdf: printf "%%s\n" '%p' | rev | cut -d/ -f1 | cut -d. -f2- | rev | xargs printf "https://en.wikipedia.org/wiki/%%s\n" | xargs copy_start_nevermind.sh