From 3ed2cd2601d2fea6ececa44763755361205ac9a9 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 22 Aug 2023 07:55:38 +0200 Subject: [PATCH] Remove DN.no --- README.md | 1 - changelog.txt | 1 + contentScript.js | 36 ------------------------------------ custom/manifest.json | 2 +- custom/sites_custom.json | 6 ++++++ manifest.json | 3 +-- sites.js | 7 +------ 7 files changed, 10 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 0503786..99bf5da 100644 --- a/README.md +++ b/README.md @@ -722,7 +722,6 @@ Grouped in options:\ [Libelle.be](https://www.libelle.be) ##### Norway -[DN](https://www.dn.no)\ Grouped in options:\ *NHST Media Group* sites like\ [Europower](https://www.europower-energi.no) - diff --git a/changelog.txt b/changelog.txt index 4cb084b..139cf6e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Remove DN.no (fix obsolete) Fix Mediahuis Noord (json) * v3.3.0.0 (2023-08-20) diff --git a/contentScript.js b/contentScript.js index c014066..efab14d 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3541,42 +3541,6 @@ else if (matchDomain('discovermagazine.com')) { }, 1000); } -else if (matchDomain('dn.no')) { - let url = window.location.href; - let paywall = document.querySelector('div#dn-ncp-popup, div.paywall, iframe[title="Paywall"]'); - if (paywall) { - removeDOMElement(paywall); - let article_sel = 'article'; - let article = document.querySelector(article_sel); - if (article) { - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, article_sel); - } else { - article = document.querySelector('main#main-story, main.lp_article_content'); - if (article) - article.firstChild.before(googleWebcacheLink(url)); - } - } - window.setTimeout(function () { - let preview = document.querySelector('html.dn-preview-page'); - if (preview) - preview.removeAttribute('class'); - let infobox_content = document.querySelector('div.infobox__content'); - if (infobox_content) - infobox_content.removeAttribute('class'); - let lazy_images = document.querySelectorAll('img[class*="lazy"][data-srcset]:not([src])'); - for (let elem of lazy_images) { - elem.src = elem.getAttribute('data-srcset').split(' ')[0]; - if (elem.classList.contains('lazy')) - elem.classList.remove('lazy'); - else - elem.removeAttribute('class'); - } - let ads = document.querySelectorAll('div[id^="googlead-"]'); - removeDOMElement(...ads); - }, 1000); -} - else if (matchDomain('economictimes.com')) { if (window.location.pathname.includes('/amp_')) { let paywall = document.querySelector('.paywall_wrap'); diff --git a/custom/manifest.json b/custom/manifest.json index 6172850..f178fdf 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.3.0.1" + "version": "3.3.0.2" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 3889853..105c268 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -153,6 +153,12 @@ "block_regex": "\\.eviemagazine\\.com\\/api\\/trpc\\/post\\.paywall", "domain": "eviemagazine.com" }, + "Ewmagazine.nl": { + "add_ext_link": "div.paywall|div.entry-content", + "add_ext_link_type": "archive.is", + "allow_cookies": 1, + "domain": "ewmagazine.nl" + }, "Fastcompany.com": { "allow_cookies": 1, "block_regex": "\\.tinypass\\.com", diff --git a/manifest.json b/manifest.json index 40ca692..f25ed02 100644 --- a/manifest.json +++ b/manifest.json @@ -198,7 +198,6 @@ "*://*.diariovasco.com/*", "*://*.digiday.com/*", "*://*.discovermagazine.com/*", - "*://*.dn.no/*", "*://*.dna.fr/*", "*://*.dvhn.nl/*", "*://*.eastbaytimes.com/*", @@ -790,5 +789,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.3.0.1" + "version": "3.3.0.2" } diff --git a/sites.js b/sites.js index 6e9c314..b327d5a 100644 --- a/sites.js +++ b/sites.js @@ -473,11 +473,6 @@ var defaultSites = { "Discover Magazine": { domain: "discovermagazine.com" }, - "DN.no (cached articles only)": { - domain: "dn.no", - allow_cookies: 1, - cs_dompurify: 1 - }, "Domani": { domain: "editorialedomani.it", allow_cookies: 1, @@ -2685,4 +2680,4 @@ init_custom_flex_domains(); // sites with no fix (background) var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'limesonline.com', 'repubblica.it']; var uk_delinian_nofix_domains = ['insidepandc.com', 'thedeal.com']; -var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'allgaeuer-zeitung.de', 'asiatimes.com', 'autosport.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'lefigaro.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains, uk_delinian_nofix_domains); +var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'allgaeuer-zeitung.de', 'asiatimes.com', 'autosport.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'lefigaro.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains, uk_delinian_nofix_domains);