diff options
author | SimonBrazell <simon@brazell.com.au> | 2021-06-16 22:22:53 +1000 |
---|---|---|
committer | SimonBrazell <simon@brazell.com.au> | 2021-06-16 22:22:53 +1000 |
commit | 061dfc0904181e458cc07cb1e0b099ceffe890e9 (patch) | |
tree | 812e06189c3d74907cf5343c9e36ac1200111a3b /src/pages | |
parent | Update translations (diff) | |
download | libredirect-061dfc0904181e458cc07cb1e0b099ceffe890e9.zip |
Redirect Twitter "video" subdomain & update dev dependencies.
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/background/background.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 87bc8dda..9585ed99 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -305,14 +305,10 @@ function redirectTwitter(url, initiator) { }); return null; } - if (url.host.split(".")[0] === "pbs") { + if (url.host.split(".")[0] === "pbs" || url.host.split(".")[0] === "video") { return `${ nitterInstance || commonHelper.getRandomInstance(nitterRandomPool) }/pic/${encodeURIComponent(url.href)}`; - } else if (url.host.split(".")[0] === "video") { - return `${ - nitterInstance || commonHelper.getRandomInstance(nitterRandomPool) - }/gif/${encodeURIComponent(url.href)}`; } else if (url.pathname.split("/").includes("tweets")) { return `${ nitterInstance || commonHelper.getRandomInstance(nitterRandomPool) |