diff --git a/changelog.txt b/changelog.txt index ea2eb4b..da5d8ab 100644 --- a/changelog.txt +++ b/changelog.txt @@ -50,7 +50,7 @@ Add general paywall-script Cxense * v1.8.3.0 (2020-08-30) Add Chronicle of Higher Education Add Diario Financiero (Chile) -Add El Mercurio de Valparaíso (Chile) +Add El Mercurio de Valparaiso (Chile) Fix-update MIT Technology Review Remove copy-notice in copied text of Financial Times (ft.com) Update show options on update (now optional) @@ -80,7 +80,7 @@ Update installation instructions Add CharlieHebdo.fr Add La Segunda (Chile) Add LeSoir.be -Add Süddeutsche Zeitung (amp for plus) +Add Sueddeutsche Zeitung (amp for plus) Fix-update elMercurio Legal (Chile) Fix-update Fd.nl (modal/newsletter query string) Fix-update Inkl (cookies) @@ -90,7 +90,7 @@ Fix-update LesEchos.fr (lp-version) * v1.7.9.0 (2020-07-15) Fix-update Clarin (block MatherAnalytics) Fix-update El Mercurio (Chile) -Fix-update Neue Zürcher Zeitung +Fix-update Neue Zuercher Zeitung Fix-update NY Times (incognito mode) Fix-update The Hindu (cookies) Fix-update ValeursActuelles.fr (Qiota) @@ -194,7 +194,7 @@ Maintenance Ad.nl (regional) Sort-button custom sites * v1.7.0.2 (2020-04-05) -Add Gestión (Peru) & fix El Comercio +Add Gestion (Peru) & fix El Comercio Add LeScienze.it Add Science & Vie Fix Barron's links to sign in/read more articles @@ -208,7 +208,7 @@ Fix-update Telegraaf.nl (FF meta-refresh) Add El Comercio (Peru) Add L'Opinion.fr Add LiveMint (India) -Add Neue Zürcher Zeitung +Add Neue Zuercher Zeitung Add The New Republic Remove ET Prime (obsolete) Fix Telegraaf.nl @@ -266,7 +266,7 @@ Update Options - new release check * v1.6.4.4 (2020-02-20) Add Australian Community Media daily newspapers -Add Clarín (Argentina) +Add Clarin (Argentina) Add WAtoday (Australia) Fix-update TheNation paywall-script block Refresh tab after saved options diff --git a/contentScript.js b/contentScript.js index 5a2cbe7..bb6e07e 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1,4 +1,4 @@ -"use strict"; +//"use strict"; var ext_api = (typeof browser === 'object') ? browser : chrome; var domain; @@ -940,7 +940,7 @@ else if (matchDomain("noordhollandsdagblad.nl")) { if (auth_body_par_count.length < 2) { let url = window.location.href; let html = document.documentElement.outerHTML; - let split1 = html.split('window["__PRELOADED_STATE_GRAPH__')[1]; + let split1 = html.split('window["__PRELOADED_STATE_GRAPH__')[1].split(/=(.+)/)[1]; let split2 = split1.split('')[0].trim(); let split3 = split2.split('"body":')[1]; let state = split3.split('},"')[0] + '}'; @@ -948,7 +948,7 @@ else if (matchDomain("noordhollandsdagblad.nl")) { let data = JSON.parse(state); let article = data.json; auth_body.innerHTML = ''; - let par_html, par_dom, par_elem, par_div; + let par_html, par_dom, par_elem, par_div, par_key; let parser = new DOMParser(); for (let par of article) { for (let key in par) { diff --git a/options.html b/options.html index a60046b..c39f24e 100644 --- a/options.html +++ b/options.html @@ -15,7 +15,7 @@