Added support for Tweetdeck

This commit is contained in:
Jamie Howarth 2021-12-10 23:08:20 +00:00
parent d6b9fede76
commit 911fc4a0f0
2 changed files with 2 additions and 1 deletions

View File

@ -272,6 +272,7 @@ const badIdentifiersArray = [
'tmblr.co',
'tumblr.com',
'twitch.tv=SN',
'tweetdeck.twitter.com',
'twitter.com',
'twitter.com/explore',
'twitter.com/hashtag',

View File

@ -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';