mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:21:58 +01:00
Fix NK News (not pro)
This commit is contained in:
parent
97dac2fda3
commit
f6280df24a
6 changed files with 15 additions and 10 deletions
|
@ -23,6 +23,7 @@ var restrictions = {
|
|||
'dailywire.com': /^((?!\.dailywire\.com\/(episode|show|videos|watch)).)*$/,
|
||||
'economictimes.com': /\.economictimes\.com($|\/($|(__assets|prime)(\/.+)?|.+\.cms))/,
|
||||
'elespanol.com': /^((?!\/cronicaglobal\.elespanol\.com\/).)*$/,
|
||||
'elmercurio.com': /^((?!\.elmercurio\.com\/inversiones\/).)*$/,
|
||||
'espn.com': /^((?!espn\.com\/watch).)*$/,
|
||||
'esquire.com': /^((?!\/classic\.esquire\.com\/).)*$/,
|
||||
'nknews.org': /^((?!nknews\.org\/pro\/).)*$/,
|
||||
|
|
|
@ -7,6 +7,7 @@ Add Medienhaus Aachen
|
|||
Remove Rheinische Post Mediengruppe
|
||||
Fix Haaretz English
|
||||
Fix Inkl
|
||||
Fix NK News (not pro)
|
||||
|
||||
* v3.0.8.0 (2023-03-05)
|
||||
Add Bloomberg Adria
|
||||
|
|
|
@ -66,13 +66,14 @@ if (bg2csData.ld_json) {
|
|||
let json = JSON.parse(json_script.text.replace(/[\r\n]/g, '').replace(/(\\r)?\\n/g, '<br>'));
|
||||
let json_key, json_text;
|
||||
if (Array.isArray(json)) {
|
||||
json = json.filter(x => json_key = Object.keys(x).find(key => key.match(/^(articlebody|text)$/i)));
|
||||
json = json.filter(x => json_key = Object.keys(x).find(key => key.match(/^articlebody$/i))) || json.filter(x => json_key = Object.keys(x).find(key => key.match(/^text$/i)));
|
||||
if (json_key)
|
||||
json_text = parseHtmlEntities(json[0][json_key]);
|
||||
} else {
|
||||
json_key = Object.keys(json).find(key => key.match(/^(articlebody|text)$/i));
|
||||
json_key = Object.keys(json).find(key => key.match(/^articlebody$/i)) || Object.keys(json).find(key => key.match(/^text$/i));
|
||||
json_text = parseHtmlEntities(json[json_key]);
|
||||
}
|
||||
console.log(json_text);
|
||||
let content = document.querySelector(article_sel);
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
|
|
|
@ -152,6 +152,12 @@
|
|||
"block_regex": "js\\.pelcro\\.com",
|
||||
"domain": "frieze.com"
|
||||
},
|
||||
"Gazetaprawna.pl": {
|
||||
"allow_cookies": 1,
|
||||
"amp_redirect": "div.displayMode_simplePaywall",
|
||||
"domain": "gazetaprawna.pl",
|
||||
"ld_json": "div.simplePaywall|article"
|
||||
},
|
||||
"Gazette.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "loader-cdn\\.azureedge\\.net",
|
||||
|
|
8
sites.js
8
sites.js
|
@ -476,7 +476,7 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /(\.tinypass\.com\/|cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
|
||||
},
|
||||
"El Mercurio (+ regional/opt-in to custom sites)": {
|
||||
"El Mercurio (not Inversiones; + regional/opt-in to custom sites)": {
|
||||
domain: "elmercurio.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.(elmercurio\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/,
|
||||
|
@ -1451,9 +1451,9 @@ var defaultSites = {
|
|||
domain: "asia.nikkei.com",
|
||||
remove_cookies_select_drop: ["xbc"]
|
||||
},
|
||||
"NK News": {
|
||||
"NK News (not pro)": {
|
||||
domain: "nknews.org",
|
||||
remove_cookies_select_drop: ["issuem_lp", "issuem_lp_kp"]
|
||||
remove_cookies_select_drop: ["issuem_lp"]
|
||||
},
|
||||
"NRC Handelsblad": {
|
||||
domain: "nrc.nl",
|
||||
|
@ -2310,7 +2310,7 @@ var defaultSites = {
|
|||
"Pico.tools": {
|
||||
domain: "pico.tools",
|
||||
allow_cookies: 1,
|
||||
block_regex_general: /api\.pico.tools\//
|
||||
block_regex_general: /api\.pico\.tools\//
|
||||
},
|
||||
"Pigeon (WordPress plugin)": {
|
||||
domain: "###_wp_pigeon",
|
||||
|
|
|
@ -29,10 +29,6 @@
|
|||
"allow_cookies": 1,
|
||||
"ld_google_webcache": "#subscription-barrier|div.article-body,article"
|
||||
},
|
||||
"NK News (free articles only)": {
|
||||
"domain": "nknews.org",
|
||||
"remove_cookies_select_drop": ["issuem_lp", "issuem_lp_kp"]
|
||||
},
|
||||
"Quartz": {
|
||||
"domain": "qz.com",
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue