From c88dacff571de42a1d03199bd06240370b9df85d Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 23 Nov 2023 12:20:31 +0100 Subject: [PATCH] Add Tiroler Tageszeitung --- README.md | 1 + changelog.txt | 1 + contentScript.js | 12 ++++++++++-- custom/manifest.json | 2 +- manifest.json | 3 ++- sites.js | 5 +++++ sites_updated.json | 7 +++++++ 7 files changed, 27 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a25b096..63ca8be 100644 --- a/README.md +++ b/README.md @@ -619,6 +619,7 @@ Grouped in options:\ [Schwäbische Zeitung](https://www.schwaebische.de) - [Springer Medizin](https://www.springermedizin.de) - [Süddeutsche Zeitung (link to archive.is)](https://www.sueddeutsche.de) - +[Tiroler Tageszeitung](https://www.tt.com) - [Volksstimme](https://www.volksstimme.de) - [Vorarlberg Nachrichten](https://www.vn.at) - [Vorarlberg Online](https://www.vol.at) - diff --git a/changelog.txt b/changelog.txt index b8378ab..124a206 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 Tagesspiegel.de (link to archive.is) +Add Tiroler Tageszeitung Fix Groupe Nice-Matin (css) Fix The Hill Times (ld_json_url) Update popup (fix toggle for custom flex sites) diff --git a/contentScript.js b/contentScript.js index c5c2368..0cc63f0 100644 --- a/contentScript.js +++ b/contentScript.js @@ -50,7 +50,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com']; // clean local storage of sites (with an exemption for hold-list) -var arr_localstorage_hold = ['augsburger-allgemeine.de', 'barrons.com', 'business-standard.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'columbian.com', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'digiday.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'indiatoday.in', 'inews.co.uk', 'janes.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nwzonline.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'ruhrnachrichten.de', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'techinasia.com', 'telegraph.co.uk', 'tes.com', 'the-tls.co.uk', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'theweek.com', 'tuttosport.com', 'uol.com.br', 'vol.at', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, ca_torstar_domains, de_funke_medien_domains, de_lv_domains, de_vrm_domains, de_vrm_custom_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains); +var arr_localstorage_hold = ['augsburger-allgemeine.de', 'barrons.com', 'business-standard.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'columbian.com', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'digiday.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'indiatoday.in', 'inews.co.uk', 'janes.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nwzonline.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'ruhrnachrichten.de', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'techinasia.com', 'telegraph.co.uk', 'tes.com', 'the-tls.co.uk', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'theweek.com', 'tt.com', 'tuttosport.com', 'uol.com.br', 'vol.at', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, ca_torstar_domains, de_funke_medien_domains, de_lv_domains, de_vrm_domains, de_vrm_custom_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains); if (!matchDomain(arr_localstorage_hold)) { window.localStorage.clear(); } @@ -584,7 +584,7 @@ else { csDone = true; } -} else if (window.location.hostname.match(/\.(de|at|ch)$/) || matchDomain(['faz.net', 'topagrar.com', 'wochenblatt.com'])) {//germany/austria/switzerland - ch +} else if (window.location.hostname.match(/\.(de|at|ch)$/) || matchDomain(['faz.net', 'topagrar.com', 'tt.com', 'wochenblatt.com'])) {//germany/austria/switzerland - ch if (matchDomain('aerztezeitung.de')) { let paywall = document.querySelector('div.AZLoginModule'); @@ -1189,6 +1189,14 @@ else if (matchDomain('tagesspiegel.de')) { } } +else if (matchDomain('tt.com')) { + let div_hidden = document.querySelectorAll('.exclusive-elem'); + for (let elem of div_hidden) + elem.classList.remove('exclusive-elem'); + let ads = document.querySelectorAll('div.ad-container, div[class*="ads-container"], div.adblock-warning'); + hideDOMElement(...ads); +} + else if (matchDomain('vn.at')) { if (window.location.href.match(/\.vn\.at\/.+\/\d{4}\//)) { let paywall = document.querySelector('div.paywalled-content'); diff --git a/custom/manifest.json b/custom/manifest.json index 6c34c8c..6476879 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.4.3.4" + "version": "3.4.3.5" } diff --git a/manifest.json b/manifest.json index fb3a3dd..cec9655 100644 --- a/manifest.json +++ b/manifest.json @@ -718,6 +718,7 @@ "*://*.tri-cityherald.com/*", "*://*.triathlete.com/*", "*://*.trouw.nl/*", + "*://*.tt.com/*", "*://*.tubantia.nl/*", "*://*.tucson.com/*", "*://*.tulsaworld.com/*", @@ -816,5 +817,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.4.3.4" + "version": "3.4.3.5" } diff --git a/sites.js b/sites.js index a154551..6fcbd8a 100644 --- a/sites.js +++ b/sites.js @@ -2515,6 +2515,11 @@ var defaultSites = { } ] }, + "Tiroler Tageszeitung": { + domain: "tt.com", + allow_cookies: 1, + block_regex: /\.piano\.io\/xbuilder\/experience\/execute/ + }, "Tribune Publishing Company": { domain: "###_usa_tribune", group: [ diff --git a/sites_updated.json b/sites_updated.json index 484f113..0965670 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -153,6 +153,13 @@ "cs_dompurify": 1, "upd_version": "3.4.1.6" }, + "Tiroler Tageszeitung": { + "domain": "tt.com", + "allow_cookies": 1, + "block_regex": "\\.piano\\.io\\/xbuilder\\/experience\\/execute", + "cs_code": "[{\"cond\":\".exclusive-elem\", \"rm_class\":\"exclusive-elem\"}]", + "upd_version": "3.4.3.5" + }, "TownNews sites (Blox CMS)": { "domain": "###_usa_townnews", "block_regex_general": "\\/tncms\\/api\\/access(\\..+)?\\.js",