diff --git a/README.md b/README.md index 9bfb70b..ef6f5f0 100644 --- a/README.md +++ b/README.md @@ -767,6 +767,7 @@ Grouped in options:\ [Libelle.be](https://www.libelle.be) ##### Norway +[Dagsavisen](https://www.dagsavisen.no)\ Grouped in options:\ *NHST Media Group* sites like\ [Europower](https://www.europower.no) - @@ -838,6 +839,7 @@ Grouped in options:\ ##### Sweden [Dagens ETC](https://www.etc.se) - [Dagens Industri](https://www.di.se) - +[Dagens Nyheter](https://www.dn.se) - [NyTeknik](https://www.nyteknik.se) Grouped in options:\ diff --git a/background.js b/background.js index 6520933..7ace434 100644 --- a/background.js +++ b/background.js @@ -965,7 +965,7 @@ if (typeof browser !== 'object') { } } - var set_var_sites = ['journaldemontreal.com', 'journaldequebec.com', 'nzherald.co.nz', 'theglobeandmail.com'].concat(de_madsack_domains); + var set_var_sites = ['dagsavisen.no', 'journaldemontreal.com', 'journaldequebec.com', 'nzherald.co.nz', 'theglobeandmail.com'].concat(de_madsack_domains); function runOnTab_once_var(tab) { let tabId = tab.id; let url = tab.url; diff --git a/changelog.txt b/changelog.txt index 0477bc6..eb584bd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,8 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add BusinessTimes.com.sg & StraitsTimes.com (SPH Media) +Add Dagsavisen.no +Add Dn.se (fetch from archive.is) Add McPherson Media Group (au; opt-in to custom sites) Add The Lamp Magazine Fix Augsburger-allgemeine.de (Googlebot) @@ -508,7 +510,7 @@ Fix The Globe and Mail (title/comments) Update custom sites/popup (remove Google Search Tool) * v3.1.8.0 (2023-05-14) -Add Dagens Nyheter (link to archive.is) +Add Dn.se (link to archive.is) Add Monocle (UK) Add Stylist.co.uk Fix Advance Local (no amp) @@ -1068,7 +1070,7 @@ Add Artforum Add Initium Media Add L'Avenir (Belgium) Add The Banker -Remove Dagens Nyheter (fix obsolete) +Remove Dn.se (fix obsolete) Remove Valor Economico (fix obsolete) Fix Business-standard.com Fix El Mercurio @@ -1696,7 +1698,7 @@ Fix The Diplomat (magazine) Bugfix Le Dauphine (plus some French sites) * v2.1.6.0 (2021-04-11) -Add Dagens Industri (Sweden) +Add Di.se Add La Nouvelle Republique du Centre-Ouest (France) Add VeloNews Fix Business-standard.com (mobile to desktop) diff --git a/contentScript.js b/contentScript.js index 48dcaa9..de5f5e7 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1465,7 +1465,15 @@ else } else if (window.location.hostname.match(/\.(dk|fi|se)$/)) {//denmark/finland/sweden -if (matchDomain('etc.se')) { +if (matchDomain('dn.se')) { + let url = window.location.href; + getArchive(url, 'div.esi-paywall', '', 'div.article__premium-content', '', 'article > div[style="display:block;"]'); + let locked = document.querySelector('div.article__content--locked'); + if (locked) + locked.classList.remove('article__content--locked'); +} + +else if (matchDomain('etc.se')) { let paywall = document.querySelector('div.paywalled'); if (paywall) { paywall.removeAttribute('class'); diff --git a/contentScript_once_var.js b/contentScript_once_var.js index 8672a71..b41bb82 100644 --- a/contentScript_once_var.js +++ b/contentScript_once_var.js @@ -21,6 +21,19 @@ if (matchDomain(de_madsack_domains) || document.querySelector('head > link[href* } +if (matchDomain('dagsavisen.no')) { + function dagsavisen_main() { + for (let n = 0; n < 10; n++) { + window.setTimeout(function () { + if (window.Fusion) { + window.Fusion.globalContent.content_restrictions.content_code = 0; + } + }, n * 50); + } + } + insert_script(dagsavisen_main); +} + else if (matchDomain(['journaldemontreal.com', 'journaldequebec.com'])) { for (let n = 0; n < 10; n++) { window.setTimeout(function () { diff --git a/custom/manifest.json b/custom/manifest.json index 08acbec..286d77f 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.5.3.6" + "version": "3.5.3.7" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 96a215d..253083c 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -1,6 +1,6 @@ { "###_remove_sites": { - "cs_code": "bild.de, gp.se, group_haaretz, handelsblatt.com, politiken.dk, theinformation.com", + "cs_code": "bild.de, dn.se, gp.se, group_haaretz, handelsblatt.com, politiken.dk, theinformation.com", "domain": "###" }, "Abajournal.com": { @@ -79,6 +79,11 @@ "domain": "bt.no", "useragent": "facebookbot" }, + "Btc-echo.de": { + "allow_cookies": 1, + "domain": "btc-echo.de", + "ld_json_url": "div.btc-echo-plus-paywall|div.entry-content|1" + }, "Businessinsider.de": { "add_ext_link": "div.piano-article__paywall|div.piano-article__content", "add_ext_link_type": "google_search_tool", @@ -164,14 +169,7 @@ "allow_cookies": 1, "domain": "dn.no" }, - "Dn.se": { - "add_ext_link": "div.esi-paywall|div.article__content", - "add_ext_link_type": "archive.is", - "allow_cookies": 1, - "domain": "dn.se", - "ld_archive_is": "div.esi-paywall|div.article__content|article>div[style='display:block;']" - }, - "Edweek.org": { + "Edweek.org (not Market Brief)": { "allow_cookies": 1, "block_regex": "js\\.pelcro\\.com", "domain": "edweek.org" @@ -450,6 +448,11 @@ "domain": "mediapost.com", "ld_google_webcache": "div.modal|div#article_body" }, + "Medieninsider.com": { + "allow_cookies": 1, + "domain": "medieninsider.com", + "useragent": "googlebot" + }, "Medpagetoday.com": { "allow_cookies": 1, "domain": "medpagetoday.com", diff --git a/manifest.json b/manifest.json index 864673b..2abe154 100644 --- a/manifest.json +++ b/manifest.json @@ -187,6 +187,7 @@ "*://*.ctpost.com/*", "*://*.curbed.com/*", "*://*.cw.com.tw/*", + "*://*.dagsavisen.no/*", "*://*.dailyadvertiser.com.au/*", "*://*.dailyliberal.com.au/*", "*://*.dailypress.com/*", @@ -210,6 +211,7 @@ "*://*.diepresse.com/*", "*://*.digiday.com/*", "*://*.discovermagazine.com/*", + "*://*.dn.se/*", "*://*.doorbraak.be/*", "*://*.dvhn.nl/*", "*://*.eastbaytimes.com/*", @@ -843,5 +845,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.5.3.6" + "version": "3.5.3.7" } diff --git a/sites.js b/sites.js index 735a42a..42ebf1a 100644 --- a/sites.js +++ b/sites.js @@ -480,6 +480,15 @@ var defaultSites = { allow_cookies: 1, useragent: "googlebot" }, + "Dagens Nyheter (fetch from archive.is)": { + domain: "dn.se", + allow_cookies: 1, + cs_dompurify: 1 + }, + "Dagsavisen.no": { + domain: "dagsavisen.no", + allow_cookies: 1 + }, "De Limburger (fetch from archive.is)": { domain: "limburger.nl", allow_cookies: 1, @@ -3013,4 +3022,4 @@ var de_westfalen_medien_nofix_domains = ['muensterschezeitung.de', 'westfalen-bl var fr_groupe_ebra_nofix_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr']; 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 nofix_sites = ['11freunde.de', 'aamulehti.fi', 'abendblatt.de', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.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', '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', 'expresso.pt', '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', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', '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', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', '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', 'suedkurier.de', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'techcrunch.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', 'ynet.co.il', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains); +var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'abendblatt.de', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.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', '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', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'expresso.pt', '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', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', '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', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', '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', 'suedkurier.de', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'techcrunch.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', 'ynet.co.il', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains); diff --git a/sites_updated.json b/sites_updated.json index 26e00bf..fb4cfdb 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -18,6 +18,14 @@ "block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)", "upd_version": "3.2.7.1" }, + "Dn.se": { + "domain": "dn.se", + "allow_cookies": 1, + "add_ext_link": "div.esi-paywall|div.article__content", + "add_ext_link_type": "archive.is", + "ld_archive_is": "div.esi-paywall|div.article__premium-content|article>div[style='display:block;']", + "upd_version": "3.5.3.7" + }, "Die Zeit": { "domain": "zeit.de", "allow_cookies": 1,