Compare commits
5 Commits
7fc2bf67aa
...
4702da24c5
Author | SHA1 | Date |
---|---|---|
magnolia1234 | 4702da24c5 | |
magnolia1234 | 45fef25ada | |
magnolia1234 | bdb078c037 | |
magnolia1234 | aca717b3bb | |
magnolia1234 | 5566e36011 |
|
@ -146,6 +146,7 @@ Grouped in options:\
|
|||
[National Geographic USA](https://www.nationalgeographic.com) -
|
||||
[Nautilus](https://nautil.us) -
|
||||
[New Scientist](https://www.newscientist.com) -
|
||||
[Popular Science](https://www.popsci.com) -
|
||||
[Science](https://www.science.org)* -
|
||||
[Scientific American](https://www.scientificamerican.com) -
|
||||
[Times Higher Education](https://www.timeshighereducation.com) -
|
||||
|
@ -306,6 +307,7 @@ Grouped in options:\
|
|||
[San Francisco Chronicle](https://www.sfchronicle.com)\
|
||||
*Lee Enterprises Group* sites like (opt-in to custom sites for unlisted)\
|
||||
[Arizona Daily Star](https://tucson.com) -
|
||||
[Omaha World-Herald](https://omaha.com) -
|
||||
[Richmond Times-Dispatch](https://richmond.com) -
|
||||
[The Buffalo News](https://buffalonews.com) -
|
||||
[Tulsa World](https://tulsaworld.com) -
|
||||
|
@ -418,6 +420,7 @@ Grouped in options:\
|
|||
##### France/Wallonia
|
||||
[Alternatives Economiques](https://www.alternatives-economiques.fr) -
|
||||
[Atlantico](https://atlantico.fr) -
|
||||
[Auto Plus](https://www.autoplus.fr) -
|
||||
[Causeur](https://www.causeur.fr) -
|
||||
[Challenges](https://www.challenges.fr) -
|
||||
[Charlie Hebdo](https://charliehebdo.fr) -
|
||||
|
|
|
@ -21,6 +21,7 @@ var restrictions = {
|
|||
'economictimes.com': /\.economictimes\.com($|\/($|(__assets|prime)(\/.+)?|.+\.cms))/,
|
||||
'elespanol.com': /^((?!\/cronicaglobal\.elespanol\.com\/).)*$/,
|
||||
'espn.com': /^((?!espn\.com\/watch).)*$/,
|
||||
'esquire.com': /^((?!\/classic\.esquire\.com\/).)*$/,
|
||||
'faz.net': /^((?!\.faz\.net\/aktuell\/(\?switchfaznet)?$).)*$/,
|
||||
'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/,
|
||||
'nytimes.com': /^((?!\/timesmachine\.nytimes\.com\/).)*$/,
|
||||
|
@ -291,8 +292,6 @@ function set_rules(sites, sites_updated, sites_custom) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (enabledSites.includes('#options_optin_tgam_premium'))
|
||||
blockedRegexes['theglobeandmail.com'] = /smartwall\.theglobeandmail\.com\//;
|
||||
use_random_ip = Object.keys(random_ip);
|
||||
change_headers = use_google_bot.concat(use_bing_bot, use_facebook_referer, use_google_referer, use_twitter_referer, use_random_ip);
|
||||
disableJavascriptOnListedSites();
|
||||
|
@ -653,14 +652,13 @@ ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
|||
['blocking', 'responseHeaders']);
|
||||
|
||||
// block inline script
|
||||
var block_js_inline = ["*://*.crusoe.uol.com.br/*", "*://*.elpais.com/*", "*://*.nautil.us/*", "*://*.theglobeandmail.com/*"];
|
||||
var block_js_inline = ["*://*.crusoe.uol.com.br/*", "*://*.elpais.com/*", "*://*.nautil.us/*"];
|
||||
if (block_js_inline.length)
|
||||
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||
let url_path = details.url.split('?')[0];
|
||||
let excluded = (matchUrlDomain('crusoe.uol.com.br', details.url) && (optin_setcookie || !url_path.match(/\.br\/(diario|edicoes)\/.+/)))
|
||||
|| (matchUrlDomain('elpais.com', details.url) && (url_path.includes('/elpais.com') || !url_path.includes('.html')))
|
||||
|| (matchUrlDomain('nautil.us', details.url) && !details.url.match(/((\w)+(\-)+){3,}/))
|
||||
|| (matchUrlDomain('theglobeandmail.com', details.url) && (!enabledSites.includes('#options_optin_tgam_premium') || !details.url.includes('?rel=premium')));
|
||||
|| (matchUrlDomain('nautil.us', details.url) && !details.url.match(/((\w)+(\-)+){3,}/));
|
||||
if (!isSiteEnabled(details) || excluded)
|
||||
return;
|
||||
var headers = details.responseHeaders;
|
||||
|
@ -994,7 +992,7 @@ if (matchUrlDomain(change_headers, details.url) && !['font', 'image', 'styleshee
|
|||
!(matchUrlDomain(['economictimes.com', 'economictimes.indiatimes.com'], details.url) && !details.url.split(/\?|#/)[0].endsWith('.cms')) &&
|
||||
!(matchUrlDomain('theaustralian.com.au', details.url) && !details.url.startsWith('https://www.theaustralian.com.au/the-oz/')) &&
|
||||
!(matchUrlDomain('uol.com.br', details.url) && !matchUrlDomain('folha.uol.com.br', details.url)) &&
|
||||
!(matchUrlDomain('wsj.com', details.url) && enabledSites.includes('#options_disable_gb_wsj'));
|
||||
!(matchUrlDomain('wsj.com', details.url) && (enabledSites.includes('#options_disable_gb_wsj') || !details.url.includes('/articles/')));
|
||||
var bingbotEnabled = matchUrlDomain(use_bing_bot, details.url) &&
|
||||
!(matchUrlDomain('stratfor.com', details.url) && details.url.match(/(\/(\d){4}-([a-z]||-)+-forecast(-([a-z]|-)+)?|-forecast-(\d){4}-([a-z]|[0-9]||-)+)$/));
|
||||
|
||||
|
|
|
@ -2,10 +2,15 @@
|
|||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add AutoPlus.fr
|
||||
Add Omaha World-Herald (Lee Enterprises Group)
|
||||
Add Popular Science
|
||||
Remove Dark Reading (no paywall)
|
||||
Fix Australian Community Media (overlay)
|
||||
Fix L'Opinion.fr
|
||||
Fix The Globe and Mail (images)
|
||||
Fix The Toronto Star
|
||||
Fix WSJ (mobile layout)
|
||||
|
||||
* v2.8.2.0 (2022-08-28)
|
||||
Add New Scientist
|
||||
|
|
|
@ -33,7 +33,7 @@ var usa_conde_nast_domains = ['architecturaldigest.com', 'bonappetit.com', 'gq.c
|
|||
var usa_craincomm_domains = ['adage.com', 'autonews.com', 'chicagobusiness.com', 'crainscleveland.com', 'crainsdetroit.com', 'crainsnewyork.com', 'modernhealthcare.com'];
|
||||
var usa_genomeweb_domains = ['360dx.com', 'genomeweb.com', 'precisiononcologynews.com'];
|
||||
var usa_hearst_comm_domains = ['expressnews.com', 'houstonchronicle.com', 'sfchronicle.com'];
|
||||
var usa_lee_ent_domains = ['buffalonews.com', 'richmond.com', 'tucson.com', 'tulsaworld.com'];
|
||||
var usa_lee_ent_domains = ['buffalonews.com', 'journalnow.com', 'omaha.com', 'richmond.com', 'tucson.com', 'tulsaworld.com'];
|
||||
var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'miamiherald.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
|
||||
var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com', 'ocregister.com', 'pe.com', 'twincities.com'];
|
||||
var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition.com", "cleaneatingmag.com", "climbing.com", "cyclingtips.com", "gymclimber.com", "outsideonline.com", "oxygenmag.com", "pelotonmagazine.com", "podiumrunner.com", "rockandice.com", "skimag.com", "trailrunnermag.com", "triathlete.com", "vegetariantimes.com", "velonews.com", "womensrunning.com", "yogajournal.com"];
|
||||
|
@ -1128,6 +1128,11 @@ else if (matchDomain('atlantico.fr')) {
|
|||
paywall.setAttribute('class', 'markup');
|
||||
}
|
||||
|
||||
else if (matchDomain('autoplus.fr')) {
|
||||
let ads = document.querySelectorAll('div.placeholder-pub_dfp');
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain('challenges.fr')) {
|
||||
if (window.location.pathname.endsWith('.amp')) {
|
||||
amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"');
|
||||
|
@ -3185,12 +3190,12 @@ else if (matchDomain('nationalgeographic.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('nationalreview.com')) {
|
||||
let url = window.location.href.split('?')[0];
|
||||
if (!url.includes('/amp/')) {
|
||||
let continue_reading = document.querySelector('div.continue-reading');
|
||||
if (continue_reading) {
|
||||
removeDOMElement(continue_reading);
|
||||
window.location.href = url + 'amp';
|
||||
if (!window.location.pathname.endsWith('/amp/')) {
|
||||
let paywall = document.querySelector('div.continue-reading');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
}
|
||||
let adverts = document.querySelectorAll('amp-ad, .ad-unit--center, amp-connatix-player');
|
||||
|
@ -3706,16 +3711,12 @@ else if (matchDomain('thediplomat.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('theglobeandmail.com')) {
|
||||
let paywall = document.querySelector('div.c-paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let url = window.location.href.split('?')[0];
|
||||
window.location.href = url + '?rel=premium';
|
||||
} else {
|
||||
let article_body_subscribed = document.querySelector('.c-article-body--subscribed');
|
||||
if (article_body_subscribed)
|
||||
article_body_subscribed.removeAttribute('class');
|
||||
}
|
||||
let article_body_subscribed = document.querySelector('.c-article-body--subscribed');
|
||||
if (article_body_subscribed)
|
||||
article_body_subscribed.removeAttribute('class');
|
||||
let lazy_images = document.querySelectorAll('img.lazyimage[src^="data:image/"][data-src]');
|
||||
for (let elem of lazy_images)
|
||||
elem.src = elem.getAttribute('data-src');
|
||||
let banners = document.querySelectorAll('div.c-ad, div#subscription-pencil-area, div.marketing-container-wrapper');
|
||||
removeDOMElement(...banners);
|
||||
}
|
||||
|
|
|
@ -43,5 +43,5 @@
|
|||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.8.2.3"
|
||||
"version": "2.8.2.7"
|
||||
}
|
||||
|
|
|
@ -46,6 +46,11 @@
|
|||
"block_regex": "\\.tinypass\\.com\\/",
|
||||
"domain": "eluniversal.com.mx"
|
||||
},
|
||||
"Euromoney.com": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "euromoney.com",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Fnweb.de": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "fnweb.de",
|
||||
|
@ -75,6 +80,11 @@
|
|||
"allow_cookies": 1,
|
||||
"domain": "internationalepolitik.de"
|
||||
},
|
||||
"Internationaltaxreview.com": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "internationaltaxreview.com",
|
||||
"ld_google_webcache": "div.paywall|div.ArticlePage-articleContainer"
|
||||
},
|
||||
"Kaleva.fi": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "kaleva.fi",
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
"*://*.augsburger-allgemeine.de/*",
|
||||
"*://*.automobilwoche.de/*",
|
||||
"*://*.autonews.com/*",
|
||||
"*://*.autoplus.fr/*",
|
||||
"*://*.azcentral.com/*",
|
||||
"*://*.backpacker.com/*",
|
||||
"*://*.baltimoresun.com/*",
|
||||
|
@ -440,6 +441,7 @@
|
|||
"*://*.nzz.ch/*",
|
||||
"*://*.observador.pt/*",
|
||||
"*://*.ocregister.com/*",
|
||||
"*://*.omaha.com/*",
|
||||
"*://*.oregonlive.com/*",
|
||||
"*://*.orlandosentinel.com/*",
|
||||
"*://*.ostsee-zeitung.de/*",
|
||||
|
@ -462,6 +464,7 @@
|
|||
"*://*.piqd.de/*",
|
||||
"*://*.podiumrunner.com/*",
|
||||
"*://*.politicaexterior.com/*",
|
||||
"*://*.popsci.com/*",
|
||||
"*://*.popularmechanics.com/*",
|
||||
"*://*.post-gazette.com/*",
|
||||
"*://*.precisiononcologynews.com/*",
|
||||
|
@ -687,5 +690,5 @@
|
|||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.8.2.3"
|
||||
"version": "2.8.2.7"
|
||||
}
|
||||
|
|
17
sites.js
17
sites.js
|
@ -163,6 +163,11 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /\.automobilwoche\.de\/s3fs-public\/js\/js_.+\.js/
|
||||
},
|
||||
"AutoPlus.fr": {
|
||||
domain: "autoplus.fr",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.qiota\.com\//
|
||||
},
|
||||
"Badische Neueste Nachrichten": {
|
||||
allow_cookies: 1,
|
||||
domain: "bnn.de",
|
||||
|
@ -1040,6 +1045,7 @@ var defaultSites = {
|
|||
group: [
|
||||
"buffalonews.com",
|
||||
"journalnow.com",
|
||||
"omaha.com",
|
||||
"richmond.com",
|
||||
"tucson.com",
|
||||
"tulsaworld.com"
|
||||
|
@ -1224,8 +1230,7 @@ var defaultSites = {
|
|||
"National Review": {
|
||||
domain: "nationalreview.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.blueconic\.net\/|\.nationalreview\.com\/script\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/,
|
||||
useragent: "googlebot"
|
||||
block_regex: /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
},
|
||||
"Nautilus": {
|
||||
domain: "nautil.us",
|
||||
|
@ -1400,6 +1405,11 @@ var defaultSites = {
|
|||
domain: "politicaexterior.com",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"Popular Science": {
|
||||
domain: "popsci.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /js\.pelcro\.com\//
|
||||
},
|
||||
"Postmedia Network": {
|
||||
domain: "###_ca_postmedia",
|
||||
group: [
|
||||
|
@ -2080,9 +2090,6 @@ var defaultSites = {
|
|||
"The Wall Street Journal - no Googlebot (http error 500)": {
|
||||
domain: "#options_disable_gb_wsj"
|
||||
},
|
||||
"The Globe and Mail premium-only (or when empty sections)": {
|
||||
domain: "#options_optin_tgam_premium"
|
||||
},
|
||||
}
|
||||
|
||||
if (typeof browser === 'object') {
|
||||
|
|
|
@ -25,11 +25,11 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"Business Standard": {
|
||||
"domain": "business-standard.com",
|
||||
"AutoPlus.fr": {
|
||||
"domain": "autoplus.fr",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js",
|
||||
"amp_redirect": "p.read-txt"
|
||||
"block_regex": "\\.qiota\\.com\\/",
|
||||
"new_site": 1
|
||||
},
|
||||
"Chronicle of Philanthropy": {
|
||||
"domain": "philanthropy.com",
|
||||
|
@ -49,29 +49,6 @@
|
|||
"block_regex": "(\\.poool\\.fr\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
|
||||
"amp_redirect": "div#poool-widget"
|
||||
},
|
||||
"La Vie": {
|
||||
"domain": "lavie.fr",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.poool\\.fr\\/",
|
||||
"cs_code": [{
|
||||
"cond": "div.bloc-payant",
|
||||
"rm_elem": 1
|
||||
}, {
|
||||
"cond": "div.content-art[style]",
|
||||
"rm_attrib": "style"
|
||||
}
|
||||
]
|
||||
},
|
||||
"LiveMint": {
|
||||
"domain": "livemint.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.livemint\\.com\\/__js\\/lm_subscription_.+\\.js|\\.piano\\.io\\/api\\/tinypass\\.min\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
|
||||
"cs_code": [{
|
||||
"cond": "div.paywall",
|
||||
"rm_class": "paywall"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Los Angeles Times": {
|
||||
"domain": "latimes.com",
|
||||
"block_regex": "(metering\\.platform\\.latimes\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)"
|
||||
|
@ -101,25 +78,18 @@
|
|||
"allow_cookies": 1,
|
||||
"block_regex": "\\.piano\\.io\\/api\\/tinypass\\.min\\.js"
|
||||
},
|
||||
"Neue Westfälische": {
|
||||
"domain": "nw.de",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js",
|
||||
"amp_redirect": "div[data-tracking-visible^=\"paywall-\"]",
|
||||
"amp_unhide": 1,
|
||||
"cs_code": [{
|
||||
"cond": "div.paywallOverlay",
|
||||
"rm_elem": 1
|
||||
}
|
||||
],
|
||||
"new_site": 1
|
||||
},
|
||||
"New Scientist (no images as updated site)": {
|
||||
"domain": "newscientist.com",
|
||||
"allow_cookies": 1,
|
||||
"ld_google_webcache": "#subscription-barrier|div.article-body",
|
||||
"new_site": 1
|
||||
},
|
||||
"Popular Science": {
|
||||
"domain": "popsci.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "js\\.pelcro\\.com\\/",
|
||||
"new_site": 1
|
||||
},
|
||||
"San Diego Union Tribune": {
|
||||
"domain": "sandiegouniontribune.com",
|
||||
"block_regex": "(metering\\.platform\\.sandiegouniontribune\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)"
|
||||
|
|
Loading…
Reference in New Issue