Add The Jerusalem Post (Israel)
This commit is contained in:
parent
b1dfa038e1
commit
1996aeb948
@ -485,6 +485,7 @@ For example:
|
||||
[Globes](https://www.globes.co.il) -
|
||||
[Haaretz.co.il](https://www.haaretz.co.il) -
|
||||
[Haaretz.com](https://www.haaretz.com) -
|
||||
[The Jerusalem Post](https://www.jpost.com) -
|
||||
[The Marker](https://www.themarker.com)
|
||||
|
||||
#### Lebanon
|
||||
|
@ -4,7 +4,7 @@
|
||||
var ext_api = (typeof browser === 'object') ? browser : chrome;
|
||||
var ext_name = ext_api.runtime.getManifest().name;
|
||||
|
||||
const cs_limit_except = ['afr.com', 'discovermagazine.com', 'elcomercio.pe', 'elpais.com', 'faz.net', 'gestion.pe', 'harpers.org', 'inkl.com', 'la-croix.com', 'lescienze.it', 'lne.es', 'marketwatch.com', 'newleftreview.org', 'prospectmagazine.co.uk', 'techinasia.com', 'thepointmag.com'];
|
||||
const cs_limit_except = ['afr.com', 'discovermagazine.com', 'elcomercio.pe', 'elpais.com', 'faz.net', 'gestion.pe', 'harpers.org', 'inkl.com', 'jpost.com', 'la-croix.com', 'lescienze.it', 'lne.es', 'marketwatch.com', 'newleftreview.org', 'prospectmagazine.co.uk', 'techinasia.com', 'thepointmag.com'];
|
||||
var currentTabUrl = '';
|
||||
var csDone = false;
|
||||
|
||||
@ -72,6 +72,7 @@ var allow_cookies_default = [
|
||||
'ilrestodelcarlino.it',
|
||||
'independent.ie',
|
||||
'intelligentinvestor.com.au',
|
||||
'jpost.com',
|
||||
'knack.be',
|
||||
'kurier.at',
|
||||
'la-croix.com',
|
||||
@ -256,6 +257,7 @@ var blockedRegexes = {
|
||||
'independent.ie': /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/,
|
||||
'inquirer.com': /\.tinypass\.com\/.+/,
|
||||
'irishtimes.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/,
|
||||
'jpost.com': /\.jpost\.com\/bundles\/js_article\?/,
|
||||
'knack.be': /.+\.knack\.be\/js\/responsive\/rmgModal\.js/,
|
||||
'kurier.at': /\.tinypass\.com\/.+/,
|
||||
'la-croix.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/,
|
||||
@ -794,7 +796,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
|
||||
// block external javascript for custom sites (optional)
|
||||
var domain_blockjs_ext = matchUrlDomain(block_js_custom_ext, header_referer);
|
||||
if (domain_blockjs_ext && !matchUrlDomain(domain_blockjs_ext, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/) && isSiteEnabled({url: header_referer})) {
|
||||
if (domain_blockjs_ext && !matchUrlDomain(domain_blockjs_ext, details.url) && details.type === 'script' && isSiteEnabled({url: header_referer})) {
|
||||
return { cancel: true };
|
||||
}
|
||||
|
||||
@ -852,7 +854,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
|
||||
// block javascript of (sub)domain for custom sites (optional)
|
||||
var domain_blockjs = matchUrlDomain(block_js_custom, details.url);
|
||||
if (domain_blockjs && matchUrlDomain(domain_blockjs, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/)) {
|
||||
if (domain_blockjs && matchUrlDomain(domain_blockjs, details.url) && details.type === 'script') {
|
||||
return { cancel: true };
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,9 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add The Hill Times (Canada)
|
||||
Add The Jerusalem Post (Israel)
|
||||
Fix-update El Pais (premium/images)
|
||||
Update custom sites (block Javascript)
|
||||
|
||||
* v2.0.5.0 (2021-01-24)
|
||||
Add Ambito (Argentina)
|
||||
|
@ -1977,6 +1977,11 @@ else if (matchDomain('elconfidencial.com')) {
|
||||
premium.classList.remove('newsType__content--closed');
|
||||
}
|
||||
|
||||
else if (matchDomain('jpost.com')) {
|
||||
let premium_banners = document.querySelectorAll('.hide-for-premium, #hiddenPremiumForm, #hiddenLink');
|
||||
removeDOMElement(...premium_banners);
|
||||
}
|
||||
|
||||
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
|
||||
csDone = true;
|
||||
|
||||
|
@ -184,6 +184,7 @@
|
||||
"*://*.japantimes.co.jp/*",
|
||||
"*://*.journaldunet.com/*",
|
||||
"*://*.journalnow.com/*",
|
||||
"*://*.jpost.com/*",
|
||||
"*://*.kauppalehti.fi/*",
|
||||
"*://*.kn-online.de/*",
|
||||
"*://*.knack.be/*",
|
||||
@ -430,5 +431,5 @@
|
||||
"*://*.userzoom.com/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.0.5.1"
|
||||
"version": "2.0.5.2"
|
||||
}
|
1
sites.js
1
sites.js
@ -211,6 +211,7 @@ var defaultSites =
|
||||
"The Hindu BusinessLine": "thehindubusinessline.com",
|
||||
"The Irish Times": "irishtimes.com",
|
||||
"The Japan Times": "japantimes.co.jp",
|
||||
"The Jerusalem Post": "jpost.com",
|
||||
"The Logic": "thelogic.co",
|
||||
"The Marker": "themarker.com",
|
||||
"The Mercury News": "mercurynews.com",
|
||||
|
Loading…
x
Reference in New Issue
Block a user