From 6c965fff2152f483eb2b5b38ce4b86e67268501f Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 13 Nov 2020 16:32:33 +0100 Subject: [PATCH] Fix-update Gazet van Antwerpen (video/maps) --- changelog.txt | 1 + contentScript.js | 22 +++++++++++++++++++++- manifest.json | 18 +++++++++--------- 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/changelog.txt b/changelog.txt index d3af2cb..a38ecbc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add La Estrella de Valparaiso (Chile) Fix-update Folha de S. Paulo (MatherAnalytics) +Fix-update Gazet van Antwerpen (video/maps) Fix-update WSJ (mobile layout) Update custom sites: allow_cookies diff --git a/contentScript.js b/contentScript.js index 14ace3b..a687bde 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1449,6 +1449,9 @@ else if (matchDomain("gva.be")) { let div_content = main_content.querySelector('div'); div_content.setAttribute('class', 'gva-6c6ea21_marginbottom5 gva-28c280e9_contentwrapper'); let par_elem, par_key, par_li, par_html; + let head = document.querySelector('head'); + let streamone = false; + let flourish = false; for (let par of json_text) { for (let key in par) { par_elem = document.createElement('p'); @@ -1475,10 +1478,27 @@ else if (matchDomain("gva.be")) { par_elem.appendChild(par_li); } } else if (key === 'streamone') { - false; + if (!streamone) { + let streamone_script = document.createElement('script'); + streamone_script.setAttribute('src', "https://shared.mediahuis.be/videoplayers/mediahuis/video-theoplayer.js?v=20201111T131002"); + streamone_script.setAttribute('defer', true); + streamone_script.setAttribute('crossorigin', 'anonymous'); + if (head) + head.appendChild(streamone_script); + streamone = true; + } + par_html = parser.parseFromString('
' + par_key + '
', 'text/html'); diff --git a/manifest.json b/manifest.json index 4fb61bb..3565ba5 100644 --- a/manifest.json +++ b/manifest.json @@ -51,11 +51,13 @@ "*://*.atavist.com/*", "*://*.baltimoresun.com/*", "*://*.barrons.com/*", + "*://*.bd.nl/*", "*://*.belfasttelegraph.co.uk/*", "*://*.bendigoadvertiser.com.au/*", "*://*.bizjournals.com/*", "*://*.bloomberg.com/*", "*://*.bloombergquint.com/*", + "*://*.bndestem.nl/*", "*://*.bordermail.com.au/*", "*://*.bostonglobe.com/*", "*://*.brisbanetimes.com.au/*", @@ -87,13 +89,15 @@ "*://*.dailytelegraph.com.au/*", "*://*.darkreading.com/*", "*://*.demorgen.be/*", - "*://*.deutsche-wirtschafts-nachrichten.de/*", "*://*.denverpost.com/*", + "*://*.destentor.nl/*", + "*://*.deutsche-wirtschafts-nachrichten.de/*", "*://*.df.cl/*", "*://*.digiday.com/*", "*://*.dn.se/*", "*://*.dvhn.nl/*", "*://*.economist.com/*", + "*://*.ed.nl/*", "*://*.editorialedomani.it/*", "*://*.elcomercio.pe/*", "*://*.elmercurio.com/*", @@ -117,6 +121,7 @@ "*://*.ft.com/*", "*://*.ftm.nl/*", "*://*.geelongadvertiser.com.au/*", + "*://*.gelderlander.nl/*", "*://*.gelocal.it/*", "*://*.gestion.pe/*", "*://*.gladstoneobserver.com.au/*", @@ -217,6 +222,7 @@ "*://*.philosophynow.org/*", "*://*.portnews.com.au/*", "*://*.post-gazette.com/*", + "*://*.pzc.nl/*", "*://*.qt.com.au/*", "*://*.quora.com/*", "*://*.quotidiano.net/*", @@ -279,6 +285,7 @@ "*://*.towardsdatascience.com/*", "*://*.townsvillebulletin.com.au/*", "*://*.trouw.nl/*", + "*://*.tubantia.nl/*", "*://*.valeursactuelles.com/*", "*://*.vanityfair.com/*", "*://*.variety.com/*", @@ -330,17 +337,10 @@ "*://*.repstatic.it/*", "*://*.userzoom.com/*", "*://*.viralize.tv/*", - "*://*.bndestem.nl/*", - "*://*.bd.nl/*", - "*://*.ed.nl/*", - "*://*.gelderlander.nl/*", - "*://*.pzc.nl/*", - "*://*.destentor.nl/*", - "*://*.tubantia.nl/*", "storage", "tabs", "webRequest", "webRequestBlocking" ], - "version": "1.9.4.4" + "version": "1.9.4.5" } \ No newline at end of file