diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-04-01 10:28:40 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-08-14 12:01:19 +0200 |
commit | 6610648e838b69b2280dd64b98780a181cd67180 (patch) | |
tree | 41f02c539fc958161cefa51be46096dbc16dcb6b /.local | |
parent | 0a78dda605bef14bc13cdd3517a2871123115b30 (diff) |
Use a random twitter alternative
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/open | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.local/bin/open b/.local/bin/open index 39ef1e5..9c78c0c 100755 --- a/.local/bin/open +++ b/.local/bin/open @@ -51,7 +51,21 @@ multi sub cmd (HttpUrl $t where *.hostname.ends-with('zaaksysteem.net')) { "chro multi sub cmd (HttpUrl $t where *.hostname.ends-with('zaaksysteem.nl')) { "chromium '$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')) } + +my @not-twitter = < + prvy.top + nitter.42l.fr + nitter.eu + nitter.fdn.fr + nitter.namazso.eu + nitter.nixnet.services + nitter.pussthecat.org + nitter.tedomum.net + nitter.unixfox.eu +>; + +multi sub cmd (HttpUrl $t is copy where *.hostname eq "twitter.com") { callwith(URL.new(|$t.Hash, hostname => @not-twitter.pick())) } + multi sub cmd (HttpUrl $t is copy where *.hostname eq "instagram.com") { callwith(URL.new(|$t.Hash, hostname => 'brap.top', path => $t.path.unshift('u'))) } multi sub cmd (HttpUrl $t is copy where *.hostname eq "www.instagram.com") { callwith(URL.new(|$t.Hash, hostname => 'brap.top', path => $t.path.unshift('u'))) } |