From 364c07249e978e51e333c6ddb3db604a358e53ee Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 9 Mar 2021 13:17:29 +0100 Subject: [PATCH] Release v2.1.1.2 --- changelog.txt | 3 +++ contentScript.js | 5 ++--- manifest.json | 2 +- updates.json | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index 51457c9..9b2f5d2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,7 +2,10 @@ Changelog Bypass Paywalls Clean - Firefox Post-release + +*v2.1.1.2 (2021-03-09) Add Newsday (local USA) +Fix-update Gazet van Antwerpen (amo: remove external mediaplayer scripts) * v2.1.1.0 (2021-03-07) Add Atlantico (France) diff --git a/contentScript.js b/contentScript.js index b14d5e5..064ec7b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1566,7 +1566,7 @@ else if (matchDomain("gva.be")) { let json = JSON.parse(json_str); let premium = Object.values(json)[0]['premium']; if (json) { - let json_text = Object.values(json)[0]['body']['json']; + let json_text = Object.values(json)[0]['data']['article']['body']; let parser = new DOMParser(); let div_content = main_content.querySelector('div'); div_content.setAttribute('class', 'gva-6c6ea21_marginbottom5 gva-28c280e9_contentwrapper'); @@ -1599,8 +1599,7 @@ else if (matchDomain("gva.be")) { bullet_link.innerText = bullet_link.href; par_elem.appendChild(par_li); } - } - else if (key === 'streamone') { + } else if (key === 'streamone') { if (!streamone) { let streamone_script = document.createElement('script'); streamone_script.setAttribute('src', "https://shared.mediahuis.be/videoplayers/mediahuis/video-theoplayer.js?v=20201111T131002"); diff --git a/manifest.json b/manifest.json index 84e7fbc..93e7e11 100644 --- a/manifest.json +++ b/manifest.json @@ -485,5 +485,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.1.1.1" + "version": "2.1.1.2" } \ No newline at end of file diff --git a/updates.json b/updates.json index aad6265..ef48408 100644 --- a/updates.json +++ b/updates.json @@ -2,8 +2,8 @@ "addons": { "magnolia@12.34": { "updates": [ - { "version": "2.1.1.0", - "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-2.1.1.0.xpi" } + { "version": "2.1.1.2", + "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-2.1.1.2.xpi" } ] } }