From 50513a09a70a992b2351f0d409e24912f9d74b9c Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 2 Jul 2022 09:46:39 +0200 Subject: [PATCH] Add ilTirreno.it --- README.md | 1 + changelog.txt | 4 +++- contentScript.js | 7 ++++++- manifest.json | 3 ++- sites.js | 8 +++++--- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f008f68..9c6ea1a 100644 --- a/README.md +++ b/README.md @@ -530,6 +530,7 @@ Grouped in options:\ [Il Foglio](https://www.ilfoglio.it) - [Il Manifesto](https://ilmanifesto.it) - [Il Secolo XIX](https://www.ilsecoloxix.it) - +[Il Tirreno](https://www.iltirreno.it) - [Internazionale](https://www.internazionale.it) - [Italia Oggi](https://www.italiaoggi.it) - [Italian.tech](https://www.italian.tech) - diff --git a/changelog.txt b/changelog.txt index e36a342..8b71cab 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add BQ Prime (former Bloomberg Quint) +Add ilTirreno.it Add Spiegel.de (link to archive.is) Remove Deutsche Wirtschafts Nachrichten (fix obsolete) Fix Automobilwoche @@ -10,10 +11,11 @@ Fix Financial Times (cookie-banner) Fix Groupe SudOuest.fr Fix Iltalehti.fi (videos) Fix Knack.be & LeVif.be +Fix La Nuova Sardegna Fix Observador.pt Fix The Athletic (single domain) Fix Times of India (no amp) -Remove block general paywall script (GoogleTagManager) +Update block general paywall script (remove GoogleTagManager) * v2.7.3.0 (2022-06-26) Add Artforum diff --git a/contentScript.js b/contentScript.js index 3d1ce42..59f929b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -17,7 +17,7 @@ var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', ' var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr']; var fr_groupe_nice_matin_domains = ['monacomatin.mc', 'nicematin.com', 'varmatin.com']; var it_ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'ilmessaggero.it', 'quotidianodipuglia.it']; -var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'italian.tech', 'lanuovasardegna.it', 'lastampa.it', 'repubblica.it']; +var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'italian.tech', 'lastampa.it', 'repubblica.it']; var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafolivorno.it', 'lanazione.it', 'quotidiano.net']; var medium_custom_domains = ['betterprogramming.pub', 'towardsdatascience.com']; var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl']; @@ -1673,6 +1673,11 @@ else if (matchDomain('ilmanifesto.it')) { } } +else if (matchDomain(['iltirreno.it', 'lanuovasardegna.it'])) { + let banner = document.querySelector('div.MuiSnackbar-root'); + removeDOMElement(banner); +} + else if (matchDomain(it_ilmessaggero_domains)) { if (window.location.pathname.toLowerCase().includes('/amp/')) { amp_unhide_subscr_section('amp-ad, amp-embed'); diff --git a/manifest.json b/manifest.json index 16d78f6..5750f95 100644 --- a/manifest.json +++ b/manifest.json @@ -283,6 +283,7 @@ "*://*.ilsecoloxix.it/*", "*://*.iltalehti.fi/*", "*://*.iltelegrafolivorno.it/*", + "*://*.iltirreno.it/*", "*://*.inc.com/*", "*://*.inc42.com/*", "*://*.independent.co.uk/*", @@ -686,5 +687,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.3.6" + "version": "2.7.3.7" } diff --git a/sites.js b/sites.js index 3eb6e31..8104c3d 100644 --- a/sites.js +++ b/sites.js @@ -811,6 +811,9 @@ var defaultSites = { domain: "ilsecoloxix.it", group_rule: "###_gr_it_repubblica_domains" }, + "Il Tirreno": { + domain: "iltirreno.it" + }, "Inc.com": { domain: "inc.com", block_regex: /\.tinypass\.com\// @@ -947,8 +950,7 @@ var defaultSites = { block_regex: /(\.weborama\.fr\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ }, "La Nuova Sardegna": { - domain: "lanuovasardegna.it", - group_rule: "###_gr_it_repubblica_domains" + domain: "lanuovasardegna.it" }, "La Repubblica": { domain: "repubblica.it", @@ -1981,7 +1983,7 @@ var defaultSites = { block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js/ }, "###_gr_it_repubblica_domains": { - group_rule_domains: ["gelocal.it", "huffingtonpost.it", "ilsecoloxix.it", "italian.tech", "lanuovasardegna.it", "lastampa.it", "lescienze.it", "limesonline.com", "repubblica.it"], + group_rule_domains: ["gelocal.it", "huffingtonpost.it", "ilsecoloxix.it", "italian.tech", "lastampa.it", "lescienze.it", "limesonline.com", "repubblica.it"], allow_cookies: 1, block_regex: /(scripts\.repubblica\.it\/pw\/pw\.js|cdn\.ampproject\.org\/v\d\/amp-(access|user-notification)-.+\.js)/, useragent: "googlebot"