diff --git a/changelog.txt b/changelog.txt index 22a5e66..a0ac60e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release +Fix LesEchos.fr (json) Fix WaPo (images) Fix WSJ (timing) diff --git a/contentScript.js b/contentScript.js index c7f91b5..ce4aa05 100755 --- a/contentScript.js +++ b/contentScript.js @@ -947,12 +947,10 @@ else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) { let url = window.location.href; let html = document.documentElement.outerHTML; let state; - let split1 = html.split('window.__PRELOADED_STATE__=')[1]; + let split1 = html.split('window.__CONFIG__=')[1]; let split2 = split1.split('')[0].trim(); if (split2.includes('; window.__DATA__=')) { - state = split2.split('; window.__DATA__=')[0].trim(); - if (state.length < 200) - state = split2.split('; window.__DATA__=')[1].split('; window.__')[0].trim(); + state = split2.split('; window.__DATA__=')[1].split('; window.__')[0].trim(); } else state = split2.substr(0, split2.length - 1); try { @@ -1073,7 +1071,7 @@ else if (matchDomain('ilfattoquotidiano.it')) { hidden_content.setAttribute('style', 'display:block !important;'); let amp_ads = document.querySelectorAll('amp-ad, div#_4sVideoContainer'); removeDOMElement(...amp_ads); - } else { + } else if (url.split('?')[0].match(/\/\d{4}\/\d{2}\/\d{2}\//)) { let paywall = document.querySelector('div.read-more'); if (paywall) { removeDOMElement(paywall); diff --git a/custom/manifest.json b/custom/manifest.json index 9c9b5f8..600928d 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -39,5 +39,5 @@ "webRequestBlocking", "" ], - "version": "2.4.2.1" + "version": "2.4.2.2" } \ No newline at end of file diff --git a/manifest.json b/manifest.json index ca2d3b4..06f5fc2 100755 --- a/manifest.json +++ b/manifest.json @@ -544,5 +544,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.4.2.1" + "version": "2.4.2.2" } \ No newline at end of file