Merge d83ea7e454881b55082cb4e893b3a070315a470c into d6b9fede76fdbde4c396355422552a3c40ecb916
This commit is contained in:
commit
89e94f3f8a
19
CONTRIBUTING.md
Normal file
19
CONTRIBUTING.md
Normal 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
|
@ -272,6 +272,7 @@ const badIdentifiersArray = [
|
|||||||
'tmblr.co',
|
'tmblr.co',
|
||||||
'tumblr.com',
|
'tumblr.com',
|
||||||
'twitch.tv=SN',
|
'twitch.tv=SN',
|
||||||
|
'tweetdeck.twitter.com',
|
||||||
'twitter.com',
|
'twitter.com',
|
||||||
'twitter.com/explore',
|
'twitter.com/explore',
|
||||||
'twitter.com/hashtag',
|
'twitter.com/hashtag',
|
||||||
|
@ -4,7 +4,7 @@ var hostname = typeof (location) != 'undefined' ? location.hostname : '';
|
|||||||
if (hostname.startsWith('www.')) {
|
if (hostname.startsWith('www.')) {
|
||||||
hostname = hostname.substring(4);
|
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('.reddit.com')) hostname = 'reddit.com';
|
||||||
if (hostname.endsWith('.facebook.com')) hostname = 'facebook.com';
|
if (hostname.endsWith('.facebook.com')) hostname = 'facebook.com';
|
||||||
if (hostname.endsWith('.youtube.com')) hostname = 'youtube.com';
|
if (hostname.endsWith('.youtube.com')) hostname = 'youtube.com';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user