urlhandler: fix the 0x0 fix
Since i use a normal array now, the rules are iterated over from top to down. So i just move the image rule above the 0x0 rule. Restricting 0x0 to .txt didn't do anything because there is a generic .txt rule.
This commit is contained in:
parent
c70e900d84
commit
73fb0c5089
@ -30,6 +30,7 @@ local -a assignments=(
|
||||
'^https://yewtu\.be/watch\?v=' "${mpv}"
|
||||
'^https://v.redd.it/' "${mpv}"
|
||||
'^(gemini|gopher)://' "kristall"
|
||||
'\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg"
|
||||
'\.(log|txt)$' "readwwwlog"
|
||||
'^https?://(www\.)?(dpaste|irccloud|termbin)\.com/' "readwwwlog"
|
||||
'^https?://(www\.)?pastebin\.[^/]+/' "readwwwlog"
|
||||
@ -39,8 +40,7 @@ local -a assignments=(
|
||||
'^https?://paste\.centos\.org/' "readwwwlog"
|
||||
'^https?://paste\.ee/' "readwwwlog"
|
||||
'^https?://ix\.io/' "readwwwlog"
|
||||
'^https?://0x0.st/.+\.txt$' "readwwwlog"
|
||||
'\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg"
|
||||
'^https?://0x0.st/' "readwwwlog"
|
||||
'(^magnet:|\.torrent$)' "transmission-remote-gtk"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user