diff options
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/background/background.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index d60d0667..88b6f759 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -307,14 +307,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) @@ -555,10 +551,7 @@ browser.webRequest.onBeforeRequest.addListener( redirect = { redirectUrl: redirectGoogleMaps(url, initiator), }; - } else if ( - redditDomains.includes(url.host) || - redditInstances.includes(url.origin) - ) { + } else if (redditDomains.includes(url.host)) { redirect = { redirectUrl: redirectReddit(url, initiator, details.type), }; |