From 50477da8d73997c012f5466212d2264c68ee5a26 Mon Sep 17 00:00:00 2001 From: SimonBrazell Date: Wed, 20 May 2020 09:10:38 +1000 Subject: Fixes #51 & fixes #52 - `/tweets` redirects & popup styling --- background.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'background.js') diff --git a/background.js b/background.js index d90f55c6..5c847024 100644 --- a/background.js +++ b/background.js @@ -232,6 +232,8 @@ function redirectTwitter(url, initiator) { return `${nitterInstance}/pic/${encodeURIComponent(url.href)}`; } else if (url.host.split('.')[0] === 'video') { return `${nitterInstance}/gif/${encodeURIComponent(url.href)}`; + } else if (url.pathname.includes('tweets')) { + return `${nitterInstance}${url.pathname.replace('/tweets', '')}${url.search}`; } else { return `${nitterInstance}${url.pathname}${url.search}`; } -- cgit 1.4.1