From 0344b142b0c07393d3216244774b3ba544785ffe Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 19 Dec 2023 21:05:01 +0100 Subject: [PATCH] Remove Money.it --- README.md | 3 +-- changelog.txt | 1 + contentScript.js | 17 ----------------- manifest.json | 1 - sites.js | 6 +----- sites_updated.json | 6 ++++++ 6 files changed, 9 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 956d64a..53b1202 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ For new sites you also have to opt-in to custom sites/request host permissions f Add-on was removed by Mozilla from [add-on store (AMO)](https://addons.mozilla.org).\ Current installations (by custom collection in Firefox Beta/Nightly or Firefox-fork) will stay active, but with no more updates. -[Firefox Nightly 122+](https://play.google.com/store/apps/details?id=org.mozilla.fenix) can still install/sideload a xpi-file (manual updates) when you enable the debug menu (settings > about > tap Firefox logo 5 times > return to settings). +[Firefox Beta 122+](https://play.google.com/store/apps/details?id=org.mozilla.firefox_beta) and [Firefox Nightly 122+](https://play.google.com/store/apps/details?id=org.mozilla.fenix) can still install/sideload a xpi-file (manual updates) when you enable the debug menu (settings > about > tap Firefox logo 5 times > return to settings). Or use the Firefox-fork [Iceraven](https://github.com/fork-maintainers/iceraven-browser) v2.13.2+ (manual updates).\ You can install/update Iceraven manually or use the app [FFUpdater](https://github.com/Tobi823/ffupdater) @@ -687,7 +687,6 @@ Grouped in options:\ [Internazionale](https://www.internazionale.it) - [Italia Oggi](https://www.italiaoggi.it) - [La Gazzetta dello Sport](https://www.gazzetta.it) - -[Money.it](https://www.money.it) - [Tuttosport](https://www.tuttosport.com) Grouped in options:\ diff --git a/changelog.txt b/changelog.txt index f60a7dd..997d183 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add Bild.de (link to archive.is) +Remove Money.it (fix obsolete) Fix Automobilwoche.de (js) Fix Groupe Centre France (identify sites) Fix Harvard Business Review (script) diff --git a/contentScript.js b/contentScript.js index bab97d7..83820ee 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2359,23 +2359,6 @@ else if (matchDomain(it_gedi_domains)) { hideDOMElement(...ads); } -else if (matchDomain('money.it')) { - if (!window.location.search.startsWith('?page=amp')) { - let paywall = document.querySelector('div#paywall'); - if (paywall) { - removeDOMElement(paywall); - let article_id_dom = document.querySelector('div[data-idarticle]'); - if (article_id_dom) { - let article_id = article_id_dom.getAttribute('data-idarticle'); - window.location.href = 'https://www.money.it/?page=amp&id_article=' + article_id; - } - } - } else { - let ads = document.querySelectorAll('amp-ad'); - hideDOMElement(...ads); - } -} - else if (matchDomain('tuttosport.com')) { if (!window.location.pathname.startsWith('/amp/')) { let article_images = document.querySelectorAll('div > img[data-src]:not([src])'); diff --git a/manifest.json b/manifest.json index 17f31e4..5d1509e 100644 --- a/manifest.json +++ b/manifest.json @@ -468,7 +468,6 @@ "*://*.moda.it/*", "*://*.modernhealthcare.com/*", "*://*.monacomatin.mc/*", - "*://*.money.it/*", "*://*.monocle.com/*", "*://*.muensterschezeitung.de/*", "*://*.mundodeportivo.com/*", diff --git a/sites.js b/sites.js index d1752cb..2905669 100644 --- a/sites.js +++ b/sites.js @@ -1613,10 +1613,6 @@ var defaultSites = { allow_cookies: 1, cs_dompurify: 1 }, - "Money.it": { - domain: "money.it", - allow_cookies: 1 - }, "Monocle": { domain: "monocle.com", useragent: "googlebot" @@ -2919,4 +2915,4 @@ var fr_groupe_ebra_nofix_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain. var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr', 'glitz.paris', 'intelligenceonline.com', 'intelligenceonline.fr', 'lalettre.fr']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'limesonline.com']; var nl_mediahuis_region_nofix_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl']; -var nofix_sites = ['aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.com', 'aviationweek.com', 'badische-zeitung.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'codesports.com.au', 'compactmag.com', 'courrierinternational.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'expresso.pt', 'falter.at', 'finance.si', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'liberation.fr', 'limburger.nl', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', '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', 'schwarzwaelder-bote.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); +var nofix_sites = ['aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.com', 'aviationweek.com', 'badische-zeitung.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'codesports.com.au', 'compactmag.com', 'courrierinternational.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'expresso.pt', 'falter.at', 'finance.si', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'liberation.fr', 'limburger.nl', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'money.it', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', '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', 'schwarzwaelder-bote.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); diff --git a/sites_updated.json b/sites_updated.json index 22c204f..4dae2fb 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -43,6 +43,12 @@ "block_js_inline": "\\.lrb\\.co\\.uk\\/", "upd_version": "3.4.7.4" }, + "Money.it": { + "domain": "money.it", + "allow_cookies": 1, + "cs_block": 1, + "upd_version": "3.4.7.5" + }, "National Review": { "domain": "nationalreview.com", "allow_cookies": 1,