From e7940eb34e4d296a86172e22e8b8c8b7f2b4e30e Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 2 Mar 2023 19:22:38 +0100 Subject: [PATCH] Remove TagesAnzeiger.ch & Welt.de --- README.md | 2 -- changelog.txt | 2 ++ contentScript.js | 24 ------------------------ custom/sites_custom.json | 6 ++++++ manifest.json | 2 -- sites.js | 11 +---------- 6 files changed, 9 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 8acab23..e535093 100644 --- a/README.md +++ b/README.md @@ -534,7 +534,6 @@ Grouped in options:\ [Der Tagesspiegel (link to archive.is)](https://www.tagesspiegel.de) - [Deutsches Ärzteblatt](https://www.aerzteblatt.de) - [Die Rheinpfalz](https://www.rheinpfalz.de) - -[Die Welt (link to archive.is)](https://www.welt.de) - [Die Zeit](https://www.zeit.de) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) - [Freie Presse](https://www.freiepresse.de) - @@ -748,7 +747,6 @@ Grouped in options:\ [Beobachter](https://www.beobachter.ch) - [Handelszeitung](https://www.handelszeitung.ch) - [Neue Zürcher Zeitung (+ regional/CH Media; opt-in to custom sites)](https://www.nzz.ch) - -[Tages-Anzeiger (link to archive.is)](https://www.tagesanzeiger.ch) - [The Market](https://themarket.ch) ##### Australia/New Zealand diff --git a/changelog.txt b/changelog.txt index 5ed99f4..c165ddc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,8 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release Post-release Add Bloomberg Adria Add DN.no (cached articles only) +Remove TagesAnzeiger.ch (fix obsolete) +Remove Welt.de (fix obsolete) Fix Mediahuis Noord Fix mobile user-agent for Google webcache Fix New Scientist diff --git a/contentScript.js b/contentScript.js index 6636fbe..b8edf8f 100644 --- a/contentScript.js +++ b/contentScript.js @@ -842,17 +842,6 @@ else if (matchDomain('sueddeutsche.de')) { } } -else if (matchDomain('tagesanzeiger.ch')) { - let url = window.location.href; - let paywall = document.querySelector('div#piano-premium > div'); - if (paywall) { - removeDOMElement(paywall.parentNode); - let article = document.querySelector('article p'); - if (article) - article.firstChild.before(archiveLink(url)); - } -} - else if (matchDomain('tagesspiegel.de')) { let url = window.location.href; let paywall = document.querySelector('div.article--paid > div'); @@ -864,19 +853,6 @@ else if (matchDomain('tagesspiegel.de')) { } } -else if (matchDomain('welt.de')) { - let url = window.location.href; - let paywall = document.querySelector('div.contains_walled_content'); - if (paywall) { - removeDOMElement(paywall); - let article = document.querySelector('div[data-qa="Article.PremiumContent"]'); - if (article) - article.firstChild.before(archiveLink(url)); - } - let ads = document.querySelectorAll('div[data-component="Outbrain"], div[data-component="OEmbedComponent"], div[class*="c-ad"]'); - removeDOMElement(...ads); -} - else if (matchDomain(de_lv_domains)) { let paywall_topagrar = document.querySelector('div > div.paywall-package'); let paywall_other = document.querySelector('div[id^="paymentprocess-"]'); diff --git a/custom/sites_custom.json b/custom/sites_custom.json index aa3a69c..feed9e3 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -157,6 +157,12 @@ "block_regex": "loader-cdn\\.azureedge\\.net", "domain": "gazette.com" }, + "Gp.se": { + "add_ext_link": "div.c-premium-lockscreen__subscribe|article", + "add_ext_link_type": "archive.is", + "allow_cookies": 1, + "domain": "gp.se" + }, "Gplanet.co.il": { "allow_cookies": 1, "domain": "gplanet.co.il", diff --git a/manifest.json b/manifest.json index e83fe1b..9bdd495 100644 --- a/manifest.json +++ b/manifest.json @@ -583,7 +583,6 @@ "*://*.suomensotilas.fi/*", "*://*.svz.de/*", "*://*.syracuse.com/*", - "*://*.tagesanzeiger.ch/*", "*://*.tagesspiegel.de/*", "*://*.tampabay.com/*", "*://*.techinasia.com/*", @@ -683,7 +682,6 @@ "*://*.waz.de/*", "*://*.weeklytimesnow.com.au/*", "*://*.wellandtribune.ca/*", - "*://*.welt.de/*", "*://*.weltkunst.de/*", "*://*.westernadvocate.com.au/*", "*://*.westfalen-blatt.de/*", diff --git a/sites.js b/sites.js index 42c6dd6..a9e638f 100644 --- a/sites.js +++ b/sites.js @@ -419,10 +419,6 @@ var defaultSites = { allow_cookies: 1, useragent: "googlebot" }, - "Die Welt (link to archive.is)": { - domain: "welt.de", - allow_cookies: 1 - }, "Die Zeit": { domain: "zeit.de", allow_cookies: 1, @@ -1775,11 +1771,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /\/suomensotilas\.fi\/wp-content\/plugins\/epflpw\/js\/pw\.js/ }, - "TagesAnzeiger.ch (link to archive.is)": { - domain: "tagesanzeiger.ch", - allow_cookies: 1, - block_regex: /\.piano\.io\/xbuilder\/experience\/execute/ - }, "Tampa Bay Times": { domain: "tampabay.com", allow_cookies: 1, @@ -2485,4 +2476,4 @@ init_custom_flex_domains(); var au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au', 'townsvillebulletin.com.au']; var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it']; -var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains); +var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains);