diff --git a/README.md b/README.md index c7a2987..b34c073 100644 --- a/README.md +++ b/README.md @@ -525,7 +525,6 @@ Grouped in options:\ [L'Obs](https://www.nouvelobs.com) - [L'Oeil de la Photographie (fr/en)](https://loeildelaphotographie.com) - [L'Opinion](https://www.lopinion.fr) - -[L'Usine Nouvelle](https://www.usinenouvelle.com) - [La Croix](https://www.la-croix.com) - [La Nouvelle République du Centre-Ouest](https://www.lanouvellerepublique.fr) - [La Tribune](https://www.latribune.fr) - @@ -554,6 +553,9 @@ Grouped in options:\ Grouped in options:\ *Groupe Centre France* sites like (opt-in to custom sites for unlisted)\ [La Montagne](https://www.lamontagne.fr)\ +*Groupe Infopro Digital* sites like (opt-in to custom sites for unlisted)\ +[Le Moniteur](https://www.lemoniteur.fr) - +[L'Usine Nouvelle](https://www.usinenouvelle.com)\ *Groupe IPM* sites like\ [DH Les Sports+](https://www.dhnet.be) - [L'Avenir](https://www.lavenir.net) - diff --git a/background.js b/background.js index aada025..a6cb5df 100644 --- a/background.js +++ b/background.js @@ -542,7 +542,7 @@ ext_api.storage.local.get({ } else { ext_api.management.getSelf(function (result) { if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) { - let new_groups = ['###_usa_digiday']; + let new_groups = ['###_fr_groupe_infopro', '###_usa_digiday']; let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))); if (open_options) ext_api.runtime.openOptionsPage(); diff --git a/changelog.txt b/changelog.txt index 8029f36..6bf09c7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,12 +4,14 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add Courrier international +Add LeMoniteur.fr (Groupe Infopro Digital) Add Observador.pt Add Pour l'Eco Fix Autosport (js) Fix Fast Company (premium) Fix Mid-Day (amp-redirect) Fix Tech in Asia (json) +Fix Telegraaf.nl (no article/image) Update options (search) * v3.5.9.0 (2024-03-10) diff --git a/contentScript.js b/contentScript.js index e0c6ecd..a5d918e 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2038,6 +2038,13 @@ else if (matchDomain(['lejdd.fr', 'parismatch.com', 'public.fr'])) { } } +else if (matchDomain('lemoniteur.fr')) { + let url = window.location.href; + getGoogleWebcache(url, 'div.blocPasEncoreAbonne', '', 'div.articleContent'); + let ads = document.querySelectorAll('div[data-ad-id], div.ad2hsBox'); + hideDOMElement(...ads); +} + else if (matchDomain('leparisien.fr')) { if (window.location.pathname.startsWith('/amp/')) ampToHtml(); @@ -2752,7 +2759,7 @@ else if (matchDomain('telegraaf.nl')) { } let premium = document.querySelector('div[class^="Article__premium"] > p'); let paywall = document.querySelector('data-hydrate[data-name="PaywallHandler"]'); - let article = document.querySelector('section > div.DetailArticleImage'); + let article = document.querySelector('section > div.DetailArticleImage') || document.querySelector('section > p.Article__intro'); if (paywall && window.location.pathname.startsWith('/video/')) removeDOMElement(paywall); if (premium && paywall && article && dompurify_loaded) { diff --git a/contentScript_once.js b/contentScript_once.js index 83843c9..64ae63e 100644 --- a/contentScript_once.js +++ b/contentScript_once.js @@ -93,6 +93,8 @@ window.setTimeout(function () { } else if (hostname.endsWith('.fr')) { if (document.querySelector('head > meta[name="google-play-app"][content^="app-id=com.centrefrance"]')) group = '###_fr_gcf'; + else if (matchDomain(['cahiers-techniques-batiment.fr', 'lsa-conso.fr'])) + group = '###_fr_groupe_infopro'; } else if (hostname.endsWith('.it')) { if (document.querySelector('head > link[href^="//citynews.stgy.ovh/"]')) group = '###_it_citynews';// no fix @@ -143,6 +145,8 @@ window.setTimeout(function () { else if (hostname.match(/\.com$/)) { if (matchDomain(['journalauto.com', 'journaldupneu.com', 'j2rauto.com'])) group = '###_fr_synerj'; + else if (matchDomain(['argusdelassurance.com', 'lagazettedescommunes.com'])) + group = '###_fr_groupe_infopro'; else if (!matchDomain('institutionalinvestor.com') && (matchDomain('thedeal.com') || document.querySelector('footer.Page-footer a.Link[href="https://www.delinian.com/privacy-policy"]'))) group = '###_uk_delinian';// no fix else if (document.querySelector('head > meta[property][content^="https://cdn.forumcomm.com/"]')) diff --git a/custom/manifest.json b/custom/manifest.json index c11b34b..332fdd9 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.5.9.6" + "version": "3.5.9.7" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 8b30406..43569c5 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -383,6 +383,11 @@ "domain": "ilglobo.com", "useragent": "googlebot" }, + "Insidemortgagefinance.com": { + "allow_cookies": 1, + "domain": "insidemortgagefinance.com", + "ld_google_webcache": "div.article-preview|div.main-body" + }, "Institutionalinvestor.com": { "allow_cookies": 1, "cs_code": "[{\"cond\":\"div[style*='background-image: linear-gradient']\", \"rm_elem\":1}]", @@ -438,11 +443,6 @@ "domain": "lagaceta.com.ar", "useragent": "facebookbot" }, - "Lagazettedescommunes.com": { - "allow_cookies": 1, - "domain": "lagazettedescommunes.com", - "useragent": "googlebot" - }, "Lasvegasadvisor.com": { "allow_cookies": 1, "block_regex": "\\.lasvegasadvisor\\.com\\/(opt\\/.+|js\\/access\\.min)\\.js", @@ -477,11 +477,6 @@ "domain": "lindipendente.online", "useragent": "googlebot" }, - "Lsa-conso.fr": { - "allow_cookies": 1, - "domain": "lsa-conso.fr", - "useragent": "googlebot" - }, "Luxurydaily.com": { "allow_cookies": 1, "domain": "luxurydaily.com", @@ -649,6 +644,11 @@ "domain": "piratewires.com", "useragent": "googlebot" }, + "Policinginsight.com": { + "allow_cookies": 1, + "domain": "policinginsight.com", + "ld_json_url": "div#pi-content-gating|article|1|1" + }, "Publishersweekly.com": { "allow_cookies": 1, "block_regex": "\\.omeda\\.com", diff --git a/manifest.json b/manifest.json index 5acf5de..a0ac79d 100644 --- a/manifest.json +++ b/manifest.json @@ -429,6 +429,7 @@ "*://*.lehighvalleylive.com/*", "*://*.lejdd.fr/*", "*://*.lemagit.fr/*", + "*://*.lemoniteur.fr/*", "*://*.lenouveleconomiste.fr/*", "*://*.lenouvelliste.ch/*", "*://*.leparisien.fr/*", @@ -858,5 +859,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.5.9.6" + "version": "3.5.9.7" } diff --git a/sites.js b/sites.js index b28b8ce..efb593f 100644 --- a/sites.js +++ b/sites.js @@ -911,6 +911,21 @@ var defaultSites = { allow_cookies: 1, cs_dompurify: 1 }, + "Groupe Infopro Digital (opt-in to custom sites for unlisted)": { + domain: "###_fr_groupe_infopro", + group: [ + "lemoniteur.fr", + "usinenouvelle.com" + ], + allow_cookies: 1, + useragent: "googlebot", + exception: [{ + domain: "lemoniteur.fr", + allow_cookies: 1, + cs_dompurify: 1 + } + ] + }, "Groupe IPM": { domain: "###_be_groupe_ipm", group: [ @@ -1375,11 +1390,6 @@ var defaultSites = { allow_cookies: 1, useragent: "googlebot" }, - "L'Usine Nouvelle": { - domain: "usinenouvelle.com", - allow_cookies: 1, - useragent: "googlebot" - }, "La Croix": { domain: "la-croix.com", allow_cookies: 1, @@ -3074,7 +3084,7 @@ var custom_flex_not = { "###_de_dfv_medien": ["dfv.de"], "###_de_madsack": ["madsack.de", "madsack-medien-campus.de"], "###_es_epiberica": ["sport.es", "stilo.es"], - "###_wp_leaky_paywall": ["epsilontheory.com", "heisenbergreport.com", "investmentnews.com", "thewirechina.com"], + "###_wp_leaky_paywall": ["epsilontheory.com", "heisenbergreport.com", "investmentnews.com", "thewirechina.com", "uppereastsite.com"], "###_uk_axate.io": ["thecricketer.com", "thinkofx.net"], "###_uk_haymarket": ["gpbusiness.co.uk", "scmagazineuk.com", "thecorporatetreasurer.com"], "###_uk_haymarket_medical": ["mycme.com"], @@ -3103,4 +3113,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', 'limesonline.com']; var nl_mediahuis_region_nofix_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl']; -var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'americanscientist.org', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', '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', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'svd.se', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); +var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'americanscientist.org', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', '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', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'svd.se', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'usine-digitale.fr', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_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 d8cf4d8..362ffa1 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -64,6 +64,12 @@ "block_regex": "(\\.ilsole24ore\\.com\\/zephr\\/feature|\\.cloudfront\\.net\\/embed\\/widget\\/subx.+\\.js)", "upd_version": "3.5.7.7" }, + "LeMoniteur.fr": { + "domain": "lemoniteur.fr", + "allow_cookies": 1, + "ld_google_webcache": "div.blocPasEncoreAbonne|div.articleContent", + "upd_version": "3.5.9.7" + }, "Medscape (regwall)": { "domain": "medscape.com", "allow_cookies": 1,