mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Remove Daily Nation (no paywall)
This commit is contained in:
parent
d269193543
commit
9cba386735
6 changed files with 2 additions and 27 deletions
|
@ -680,12 +680,6 @@ Grouped in options:\
|
|||
[Neue Zürcher Zeitung (+ regional/opt-in to custom sites)](https://www.nzz.ch) -
|
||||
[The Market](https://themarket.ch)
|
||||
|
||||
#### Africa
|
||||
|
||||
###### Kenya
|
||||
|
||||
[Daily Nation](https://nation.africa)
|
||||
|
||||
#### Australia/New Zealand
|
||||
|
||||
[Brisbane Times](https://www.brisbanetimes.com.au) -
|
||||
|
|
|
@ -5,7 +5,7 @@ var manifestData = ext_api.runtime.getManifest();
|
|||
var ext_name = manifestData.name;
|
||||
var ext_version = manifestData.version;
|
||||
|
||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'globeandmail.com', 'nation.africa', '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);
|
||||
var currentTabUrl = '';
|
||||
var csDone = false;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Remove Daily Nation (no paywall)
|
||||
Fix ABC.es (Sevilla)
|
||||
Fix ESPN USA (link to archive.is)
|
||||
Fix The Athletic (css)
|
||||
|
|
|
@ -3136,20 +3136,6 @@ else if (matchDomain('mid-day.com')) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('nation.africa')) {
|
||||
let datawall_content = document.querySelector('.datawall-content');
|
||||
if (datawall_content)
|
||||
datawall_content.classList.remove('datawall-content');
|
||||
let div_hidden = document.querySelectorAll('[data="datawall-content"]');
|
||||
for (let elem of div_hidden)
|
||||
elem.removeAttribute('style');
|
||||
let hidden_images = document.querySelectorAll('img.lazy-img:not([src])[data-srcset]');
|
||||
for (let hidden_image of hidden_images) {
|
||||
hidden_image.classList.remove('lazy-img');
|
||||
hidden_image.setAttribute('src', hidden_image.getAttribute('data-srcset').split(',')[1].split(' ')[0]);
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('nationalgeographic.com')) {
|
||||
// plus code in contentScript_once.js
|
||||
let url = window.location.href;
|
||||
|
|
|
@ -416,7 +416,6 @@
|
|||
"*://*.muensterschezeitung.de/*",
|
||||
"*://*.mv-voice.com/*",
|
||||
"*://*.mz.de/*",
|
||||
"*://*.nation.africa/*",
|
||||
"*://*.nationalgeographic.com/*",
|
||||
"*://*.nationalpost.com/*",
|
||||
"*://*.nationalreview.com/*",
|
||||
|
|
5
sites.js
5
sites.js
|
@ -337,11 +337,6 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"Daily Nation": {
|
||||
domain: "nation.africa",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.evolok\.net\/|nation\.africa\/resource\/themes\/nation-.+\/js\/.+\.js)/
|
||||
},
|
||||
"De Tijd": {
|
||||
domain: "tijd.be",
|
||||
referer: "google"
|
||||
|
|
Loading…
Reference in a new issue