diff --git a/README.md b/README.md index cd0d639..ce57303 100644 --- a/README.md +++ b/README.md @@ -456,7 +456,6 @@ Grouped in options:\ [Les Échos](https://www.lesechos.fr) - [Les Inrockuptibles](https://www.lesinrocks.com) - [Marianne](https://www.marianne.net) - -[Mediapart (fr/en/es)](https://www.mediapart.fr) - [Paris Match](https://www.parismatch.com) - [Philonomist (fr/en)](https://www.philonomist.com) - [Philosophie Magazine](https://www.philomag.com) - diff --git a/background.js b/background.js index 6f5080a..1716f31 100644 --- a/background.js +++ b/background.js @@ -8,7 +8,7 @@ var navigator_ua = navigator.userAgent; var navigator_ua_mobile = navigator_ua.toLowerCase().includes('mobile'); var kiwi_browser = navigator_ua_mobile && (url_loc === 'chrome') && !navigator_ua.toLowerCase().includes('yabrowser'); -const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'mediapart.fr', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains, no_nhst_media_domains); +const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains, no_nhst_media_domains); var optin_setcookie = false; var optin_update = true; var blocked_referer = false; @@ -1224,7 +1224,7 @@ ext_api.tabs.onUpdated.addListener(function (tabId, info, tab) { updateBadge(tab ext_api.tabs.onActivated.addListener(function (activeInfo) { if (activeInfo.tabId) ext_api.tabs.get(activeInfo.tabId, updateBadge); }); function updateBadge(activeTab) { - if (ext_api.runtime.lastError || !activeTab) + if (ext_api.runtime.lastError || !activeTab || (activeTab.url && activeTab.url.split('?')[0].includes('/archive.'))) return; let badgeText = ''; let color = 'red'; diff --git a/changelog.txt b/changelog.txt index 782f73d..73ce438 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Haaretz.co.il & The Marker Remove LaVie.fr +Remove Mediapart.fr Fix & grouping Australia Nine Entertainment Fix La Vanguardia (images) Fix NzHerald (timing) diff --git a/contentScript.js b/contentScript.js index b7cab15..4582eae 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1591,17 +1591,6 @@ else if (matchDomain('marianne.net')) { } } -else if (matchDomain('mediapart.fr')) { - let url = window.location.href; - let paywall = document.querySelector('div[id^="paywall_"], div.offre-basique'); - if (paywall) { - removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'div.paywall-restricted-content, div.content-article'); - } -} - else if (matchDomain('nouvelobs.com')) { let paywall = document.querySelector('.paywall'); removeDOMElement(paywall); diff --git a/custom/sites_custom.json b/custom/sites_custom.json index e6b9f73..1fbd72e 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -143,6 +143,11 @@ "domain": "lindipendente.online", "useragent": "googlebot" }, + "Lkz.de": { + "allow_cookies": 1, + "domain": "lkz.de", + "useragent": "googlebot" + }, "Lsa-conso.fr": { "allow_cookies": 1, "domain": "lsa-conso.fr", @@ -229,6 +234,11 @@ "domain": "sportsbusinessjournal.com", "random_ip": "all" }, + "Stimme.de": { + "allow_cookies": 1, + "domain": "stimme.de", + "ld_google_webcache": "div.paywall-product-box|div.art-text" + }, "Supchina.com": { "allow_cookies": 1, "block_regex": "\\.tinypass\\.com\\/", diff --git a/manifest.json b/manifest.json index 8c52c75..f5a7f49 100644 --- a/manifest.json +++ b/manifest.json @@ -402,7 +402,6 @@ "*://*.masslive.com/*", "*://*.maz-online.de/*", "*://*.mcall.com/*", - "*://*.mediapart.fr/*", "*://*.medium.com/*", "*://*.medscape.com/*", "*://*.menshealth.com/*", @@ -732,5 +731,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.9.4.5" + "version": "2.9.4.6" } diff --git a/sites.js b/sites.js index 5e741ce..0a38e40 100644 --- a/sites.js +++ b/sites.js @@ -1260,10 +1260,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /(\.blueconic\.net\/|\.tinypass\.com\/|\/loader-wp\/.+\/loader\.min\.js|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/ }, - "Mediapart.fr": { - domain: "mediapart.fr", - allow_cookies: 1 - }, "Medium (free articles only)": { domain: "medium.com", allow_cookies: 1, @@ -2237,7 +2233,7 @@ var defaultSites = { domain: "piano.io", allow_cookies: 1, block_regex_general: /\.piano\.io\//, - excluded_domains: ["asia.nikkei.com", "businesspost.ie", "japantimes.co.jp"] + excluded_domains: ["asia.nikkei.com", "businesspost.ie", "japantimes.co.jp", "lkz.de"] }, "Pico.tools": { domain: "pico.tools", @@ -2399,4 +2395,4 @@ init_custom_domains(); // sites with no fix (background) var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com']; -var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, it_gedi_nofix_domains); +var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, it_gedi_nofix_domains);