diff --git a/README.md b/README.md index 098f3dd..5eec2de 100644 --- a/README.md +++ b/README.md @@ -646,6 +646,7 @@ Grouped in options:\ *Gruppo GEDI.it* sites like\ [Italian.tech](https://www.italian.tech) - [L'Espresso](https://espresso.repubblica.it) - +[La Stampa](https://www.lastampa.it) - [Le Scienze](https://www.lescienze.it) [Il Messaggero](https://www.ilmessaggero.it) and regional sites like diff --git a/changelog.txt b/changelog.txt index 195b066..7ad9661 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 4 more Lee Enterprises Group sites +Add LaStampa.it (GEDI) Add The American Conservative Add The Week (UK & USA) Remove The Hollywood Reporter (no paywall) diff --git a/contentScript.js b/contentScript.js index e2fdb20..a4d4f08 100644 --- a/contentScript.js +++ b/contentScript.js @@ -27,7 +27,7 @@ var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', ' var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr', 'rugbyrama.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_gedi_domains = ['italian.tech', 'lescienze.it', 'repubblica.it']; +var it_gedi_domains = ['italian.tech', 'lastampa.it', 'lescienze.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']; @@ -2112,14 +2112,27 @@ else if (matchDomain(it_gedi_domains)) { video.parentNode.replaceChild(elem, video); } } + } else if (matchDomain('lastampa.it')) { + if (window.location.pathname.includes('/news/')) { + if (!window.location.pathname.match(/\amp(\/)?$/)) { + csDoneOnce = true; + let story_text = document.querySelector('div.story__text'); + if (!story_text) + refreshCurrentTab(); + let modal = document.querySelector('aside#widgetDP'); + removeDOMElement(modal); + } else + ampToHtml(); + } } else { if (!window.location.pathname.match(/\amp(\/)?$/)) { let paywall = document.querySelector('div#paywall'); - let ads = document.querySelectorAll('div[id^="adv"]'); - removeDOMElement(paywall, ...ads); + removeDOMElement(paywall); } else ampToHtml(); } + let ads = document.querySelectorAll('div[id^="adv"]'); + removeDOMElement(...ads); } else if (matchDomain('money.it')) { diff --git a/custom/manifest.json b/custom/manifest.json index f31f73a..b449780 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.2.8.7" + "version": "3.2.8.8" } diff --git a/manifest.json b/manifest.json index 7d029d3..59518c9 100644 --- a/manifest.json +++ b/manifest.json @@ -375,6 +375,7 @@ "*://*.larioja.com/*", "*://*.lasegunda.com/*", "*://*.lasprovincias.es/*", + "*://*.lastampa.it/*", "*://*.latercera.com/*", "*://*.latimes.com/*", "*://*.latribune.fr/*", @@ -782,5 +783,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.2.8.7" + "version": "3.2.8.8" } diff --git a/sites.js b/sites.js index d11cc52..5a61750 100644 --- a/sites.js +++ b/sites.js @@ -922,16 +922,23 @@ var defaultSites = { block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/, useragent: "googlebot" }, - "Gruppo GEDI.it (italian.tech, lescienze.it & espresso.repubblica.it)": { + "Gruppo GEDI.it (italian.tech, lastampa.it, lescienze.it & espresso.repubblica.it)": { domain: "###_it_gedi", group: [ "italian.tech", + "lastampa.it", "lescienze.it", "espresso.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" + useragent: "googlebot", + exception: [{ + domain: "lastampa.it", + block_js_inline: /\.lastampa\.it\//, + remove_cookies_select_drop: ["blaize_session"] + } + ] }, "Gruppo SAE.it (free articles only)": { domain: "###_it_gruppo_sae", @@ -2673,5 +2680,5 @@ function init_custom_flex_domains() { init_custom_flex_domains(); // sites with no fix (background) -var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it']; +var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'limesonline.com', 'repubblica.it']; 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', 'lefigaro.fr', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.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', '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); diff --git a/sites_updated.json b/sites_updated.json index c6c9548..32c0bee 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -52,6 +52,11 @@ "block_regex": "cdn\\.cxense\\.com", "upd_version": "3.2.8.2" }, + "La Stampa": { + "domain": "lastampa.it", + "block_js_inline": "\\.lastampa\\.it", + "remove_cookies_select_drop": ["blaize_session"] + }, "Mannheimer Morgen": { "domain": "mannheimer-morgen.de", "allow_cookies": 1,