From 911fc4a0f0e1fd9feb44ffcc1dc9a27562ff09ea Mon Sep 17 00:00:00 2001 From: Jamie Howarth Date: Fri, 10 Dec 2021 23:08:20 +0000 Subject: [PATCH] Added support for Tweetdeck --- extension/background.ts | 1 + extension/content.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/background.ts b/extension/background.ts index 743efe4..32621e8 100644 --- a/extension/background.ts +++ b/extension/background.ts @@ -272,6 +272,7 @@ const badIdentifiersArray = [ 'tmblr.co', 'tumblr.com', 'twitch.tv=SN', + 'tweetdeck.twitter.com', 'twitter.com', 'twitter.com/explore', 'twitter.com/hashtag', diff --git a/extension/content.ts b/extension/content.ts index 0f86d82..7cbf62b 100644 --- a/extension/content.ts +++ b/extension/content.ts @@ -4,7 +4,7 @@ var hostname = typeof (location) != 'undefined' ? location.hostname : ''; if (hostname.startsWith('www.')) { hostname = hostname.substring(4); } -if (hostname == 'mobile.twitter.com') hostname = 'twitter.com'; +if (hostname == 'mobile.twitter.com' || hostname == 'tweetdeck.twitter.com') hostname = 'twitter.com'; if (hostname.endsWith('.reddit.com')) hostname = 'reddit.com'; if (hostname.endsWith('.facebook.com')) hostname = 'facebook.com'; if (hostname.endsWith('.youtube.com')) hostname = 'youtube.com';