diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..4a061df --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,19 @@ +# CONTRIBUTING + +## Prerequisites + +* Node.js +* Typescript (`npm i -g typescript`) + +## Compiling + +* Run `tsc` in the `extension` directory, or `tsc --watch` for auto-compilation when you make changes to the codebase + +## Testing + +These instructions are for Chromium-based browsers only (Chrome, Edge, Brave, Vivaldi, etc.), instructions for Firefox would be appreciated. Make sure to have compiled your code first. If using live reloading using `--watch`, you will *still* have to manually reload the extension in the Extensions window for any changes to be picked up by the browser. + +* Open [chrome://extensions](chrome://extensions) +* Enable "Developer mode" +* Click "load unpacked" +* Select the `extension` directory 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';