diff --git a/README.md b/README.md index 490b3f86..19edcbe9 100644 --- a/README.md +++ b/README.md @@ -730,6 +730,7 @@ Grouped in options:\ [Financieele Dagblad](https://fd.nl) - [Follow the Money](https://www.ftm.nl) - [Groene Amsterdammer](https://www.groene.nl) - +[Het Laatste Nieuws](https://www.hln.be) - [NRC Handelsblad](https://www.nrc.nl) - [Telegraaf](https://www.telegraaf.nl) - [Vrij Nederland](https://www.vn.nl) diff --git a/background.js b/background.js index 35217ff5..03b4c8de 100644 --- a/background.js +++ b/background.js @@ -40,7 +40,6 @@ var restrictions = { 'nzz.ch': /^((?!\/epaper\.nzz\.ch\/).)*$/, 'quora.com': /^((?!quora\.com\/search\?q=).)*$/, 'science.org': /^((?!\.science\.org\/doi\/).)*$/, - 'seekingalpha.com': /\/seekingalpha\.com($|\/($|(amp\/)?(article|news)\/|samw\/))/, 'statista.com': /^((?!\.statista\.com\/study\/).)*$/, 'study.com': /\/study\.com\/.+\/lesson\//, 'tagesspiegel.de': /^((?!\/(background|checkpoint)\.tagesspiegel\.de\/).)*$/, @@ -561,7 +560,7 @@ ext_api.storage.local.get({ set_rules(sites, updatedSites, customSites); if (optin_update) check_update(); - if (enabledSites.includes('#options_optin_update_rules')) { + if (enabledSites.includes('#options_optin_update_rules') && self_hosted) { sites_updated_json = sites_updated_json_online; sites_custom_ext_json = ext_path + 'custom/sites_custom.json'; } diff --git a/changelog.txt b/changelog.txt index a615b29a..ce62de23 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Post-release Add Bild.de (fetch from archive.is) Add Capital.fr Add Crain's Grand Rapids Business +Add Hln.be (fetch from archive.is) Add Spektrum.de Fix LeMonde.fr (view more) Fix MediaNews Group (ld_json_url) diff --git a/contentScript.js b/contentScript.js index a693fd0a..16d8d8fa 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2752,7 +2752,7 @@ else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('head > lin hideDOMElement(...ads); } -else if (matchDomain(nl_dpg_adr_domains)) { +else if (matchDomain(nl_dpg_adr_domains.concat(['hln.be']))) { func_post = function () { let shades = document.querySelectorAll('div[style*="background-color"][style*=";width"]'); for (let elem of shades) @@ -4375,7 +4375,7 @@ else if (matchDomain(['haaretz.co.il', 'haaretz.com', 'themarker.com'])) { removeDOMElement(paywall); let article = document.querySelector(article_sel); if (article) { - article.before(archiveLink_renew(url)); + //article.before(archiveLink_renew(url)); article.before(archiveLink(url)); } } @@ -6613,8 +6613,8 @@ function replaceDomElementExtSrc(url, url_src, html, proxy, base64, selector, te if (arch_dom.firstChild) arch_dom = arch_dom.firstChild; let arch_div = document.createElement('div'); - arch_div.appendChild(archiveLink_renew(window.location.href)); - arch_div.appendChild(archiveLink(window.location.href, 'BPC > Try when layout issues (no need to report issue for external site):\r\n')); + //arch_div.appendChild(archiveLink_renew(window.location.href)); + arch_div.appendChild(archiveLink(window.location.href, 'BPC > Full article text fetched from (no need to report issue for external site):\r\n')); arch_div.style = 'margin: 0px 0px 50px;'; arch_dom.before(arch_div); } diff --git a/custom/manifest.json b/custom/manifest.json index 68fef5a4..66c93d6d 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.6.2.6" + "version": "3.6.2.7" } diff --git a/manifest.json b/manifest.json index afa8ef68..8a75726f 100644 --- a/manifest.json +++ b/manifest.json @@ -331,6 +331,7 @@ "*://*.hindustantimes.com/*", "*://*.hindutamil.in/*", "*://*.historyextra.com/*", + "*://*.hln.be/*", "*://*.housebeautiful.com/*", "*://*.houstonchronicle.com/*", "*://*.hoy.es/*", @@ -870,5 +871,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.6.2.6" + "version": "3.6.2.7" } diff --git a/options/popup.js b/options/popup.js index 2c5d8d39..8e64e3b8 100644 --- a/options/popup.js +++ b/options/popup.js @@ -87,12 +87,12 @@ function showArchiveLinks() { let url_enc = encodeURIComponent(url); let archive_array = { 'Archive.today': 'https://archive.today?run=1&url=' + url_enc, - 'Archive.today (renew)': 'https://archive.today?renew=1&url=' + url_enc, 'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc, 'Clearthis.page': 'https://clearthis.page?u=' + url, '1ft.io': 'https://1ft.io/' + url, 'Google Search Tool\n(use online html-viewer - no fix)': 'https://search.google.com/test/rich-results?url=' + url_enc }; + //'Archive.today (renew)': 'https://archive.today?renew=1&url=' + url_enc, let archive_id = document.querySelector('span#archive'); if (archive_id) { archive_id.appendChild(document.createTextNode('Open tab in:')); diff --git a/sites.js b/sites.js index 13df1f7c..11758c2d 100644 --- a/sites.js +++ b/sites.js @@ -1187,6 +1187,12 @@ var defaultSites = { allow_cookies: 1, block_regex: /(\.com\/_assets\/jam\/|\.ensighten\.com\/.+\/Bootstrap\.js)/ }, + "Het Laatste Nieuws (fetch from archive.is)": { + domain: "hln.be", + allow_cookies: 1, + block_regex: /temptation\.hln\.be\/temptation\.js/, + cs_dompurify: 1 + }, "Hindu Tamil Thisai": { domain: "hindutamil.in", allow_cookies: 1 @@ -3154,4 +3160,4 @@ var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr' var fr_jamg_nofix_domains = ['africabusinessplus.com', 'jeuneafrique.com', 'theafricareport.com']; 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', 'businessdesk.co.nz', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'compactmag.com', 'coursehero.com', 'denikn.cz', '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', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hln.be', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.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', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'maville.com', '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', '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', 'thebanker.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'usine-digitale.fr', 'vedomosti.ru', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(be_mediahuis_nofix_domains, 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, fr_jamg_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', 'businessdesk.co.nz', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'compactmag.com', 'coursehero.com', 'denikn.cz', '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', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.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', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'maville.com', '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', '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', 'thebanker.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'usine-digitale.fr', 'vedomosti.ru', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(be_mediahuis_nofix_domains, 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, fr_jamg_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); diff --git a/sites_updated.json b/sites_updated.json index 8bd9a020..916f69c6 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -57,13 +57,6 @@ "useragent_custom": "Mozilla/5.0 (Java) outbrain", "upd_version": "3.6.0.4" }, - "Het Laatste Nieuws (removed)": { - "domain": "hln.be", - "allow_cookies": 1, - "cs_block": 1, - "nofix": 1, - "upd_version": "3.6.0.8" - }, "L'Humanité": { "domain": "humanite.fr", "allow_cookies": 1,