mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 01:54:17 +01:00
Add 4 more NHST Media Group sites
This commit is contained in:
parent
b9b27d3ddd
commit
f90543d129
7 changed files with 32 additions and 44 deletions
18
README.md
18
README.md
|
@ -125,12 +125,6 @@ Grouped in options:\
|
||||||
[Crain's New York Business](https://www.crainsnewyork.com) -
|
[Crain's New York Business](https://www.crainsnewyork.com) -
|
||||||
[Modern Healthcare](https://www.modernhealthcare.com)
|
[Modern Healthcare](https://www.modernhealthcare.com)
|
||||||
|
|
||||||
*NHST Media Group* sites like\
|
|
||||||
[Intrafish](https://www.intrafish.com) -
|
|
||||||
[Recharge](https://www.rechargenews.com) -
|
|
||||||
[TradeWinds](https://www.tradewindsnews.com) -
|
|
||||||
[Upstream](https://www.upstreamonline.com)
|
|
||||||
|
|
||||||
*[PEI Media](https://www.thisispei.com)* sites (opt-in to custom sites)
|
*[PEI Media](https://www.thisispei.com)* sites (opt-in to custom sites)
|
||||||
|
|
||||||
##### Tech/Science
|
##### Tech/Science
|
||||||
|
@ -623,6 +617,18 @@ Grouped in options:\
|
||||||
[Dagblad van het Noorden](https://www.dvhn.nl) -
|
[Dagblad van het Noorden](https://www.dvhn.nl) -
|
||||||
[Leeuwarder Courant](https://www.lc.nl)
|
[Leeuwarder Courant](https://www.lc.nl)
|
||||||
|
|
||||||
|
#### Norway
|
||||||
|
Grouped in options:\
|
||||||
|
*NHST Media Group* sites like\
|
||||||
|
[DN](https://www.dn.no) -
|
||||||
|
[Europower](https://www.europower-energi.no) -
|
||||||
|
[Fiskeribladet](https://www.fiskeribladet.no) -
|
||||||
|
[Intrafish](https://www.intrafish.com) -
|
||||||
|
[Intrafish.no](https://www.intrafish.no) -
|
||||||
|
[Recharge](https://www.rechargenews.com) -
|
||||||
|
[TradeWinds](https://www.tradewindsnews.com) -
|
||||||
|
[Upstream](https://www.upstreamonline.com)
|
||||||
|
|
||||||
##### Portugal
|
##### Portugal
|
||||||
[Correio da Manhã](https://www.cmjornal.pt) -
|
[Correio da Manhã](https://www.cmjornal.pt) -
|
||||||
[Observador](https://observador.pt)
|
[Observador](https://observador.pt)
|
||||||
|
|
|
@ -6,7 +6,7 @@ var ext_name = manifestData.name;
|
||||||
var ext_version = manifestData.version;
|
var ext_version = manifestData.version;
|
||||||
|
|
||||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'globeandmail.com', 'nationalgeographic.com'].concat(de_westfalen_medien_domains);
|
const cs_limit_except = ['elespanol.com', 'faz.net', 'globeandmail.com', 'nationalgeographic.com'].concat(de_westfalen_medien_domains);
|
||||||
const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'spectator.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains, no_nhst_media_domains);
|
const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'spectator.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains);
|
||||||
var currentTabUrl = '';
|
var currentTabUrl = '';
|
||||||
var csDone = false;
|
var csDone = false;
|
||||||
var optin_setcookie = false;
|
var optin_setcookie = false;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Changelog Bypass Paywalls Clean - Firefox
|
Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Add 4 more NHST Media Group sites
|
||||||
Add Tes Magazine
|
Add Tes Magazine
|
||||||
|
|
||||||
* v2.9.0.0 (2022-10-23)
|
* v2.9.0.0 (2022-10-23)
|
||||||
|
|
|
@ -25,7 +25,7 @@ var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafo
|
||||||
var medium_custom_domains = ['betterprogramming.pub', 'towardsdatascience.com'];
|
var medium_custom_domains = ['betterprogramming.pub', 'towardsdatascience.com'];
|
||||||
var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
|
var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
|
||||||
var nl_dpg_media_domains = ['demorgen.be', 'humo.be', 'parool.nl', 'trouw.nl', 'volkskrant.nl'];
|
var nl_dpg_media_domains = ['demorgen.be', 'humo.be', 'parool.nl', 'trouw.nl', 'volkskrant.nl'];
|
||||||
var no_nhst_media_domains = ['intrafish.com', 'rechargenews.com', 'tradewindsnews.com', 'upstreamonline.com'];
|
var no_nhst_media_domains = ['dn.no', 'europower-energi.no', 'fiskeribladet.no', 'intrafish.com', 'intrafish.no', 'rechargenews.com', 'tradewindsnews.com', 'upstreamonline.com'];
|
||||||
var pe_grupo_elcomercio_domains = ['diariocorreo.pe', 'elcomercio.pe', 'gestion.pe'];
|
var pe_grupo_elcomercio_domains = ['diariocorreo.pe', 'elcomercio.pe', 'gestion.pe'];
|
||||||
var timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.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_adv_local_domains = ['al.com', 'cleveland.com', 'lehighvalleylive.com', 'masslive.com', 'mlive.com', 'nj.com', 'oregonlive.com', 'pennlive.com', 'silive.com', 'syracuse.com'];
|
||||||
|
@ -3845,9 +3845,8 @@ else if (matchDomain(timesofindia_domains)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(no_nhst_media_domains)) {
|
else if (matchDomain('tradewindsnews.com')) {
|
||||||
let url = window.location.href;
|
if (window.location.pathname.startsWith('/markets/')) {
|
||||||
if (url.includes('.tradewinds.com/markets/')) {
|
|
||||||
let paywall = document.querySelector('iframe[src]');
|
let paywall = document.querySelector('iframe[src]');
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
let overflow = document.querySelector('body[style]');
|
let overflow = document.querySelector('body[style]');
|
||||||
|
@ -3856,37 +3855,6 @@ else if (matchDomain(no_nhst_media_domains)) {
|
||||||
let blurred = document.querySelector('body > div[style]');
|
let blurred = document.querySelector('body > div[style]');
|
||||||
if (blurred)
|
if (blurred)
|
||||||
blurred.removeAttribute('style');
|
blurred.removeAttribute('style');
|
||||||
} else {
|
|
||||||
window.setTimeout(function () {
|
|
||||||
let paywall = document.querySelector('iframe#paywall-iframe');
|
|
||||||
if (paywall && dompurify_loaded) {
|
|
||||||
let intro = document.querySelector('div.global-article-selector');
|
|
||||||
let article = paywall.parentNode;
|
|
||||||
removeDOMElement(paywall, intro);
|
|
||||||
fetch(url)
|
|
||||||
.then(response => {
|
|
||||||
if (response.ok) {
|
|
||||||
response.text().then(html => {
|
|
||||||
let split1 = html.split('window.__INITIAL_STATE__=')[1];
|
|
||||||
let state = (split1.split('};')[0] + '}').split('</script>')[0];
|
|
||||||
if (state) {
|
|
||||||
let json = JSON.parse(state);
|
|
||||||
if (json) {
|
|
||||||
let json_text = json.article.body;
|
|
||||||
let parser = new DOMParser();
|
|
||||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, {ADD_ATTR: ['itemprop'], ADD_TAGS: ['link']}) + '</div>', 'text/html');
|
|
||||||
let article_new = doc.querySelector('div');
|
|
||||||
if (article_new) {
|
|
||||||
if (article)
|
|
||||||
article.appendChild(article_new);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}, 500);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,6 +183,7 @@
|
||||||
"*://*.diariovasco.com/*",
|
"*://*.diariovasco.com/*",
|
||||||
"*://*.digiday.com/*",
|
"*://*.digiday.com/*",
|
||||||
"*://*.discovermagazine.com/*",
|
"*://*.discovermagazine.com/*",
|
||||||
|
"*://*.dn.no/*",
|
||||||
"*://*.dna.fr/*",
|
"*://*.dna.fr/*",
|
||||||
"*://*.dvhn.nl/*",
|
"*://*.dvhn.nl/*",
|
||||||
"*://*.eastbaytimes.com/*",
|
"*://*.eastbaytimes.com/*",
|
||||||
|
@ -219,6 +220,7 @@
|
||||||
"*://*.estrepublicain.fr/*",
|
"*://*.estrepublicain.fr/*",
|
||||||
"*://*.euobserver.com/*",
|
"*://*.euobserver.com/*",
|
||||||
"*://*.eurekareport.com.au/*",
|
"*://*.eurekareport.com.au/*",
|
||||||
|
"*://*.europower-energi.no/*",
|
||||||
"*://*.exame.com/*",
|
"*://*.exame.com/*",
|
||||||
"*://*.examiner.com.au/*",
|
"*://*.examiner.com.au/*",
|
||||||
"*://*.expansion.com/*",
|
"*://*.expansion.com/*",
|
||||||
|
@ -230,6 +232,7 @@
|
||||||
"*://*.financialexpress.com/*",
|
"*://*.financialexpress.com/*",
|
||||||
"*://*.financialpost.com/*",
|
"*://*.financialpost.com/*",
|
||||||
"*://*.firstthings.com/*",
|
"*://*.firstthings.com/*",
|
||||||
|
"*://*.fiskeribladet.no/*",
|
||||||
"*://*.fnlondon.com/*",
|
"*://*.fnlondon.com/*",
|
||||||
"*://*.forbes.com/*",
|
"*://*.forbes.com/*",
|
||||||
"*://*.foreignaffairs.com/*",
|
"*://*.foreignaffairs.com/*",
|
||||||
|
@ -307,6 +310,7 @@
|
||||||
"*://*.intelligentinvestor.com.au/*",
|
"*://*.intelligentinvestor.com.au/*",
|
||||||
"*://*.internazionale.it/*",
|
"*://*.internazionale.it/*",
|
||||||
"*://*.intrafish.com/*",
|
"*://*.intrafish.com/*",
|
||||||
|
"*://*.intrafish.no/*",
|
||||||
"*://*.investorschronicle.co.uk/*",
|
"*://*.investorschronicle.co.uk/*",
|
||||||
"*://*.ipolitics.ca/*",
|
"*://*.ipolitics.ca/*",
|
||||||
"*://*.irishtimes.com/*",
|
"*://*.irishtimes.com/*",
|
||||||
|
@ -722,5 +726,5 @@
|
||||||
"*://gcm.omerlocdn.com/*",
|
"*://gcm.omerlocdn.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "2.9.0.1"
|
"version": "2.9.0.2"
|
||||||
}
|
}
|
||||||
|
|
6
sites.js
6
sites.js
|
@ -1334,13 +1334,17 @@ var defaultSites = {
|
||||||
"NHST Media Group": {
|
"NHST Media Group": {
|
||||||
domain: "###_no_nhst_media",
|
domain: "###_no_nhst_media",
|
||||||
group: [
|
group: [
|
||||||
|
"dn.no",
|
||||||
|
"europower-energi.no",
|
||||||
|
"fiskeribladet.no",
|
||||||
"intrafish.com",
|
"intrafish.com",
|
||||||
|
"intrafish.no",
|
||||||
"rechargenews.com",
|
"rechargenews.com",
|
||||||
"tradewindsnews.com",
|
"tradewindsnews.com",
|
||||||
"upstreamonline.com"
|
"upstreamonline.com"
|
||||||
],
|
],
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
referer: "facebook"
|
useragent: "googlebot"
|
||||||
},
|
},
|
||||||
"Nikkei Asian Review (do not block Piano.io-script externally)": {
|
"Nikkei Asian Review (do not block Piano.io-script externally)": {
|
||||||
domain: "asia.nikkei.com",
|
domain: "asia.nikkei.com",
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
"block_regex": "(\\.tinypass\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/(fence\\/plug-client|javelin\\/.+\\/transporter)\\/)",
|
"block_regex": "(\\.tinypass\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/(fence\\/plug-client|javelin\\/.+\\/transporter)\\/)",
|
||||||
"remove_cookies_select_drop": ["gatehouse_id"]
|
"remove_cookies_select_drop": ["gatehouse_id"]
|
||||||
},
|
},
|
||||||
|
"Dn.no": {
|
||||||
|
"domain": "dn.no",
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"useragent": "googlebot"
|
||||||
|
},
|
||||||
"Grupo Vocento": {
|
"Grupo Vocento": {
|
||||||
"domain": "###_es_grupo_vocento",
|
"domain": "###_es_grupo_vocento",
|
||||||
"group": [
|
"group": [
|
||||||
|
|
Loading…
Reference in a new issue