readwwwlog: Fix pastebin.com
This commit is contained in:
parent
4925847c43
commit
4e7c0f4d96
@ -28,7 +28,11 @@ for url in ${urls}; do
|
||||
elif [[ ${url} =~ '(//|\.)(pastebin\.|paste\.centos\.org)' ]] && \
|
||||
[[ ! ${url} =~ '/raw/' ]]; then
|
||||
local host=${${(@s:/:)url}[2]}
|
||||
url="https://${host}/view/raw/${id}"
|
||||
if [[ ${${(@s:/:)url}[3]} == "view" ]]; then
|
||||
url="https://${host}/view/raw/${id}"
|
||||
else
|
||||
url="https://${host}/raw/${id}"
|
||||
fi
|
||||
elif [[ ${url} =~ 'irccloud\.com' && ! ${url} =~ '/raw/' ]]; then
|
||||
id=${${(@s:/:)url}[4]}
|
||||
url="https://www.irccloud.com/pastebin/raw/${id}"
|
||||
|
@ -29,7 +29,7 @@ local -A assignments=(
|
||||
'^(gemini|gopher)://' "kristall"
|
||||
'\.(log|txt)$' "readwwwlog"
|
||||
'^https?://(www\.)?(dpaste|irccloud)\.com/' "readwwwlog"
|
||||
'^https?://(www\.)?pastebin\.[^/]+/view/' "readwwwlog"
|
||||
'^https?://(www\.)?pastebin\.[^/]+/' "readwwwlog"
|
||||
'^https?://bpa\.st/' "readwwwlog"
|
||||
'^https?://sprunge\.us/' "readwwwlog"
|
||||
'^https?://paste\.debian\.net/' "readwwwlog"
|
||||
|
Loading…
x
Reference in New Issue
Block a user