diff options
-rwxr-xr-x | .local/bin/open | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/open b/.local/bin/open index 66d58f6..0ba1c32 100755 --- a/.local/bin/open +++ b/.local/bin/open @@ -50,6 +50,9 @@ multi sub cmd (HttpUrl $t where *.hostname.ends-with('slack.com')) { "chromium-b multi sub cmd (HttpUrl $t where *.hostname.ends-with('zaaksysteem.net')) { "chromium-browser '$t'" } multi sub cmd (HttpUrl $t where *.hostname.ends-with('zaaksysteem.nl')) { "chromium-browser '$t'" } +# Rewrite bad site to good site +multi sub cmd (HttpUrl $t is copy where *.hostname eq "twitter.com") { callwith(URL.new(|$t.Hash, hostname => 'nitter.net')) } + # All other URLs should be opened with the preferred browser. multi sub cmd (HttpUrl $t) { "%*ENV<BROWSER> '$t'" } |