Add Vrij Nederland

merge-requests/3/head
magnolia1234 3 years ago
parent d81a4f928b
commit f791c11e5f

@ -457,7 +457,8 @@ Grouped in options:\
[Parool](https://www.parool.nl) -
[Telegraaf](https://www.telegraaf.nl) -
[Trouw](https://www.trouw.nl) -
[Volkskrant](https://www.volkskrant.nl)
[Volkskrant](https://www.volkskrant.nl) -
[Vrij Nederland](https://www.nl.nl)
Grouped in options:\
[Algemeen Dagblad](https://www.ad.nl) and regional ADR sites like

@ -936,7 +936,7 @@ if (matchUrlDomain(change_headers, details.url) && !['font', 'image', 'styleshee
}
if ((!['font', 'stylesheet'].includes(details.type) || matchUrlDomain(cs_limit_except, currentTabUrl)) && !csDone) {
let lib_file = 'lib/empty.js';
if (matchUrlDomain(['bloomberg.com', 'cicero.de', 'economictimes.com', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newyorker.com', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'sudouest.fr', 'techinasia.com', 'valor.globo.com'].concat(nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains), currentTabUrl))
if (matchUrlDomain(['bloomberg.com', 'cicero.de', 'economictimes.com', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newyorker.com', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'sudouest.fr', 'techinasia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains), currentTabUrl))
lib_file = 'lib/purify.min.js';
var bg2csData = {
optin_setcookie: optin_setcookie,

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add LaLibre.be
Add LeVif.be
Add Vrij Nederland
Fix Bloomberg (permission block js)
Remove tabs-permission (amo - Firefox 86+)

@ -1430,6 +1430,39 @@ else if (matchDomain('telegraaf.nl')) {
}
}
else if (matchDomain('vn.nl')) {
let paywall = document.querySelector('div.content__message-no-access-container');
if (paywall && dompurify_loaded) {
let content_restriction = document.querySelector('div.content__restriction');
removeDOMElement(paywall, content_restriction);
let body = document.querySelector('body');
if (body)
body.style = 'height:auto !important;';
let article_content = document.querySelector('section[data-article-content-element]');
if (article_content)
article_content.style = 'max-height:none !important;';
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"]');
if (json_url_dom) {
let json_url = json_url_dom.href;
fetch(json_url)
.then(response => {
if (response.ok) {
response.json().then(json => {
let json_text = json.content.rendered;
let content = document.querySelector('div[data-article-content-target]');
if (json_text && content) {
let parser = new DOMParser();
let doc = parser.parseFromString('<div data-article-content-target>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
let content_new = doc.querySelector('div');
content.parentNode.replaceChild(content_new, content);
}
});
}
});
}
}
}
else
csDone = true;

@ -532,6 +532,7 @@
"*://*.variety.com/*",
"*://*.velonews.com/*",
"*://*.venturebeat.com/*",
"*://*.vn.nl/*",
"*://*.volkskrant.nl/*",
"*://*.vosgesmatin.fr/*",
"*://*.vulture.com/*",
@ -589,5 +590,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.4.7.3"
"version": "2.4.7.4"
}

@ -38,11 +38,11 @@ function renderOptions() {
}, function (items) {
var sites = items.sites;
var sites_updated = items.sites_updated;
var sites_updated_domains = Object.values(sites_updated).filter(x => x.domain && !defaultSites_domains.includes(x.domain)).map(x => x.domain);
var sites_updated_domains_new = Object.values(sites_updated).filter(x => x.domain && !defaultSites_domains.includes(x.domain)).map(x => x.domain);
var sites_custom = items.sites_custom;
var sites_custom_domains = Object.values(sites_custom).filter(x => x.domain).map(x => x.domain);
var perm_origins = sites_custom_domains.concat(sites_updated_domains).map(x => '*://*.' + x + '/*');
var perm_origins = sites_custom_domains.concat(sites_updated_domains_new).map(x => '*://*.' + x + '/*');
var perm_custom = document.getElementById('perm-custom');
ext_api.permissions.contains({
origins: perm_origins

@ -1660,6 +1660,10 @@ var defaultSites = {
domain: "volkskrant.nl",
group_rule: "###_gr_nl_pg_domains"
},
"Vrij Nederland": {
domain: "vn.nl",
allow_cookies: 1
},
"WAtoday": {
domain: "watoday.com.au",
group_rule: "###_gr_au_nine_domains"

@ -1,44 +1,4 @@
{
"Artnet": {
"domain": "artnet.com",
"allow_cookies": 1,
"amp_unhide": 1,
"block_regex": "\\.artnet\\.com\\/paywall-ajax\\.php",
"cs_code": [{
"cond": ".article-body",
"rm_class": "article-body"
}
]
},
"Bloomberg": {
"domain": "bloomberg.com",
"block_regex": "(\\.tinypass\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/fence\\/(plug|fortress)-client\\/)",
"remove_cookies_select_hold": ["bb_geo_info"]
},
"Gannett Group (local USA Today)": {
"domain": "###_usa_gannett",
"group": [
"azcentral.com",
"cincinnati.com",
"courier-journal.com",
"detroitnews.com",
"freep.com",
"indystar.com",
"jsonline.com",
"northjersey.com",
"statesman.com",
"tennessean.com"
],
"allow_cookies": 1,
"amp_unhide": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.js",
"useragent": "googlebot"
},
"Internazionale.it": {
"domain": "internazionale.it",
"allow_cookies": 1,
"block_regex": "\\.internazionale\\.it\\/assets\\/js\\/main\\.\\d{2,}\\.js"
},
"La Libre.be": {
"domain": "lalibre.be",
"allow_cookies": 1,
@ -52,32 +12,5 @@
],
"allow_cookies": 1,
"block_regex": "(loader-cdn\\.azureedge\\.net\\/|\\.blueconic\\.net\\/|js\\.matheranalytics\\.com\\/)"
},
"The Boston Globe": {
"domain": "bostonglobe.com",
"allow_cookies": 1,
"amp_unhide": 1,
"block_regex": "(\\.blueconic\\.net\\/|meter\\.bostonglobe\\.com\\/js\\/)"
},
"The Business of Fashion": {
"domain": "businessoffashion.com",
"allow_cookies": 1,
"block_regex": "\\.businessoffashion\\.com\\/pf\\/dist\\/components\\/combinations\\/2\\.chunk\\.js"
},
"The New Yorker": {
"domain": "newyorker.com",
"block_regex": "(\\.newyorker\\.com\\/verso\\/static\\/presenter-articles.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(ad|subscriptions)-.+\\.js)",
"cs_code": [{
"cond": "[subscriptions-section=\"content\"]",
"rm_attrib": "subscriptions-section"
}
]
},
"USA Today": {
"domain": "usatoday.com",
"allow_cookies": 1,
"amp_unhide": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.js",
"useragent": "googlebot"
}
}

Loading…
Cancel
Save