From af7a8f4e59f0d3dbf0608eba169adab6c0d1951b Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 24 Feb 2022 11:01:08 +0000 Subject: added ability to convert file: URIs for cached wikipedia articles back into https URIs. --- contrib/wikipedia.uristart.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/wikipedia.uristart.conf') 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 -- cgit v1.2.3