From c69fac8336e6be174ab00dfb95bb950042a71d1d Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 23 Jul 2021 15:28:22 +0200 Subject: [PATCH] Fix Alma Talent sites --- background.js | 2 ++ changelog.txt | 1 + contentScript.js | 6 ++++++ manifest.json | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index 02ba7e2..1517c74 100644 --- a/background.js +++ b/background.js @@ -519,6 +519,8 @@ function add_grouped_sites(init_rules) { blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-(access|ad|subscriptions)-.+\.js/; } for (let domain of fi_alma_talent_domains) { + if (!['mediuutiset.fi'].includes(domain)) + blockedRegexes[domain] = /\.fi\/static\/vendor\..+\.chunk\.js/; use_google_bot.push(domain); } for (let domain of fr_be_groupe_rossel_domains) { diff --git a/changelog.txt b/changelog.txt index 266e8e7..d8a84db 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Southern Weekly (China) +Fix Alma Talent sites Fix Bloomberg Fix Nikkei Asian Review (cookies) Fix The Daily Telegraph (au) diff --git a/contentScript.js b/contentScript.js index 11fa35b..734a264 100644 --- a/contentScript.js +++ b/contentScript.js @@ -9,6 +9,7 @@ var de_funke_media_domains = ['abendblatt.de', 'braunschweiger-zeitung.de', 'mor var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'maz-online.de', 'neuepresse.de', 'ostsee-zeitung.de']; var es_epiberica_domains = ['diariodeibiza.es', 'diariodemallorca.es', 'farodevigo.es', 'laprovincia.es', 'levante-emv.com', 'lne.es']; var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'lasprovincias.es', 'laverdad.es', 'lavozdigital.es']; +var fi_alma_talent_domains = ['arvopaperi.fi', 'kauppalehti.fi', 'marmai.fi', 'mediuutiset.fi', 'mikrobitti.fi', 'talouselama.fi', 'tekniikkatalous.fi', 'tivi.fi', 'uusisuomi.fi']; var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr']; var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr']; var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'lanuovasardegna.it', 'lastampa.it', 'limesonline.com', 'repubblica.it']; @@ -1880,6 +1881,11 @@ else if (matchDomain('entrepreneur.com')) { } } +else if (matchDomain(fi_alma_talent_domains)) { + let ads = document.querySelectorAll('div[class^="p2m385-"]'); + removeDOMElement(...ads); +} + else if (matchDomain('firstthings.com')) { let paywall = document.querySelector('.paywall'); removeDOMElement(paywall); diff --git a/manifest.json b/manifest.json index 7b0e505..87fa03e 100644 --- a/manifest.json +++ b/manifest.json @@ -535,5 +535,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.2.9.4" + "version": "2.2.9.5" } \ No newline at end of file