This commit is contained in:
Jamie Howarth 2021-12-10 23:48:31 +00:00 committed by GitHub
commit 89e94f3f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

19
CONTRIBUTING.md Normal file
View File

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

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