diff --git a/README.md b/README.md index 191f6a8..ab3985a 100644 --- a/README.md +++ b/README.md @@ -515,6 +515,7 @@ Grouped in options:\ [Ciel & espace](https://www.cieletespace.fr) - [Connaissance des Arts](https://www.connaissancedesarts.com) - [Cosmopolitan](https://www.cosmopolitan.fr) - +[Courrier international](https://www.courrierinternational.com) - [Elle](https://www.elle.fr) - [Esprit](https://esprit.presse.fr) - [L'Écho](https://lecho.be) - diff --git a/changelog.txt b/changelog.txt index aab60b0..2ed124f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Add Courrier international * v3.5.9.0 (2024-03-10) Add Funke Mediengruppe (fetch from archive.is) diff --git a/contentScript.js b/contentScript.js index abbc60d..ea0c842 100644 --- a/contentScript.js +++ b/contentScript.js @@ -344,6 +344,8 @@ window.addEventListener('message', function (event) { var overlay = document.querySelector('body.didomi-popup-open'); if (overlay) overlay.classList.remove('didomi-popup-open'); +var ads = document.querySelectorAll('div.OUTBRAIN'); +hideDOMElement(...ads); if (!(csDone || csDoneOnce)) { @@ -1185,7 +1187,7 @@ else if (matchDomain('kurier.at')) { div_hidden.removeAttribute('style'); } } - let banners = document.querySelectorAll('div[data-outbrain], div.OUTBRAIN'); + let banners = document.querySelectorAll('div[data-outbrain]'); hideDOMElement(...banners); } @@ -1488,8 +1490,6 @@ else if (matchDomain('ruhrnachrichten.de') || document.querySelector('a.mgw-logo article_id = pathname.split('-p-')[1].split('/')[0]; if (dompurify_loaded) getJsonUrl('body.is_plus_article', {rm_class: 'is_plus_article'}, 'article', {art_append: 1, art_hold: 1, art_class: 'article__content'}, article_id); - let ads = document.querySelector('div.OUTBRAIN'); - hideDOMElement(ads); if (!matchDomain('ruhrnachrichten.de')) { window.setTimeout(function () { let push = document.querySelector('div.cleverpush-bell'); @@ -3274,7 +3274,7 @@ else if (matchDomain(uk_nat_world_domains) || document.querySelector('footer > d }); amp_image.parentNode.replaceChild(elem, amp_image); } - let ads = document.querySelectorAll('div[class^="MarkupAds__Container-"], div[class*="_AdContainer-"], div[class^="Dailymotion__Wrapper-"], div.OUTBRAIN'); + let ads = document.querySelectorAll('div[class^="MarkupAds__Container-"], div[class*="_AdContainer-"], div[class^="Dailymotion__Wrapper-"]'); hideDOMElement(...ads); } diff --git a/custom/manifest.json b/custom/manifest.json index 717deaa..74b593e 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.5.9.0" + "version": "3.5.9.1" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 37d5407..a40bd82 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -1,6 +1,6 @@ { "###_remove_sites": { - "cs_code": "bild.de, dn.se, faithfullymagazine.com, gazetaprawna.pl, gp.se, group_haaretz, handelsblatt.com, lyrik.fr, mailplus.co.uk, politiken.dk, theinformation.com", + "cs_code": "dn.se, faithfullymagazine.com, gazetaprawna.pl, lyrik.fr, mailplus.co.uk", "domain": "###" }, "Abajournal.com": { @@ -319,6 +319,11 @@ "domain": "group_nation_media", "group": "monitor.co.ug,nation.africa,thecitizen.co.tz" }, + "Group_no_lydogbilde": { + "cs_code": "[{\"cond\":\"div.paywallbox\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div.thecontent\", \"rm_class\":\"thecontent\"}, {\"cond\":\"div#MoreLink_fade-out-div\", \"rm_elem\":1}, {\"cond\":\"div#MoreLink_content-container[style]\", \"rm_attrib\":\"style\"}]}]", + "domain": "group_no_lydogbilde", + "group": "lydogbillede.dk,lydogbilde.no" + }, "Group_uk_dcthomson": { "allow_cookies": 1, "block_regex": "\\.tinypass\\.com", @@ -855,6 +860,11 @@ "domain": "theloadstar.com", "ld_json_url": "div#register_wrapper,div[id$=\"_req_container\"]|article|1|1" }, + "Themandarin.com.au": { + "allow_cookies": 1, + "domain": "themandarin.com.au", + "ld_json_url": "div[data-enterprise-agreement-paywall='true']|div.paywall-mandy" + }, "Themonthly.com.au": { "domain": "themonthly.com.au" }, @@ -913,5 +923,10 @@ "allow_cookies": 1, "block_regex": "\\/zeitzeichen\\.net\\/sites\\/default\\/files\\/js\\/js_.+\\.js", "domain": "zeitzeichen.net" + }, + "Zvw.de": { + "allow_cookies": 1, + "cs_code": "[{\"cond\":\"div.paywall\", \"rm_class\":\"paywall\", \"elems\":[{\"cond\":\"div.nfy-products-teaser\", \"rm_elem\":1}]}, {\"cond\":\"div.nfy-banner\", \"rm_elem\":1}]", + "domain": "zvw.de" } } diff --git a/manifest.json b/manifest.json index b8c72d9..13e6b8b 100644 --- a/manifest.json +++ b/manifest.json @@ -178,6 +178,7 @@ "*://*.courant.com/*", "*://*.courier-journal.com/*", "*://*.couriermail.com.au/*", + "*://*.courrierinternational.com/*", "*://*.crainscleveland.com/*", "*://*.crainsdetroit.com/*", "*://*.crainsnewyork.com/*", @@ -855,5 +856,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.5.9.0" + "version": "3.5.9.1" } diff --git a/sites.js b/sites.js index 9eeabbb..9df5b3b 100644 --- a/sites.js +++ b/sites.js @@ -449,6 +449,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.qiota\.com\// }, + "Courrier international": { + domain: "courrierinternational.com", + allow_cookies: 1, + useragent: "googlebot" + }, "Crain Communications": { domain: "###_usa_craincomm", group: [ @@ -3080,4 +3085,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', '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', 'courrierinternational.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', 'observador.pt', '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', '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', 'observador.pt', '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); diff --git a/sites_updated.json b/sites_updated.json index 471b542..05183c7 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -1,39 +1,9 @@ { - "Barron's": { - "domain": "barrons.com", + "Courrier international": { + "domain": "courrierinternational.com", "allow_cookies": 1, - "block_regex": "(cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", - "upd_version": "3.5.1.7" - }, - "Bloomberg": { - "domain": "bloomberg.com", - "allow_cookies": 1, - "block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)", - "upd_version": "3.2.7.1" - }, - "Condé Nast magazines": { - "domain": "###_usa_conde_nast", - "group": [ - "architecturaldigest.com", - "bonappetit.com", - "cntraveler.com", - "epicurious.com", - "gq.com", - "newyorker.com", - "vanityfair.com", - "vogue.co.uk", - "vogue.com", - "wired.com" - ], - "allow_cookies": 1, - "block_regex": "\\.{domain}\\/journey\\/compiler\\/build-.+\\.js", - "upd_version": "3.5.6.1" - }, - "Forbes Australia": { - "domain": "forbes.com.au", - "remove_cookies_select_drop": ["blaize_session"], - "ld_json_url": "div[class*='_gate']|div.article-page__content-body", - "upd_version": "3.5.6.3" + "useragent": "googlebot", + "upd_version": "3.5.9.1" }, "Funke Mediengruppe": { "domain": "###_de_funke_medien", @@ -54,35 +24,6 @@ "ld_archive_is": "div#paywall-container|article", "upd_version": "3.5.8.3" }, - "Groupe Rossel (removed)": { - "domain": "###_fr_be_groupe_rossel", - "group": [], - "allow_cookies": 1, - "upd_version": "3.5.6.6" - }, - "Grupo Vocento": { - "domain": "###_es_grupo_vocento", - "group": [ - "abc.es", - "canarias7.es", - "diariosur.es", - "diariovasco.com", - "elcomercio.es", - "elcorreo.com", - "eldiariomontanes.es", - "elnortedecastilla.es", - "hoy.es", - "ideal.es", - "larioja.com", - "lasprovincias.es", - "laverdad.es", - "lavozdigital.es" - ], - "allow_cookies": 1, - "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js", - "useragent": "googlebot", - "upd_version": "3.5.6.7" - }, "Haaretz Group": { "domain": "###_il_haaretz_group", "group": [ @@ -117,12 +58,6 @@ "block_regex": "(\\.ilsole24ore\\.com\\/zephr\\/feature|\\.cloudfront\\.net\\/embed\\/widget\\/subx.+\\.js)", "upd_version": "3.5.7.7" }, - "Mediahuis Nederland Regional (removed)": { - "domain": "###_nl_mediahuis_region", - "group": [], - "allow_cookies": 1, - "upd_version": "3.5.6.8" - }, "Medscape (regwall)": { "domain": "medscape.com", "allow_cookies": 1, @@ -142,13 +77,6 @@ "block_regex": "\\.{domain}\\/thenewsbar\\/config", "upd_version": "3.5.8.6" }, - "Polityka.pl": { - "domain": "polityka.pl", - "allow_cookies": 1, - "useragent": "googlebot", - "cs_code": "[{\"cond\":\"div.cg-article-salebox\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div.cg_article_meat>[style]\", \"rm_attrib\":\"style\"}, {\"cond\":\"article.article_status-cut\", \"rm_class\":\"article_status-cut\"}]}]", - "upd_version": "3.5.6.6" - }, "Puck.news (removed)": { "domain": "puck.news", "allow_cookies": 1, @@ -175,48 +103,5 @@ "add_ext_link_type": "archive.is", "ld_archive_is": "aside.article-paywall|main>article", "upd_version": "3.5.8.9" - }, - "The Epoch Times": { - "domain": "###_usa_epochtimes", - "group": [ - "epoch.org.il", - "theepochtimes.com" - ], - "allow_cookies": 1, - "block_regex": "subs\\.(theepochtimes\\.com|epochbase\\.(com|eu))\\/rules\\/get", - "cs_block": 1, - "exception": [{ - "domain": "epoch.org.il", - "allow_cookies": 1, - "block_js_inline": "\\/epoch\\.org\\.il\\/.+\\/\\d{5,}\\/", - "ld_json_url": "div.faded|div.paywall" - } - ], - "upd_version": "3.5.6.5" - }, - "The New York Times": { - "domain": "nytimes.com", - "allow_cookies": 1, - "block_regex": "(\\.nytimes\\.com\\/meter\\.js|mwcm\\.nyt\\.com\\/.+\\.js|cooking\\.nytimes\\.com\\/api\\/.+\\/access)", - "useragent": "googlebot", - "upd_version": "3.1.4.0" - }, - "The Stage Media (UK)": { - "domain": "uk_thestage_media", - "allow_cookies": 1, - "group": [ - "thebookseller.com", - "thestage.co.uk" - ], - "add_ext_link": "div#ao-MeteringDNAllow|div[class*='-Teaser']", - "add_ext_link_type": "archive.is", - "ld_archive_is": "div#ao-MeteringDNAllow|div[id^='aos-FeatureArticle2Col-']", - "exception": [{ - "domain": "thebookseller.com", - "allow_cookies": 1, - "useragent": "googlebot" - } - ], - "upd_version": "3.5.6.8" } } diff --git a/updates.json b/updates.json index 0339a9e..6a45be5 100644 --- a/updates.json +++ b/updates.json @@ -2,8 +2,8 @@ "addons": { "magnolia@12.34": { "updates": [ - { "version": "3.5.8.0", - "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.5.8.0.xpi" } + { "version": "3.5.9.0", + "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.5.9.0.xpi" } ] } }