This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from corbindavenport/dev
NoPlugin 6.2
- Loading branch information
Showing
5 changed files
with
239 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// This is where NoPlugin stores its blacklists. | ||
|
||
// URL patterns of sites that NoPlugin shouldn't run on | ||
// Examples: Sites that heavily rely on Flash, sites that host tracking scripts | ||
var siteBlocks = [ | ||
//'^https:\/\/corbin.io', (for testing) | ||
'^https:\/\/www\.xfinity\.com\/stream', // Xfinity Stream (#70) | ||
] | ||
|
||
// URL patterns of files NoPlugin shouldn't load | ||
// Examples: Tracking scripts, fallbacks for HTML5 players, etc. | ||
var embedBlocks = [ | ||
'fp.swf', // Tracking (#66) | ||
] | ||
|
||
// Generate regexes | ||
const globalSiteBlockList = new RegExp(siteBlocks.join('|'), 'i') | ||
const globalEmbedBlockList = new RegExp(embedBlocks.join('|'), 'i') |
Oops, something went wrong.