Add Advance Local (local USA)

This commit is contained in:
magnolia1234 2021-11-16 18:21:45 +01:00
parent 08bf2606c3
commit 97f3697af7
6 changed files with 64 additions and 8 deletions

View File

@ -209,6 +209,17 @@ Grouped in options:\
[USA Today](https://www.usatoday.com)\
Grouped in options:\
*Advance Local* sites like:\
[AL/Alabama](https://www.al.com) -
[MLive/Michigan](https://www.mlive.com) -
[NJ/New Jersey](https://www.nj.com) -
[Staten Island Advance](https://www.silive.com) -
[The Express-Times](https://www.lehighvalleylive.com) -
[The Oregonian](https://www.oregonlive.com) -
[The Patriot-News](https://www.pennlive.com) -
[The Plain Dealer](https://www.cleveland.com) -
[The Post-Standard](https://www.syracuse.com) -
[The Republican](https://www.masslive.com)\
*Gannett Group (local USA Today)* sites like (opt-in to custom sites)\
[Detroit Free Press](https://www.freep.com) -
[Milwaukee Journal Sentinel](https://www.jsonline.com) -

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Chrome
Post-release
Add Advance Local (local USA)
Add Italian.tech
Fix Medium (faster)

View File

@ -19,6 +19,7 @@ var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafo
var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
var no_nhst_media_domains = ['intrafish.com', 'rechargenews.com', 'tradewindsnews.com', 'upstreamonline.com'];
var timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com'];
var usa_adv_local_domains = ['al.com', 'cleveland.com', 'lehighvalleylive.com', 'masslive.com', 'mlive.com', 'nj.com', 'oregonlive.com', 'pennlive.com', 'silive.com', 'syracuse.com'];
var usa_craincomm_domains = ['adage.com', 'autonews.com', 'chicagobusiness.com', 'crainscleveland.com', 'crainsdetroit.com', 'crainsnewyork.com', 'modernhealthcare.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'];
@ -1594,7 +1595,24 @@ else
} else {//other (like com/org & not at/be/br/ch/cl/de/fr/es/ie/nl/pe/pt/uk))
if (matchDomain('adweek.com')) {
if (matchDomain(usa_adv_local_domains)) {
let url = window.location.href;
if (url.includes('?outputType=amp')) {
let amp_ads = document.querySelectorAll('.amp-ad-container, amp-embed');
removeDOMElement(...amp_ads);
} else {
let paywall = document.querySelector('.paywall');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
}
let ads = document.querySelectorAll('div.ad');
removeDOMElement(...ads);
}
}
else if (matchDomain('adweek.com')) {
let url = window.location.href;
let body_single = document.querySelector('body.single');
let amphtml = document.querySelector('link[rel="amphtml"]');

View File

@ -39,5 +39,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.4.4.1"
"version": "2.4.4.2"
}

View File

@ -53,6 +53,7 @@
"*://*.afr.com/*",
"*://*.aisnenouvelle.fr/*",
"*://*.ajc.com/*",
"*://*.al.com/*",
"*://*.alternatives-economiques.fr/*",
"*://*.ambito.com/*",
"*://*.americanaffairsjournal.org/*",
@ -102,6 +103,7 @@
"*://*.chronicle.com/*",
"*://*.cicero.de/*",
"*://*.clarin.com/*",
"*://*.cleveland.com/*",
"*://*.cmjornal.pt/*",
"*://*.commentary.org/*",
"*://*.corriere.it/*",
@ -185,7 +187,7 @@
"*://*.geelongadvertiser.com.au/*",
"*://*.gelderlander.nl/*",
"*://*.gelocal.it/*",
"*://*.genomeweb.com/*",
"*://*.genomeweb.com/*",
"*://*.gestion.pe/*",
"*://*.glassdoor.com/*",
"*://*.globes.co.il/*",
@ -275,6 +277,7 @@
"*://*.lecho.be/*",
"*://*.ledauphine.com/*",
"*://*.ledevoir.com/*",
"*://*.lehighvalleylive.com/*",
"*://*.leidschdagblad.nl/*",
"*://*.lejdd.fr/*",
"*://*.lejsl.com/*",
@ -306,6 +309,7 @@
"*://*.marianne.net/*",
"*://*.marketwatch.com/*",
"*://*.marmai.fi/*",
"*://*.masslive.com/*",
"*://*.maz-online.de/*",
"*://*.mcall.com/*",
"*://*.medianama.com/*",
@ -318,6 +322,7 @@
"*://*.midi-olympique.fr/*",
"*://*.midilibre.fr/*",
"*://*.mikrobitti.fi/*",
"*://*.mlive.com/*",
"*://*.modernhealthcare.com/*",
"*://*.morgenpost.de/*",
"*://*.mv-voice.com/*",
@ -338,6 +343,7 @@
"*://*.newyorker.com/*",
"*://*.niagarafallsreview.ca/*",
"*://*.nikkei.com/*",
"*://*.nj.com/*",
"*://*.nknews.org/*",
"*://*.noordhollandsdagblad.nl/*",
"*://*.nordeclair.fr/*",
@ -359,6 +365,7 @@
"*://*.nzz.ch/*",
"*://*.observador.pt/*",
"*://*.ocregister.com/*",
"*://*.oregonlive.com/*",
"*://*.orlandosentinel.com/*",
"*://*.ostsee-zeitung.de/*",
"*://*.otz.de/*",
@ -367,6 +374,7 @@
"*://*.parismatch.com/*",
"*://*.parool.nl/*",
"*://*.pe.com/*",
"*://*.pennlive.com/*",
"*://*.petitbleu.fr/*",
"*://*.philosophynow.org/*",
"*://*.pilotonline.com/*",
@ -403,6 +411,7 @@
"*://*.sfchronicle.com/*",
"*://*.shz.de/*",
"*://*.si.com/*",
"*://*.silive.com/*",
"*://*.slate.com/*",
"*://*.sloanreview.mit.edu/*",
"*://*.smh.com.au/*",
@ -423,6 +432,7 @@
"*://*.sudouest.fr/*",
"*://*.sun-sentinel.com/*",
"*://*.svz.de/*",
"*://*.syracuse.com/*",
"*://*.talouselama.fi/*",
"*://*.tampabay.com/*",
"*://*.techinasia.com/*",
@ -547,5 +557,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.4.4.1"
"version": "2.4.4.2"
}

View File

@ -14,6 +14,22 @@ var defaultSites = {
block_regex: /\.evolok\.net\//,
useragent: "googlebot"
},
"Advance Local": {
domain: "###_usa_adv_local",
allow_cookies: 1,
group: [
"al.com",
"cleveland.com",
"lehighvalleylive.com",
"masslive.com",
"mlive.com",
"nj.com",
"oregonlive.com",
"pennlive.com",
"silive.com",
"syracuse.com"
]
},
"Adweek": {
domain: "adweek.com",
block_regex: /\.lightboxcdn\.com\//
@ -23,12 +39,12 @@ var defaultSites = {
group: [
"ad.nl",
"bd.nl",
"ed.nl",
"tubantia.nl",
"bndestem.nl",
"pzc.nl",
"destentor.nl",
"gelderlander.nl"
"ed.nl",
"gelderlander.nl",
"pzc.nl",
"tubantia.nl"
],
remove_cookies_select_drop: ["temptationTrackingId"]
},