diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-01-24 13:10:23 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-01-24 13:10:29 +0100 |
commit | fee8c93934afbc54252ff9b745e0b8104942036e (patch) | |
tree | 33cd693bdaaf06e867809b556b670946a7b39d81 | |
parent | 04279caf5bde6ab619f4c6d26d1b28975fc7653d (diff) |
Use my own teddit instance for Reddit URLs
-rwxr-xr-x | .local/bin/open | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/open b/.local/bin/open index aabebdb..8caefd3 100755 --- a/.local/bin/open +++ b/.local/bin/open @@ -84,6 +84,8 @@ my @not-youtube = < 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 ∈ < reddit.com www.reddit.com >) { callwith(URL.new(|$t.Hash, hostname => "reddit.alt.tyil.nl")) } + 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'))) } |