Fix-update Gazet van Antwerpen (video/maps)

This commit is contained in:
magnolia1234 2020-11-13 16:32:33 +01:00
parent 2c9951c991
commit 6c965fff21
3 changed files with 31 additions and 10 deletions

View file

@ -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

View file

@ -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('<div id="json_id"><div class="gva-6c6ea21_marginbottom5 gva-28c280e9_contentwrapper"><div class="gva-6c6ea21_marginbottom4"><div class="gva-6c6ea21_marginbottom0"><div class="gva-e5b9f66a_root" data-testid="embed-video"><svg class="gva-e5b9f66a_placeholder" viewBox="0 0 16 9" aria-hidden="true"></svg><div><div id="video-player-' + par_key.id + '" style="width:100%;" data-video-embed-id="' + par_key.id + '" data-video-target-id="video-player-' + par_key.id + '" data-video-brand="gva" class="js-theoplayer-placeholder"></div></div></div></div></div>', 'text/html');
par_elem = par_html.querySelector('div');
} else if (key === 'legacy-ml') {
par_html = parser.parseFromString(par_key, 'text/html');
par_elem = par_html.querySelector('div');
if (!flourish && par_key.includes('flourish.studio')) {
let flourish_script = document.createElement('script');
flourish_script.setAttribute('src', "https://public.flourish.studio/resources/embed.js");
if (head)
head.appendChild(flourish_script);
flourish = true;
}
} else {
console.log(key + ': ' + par_key);
par_html = parser.parseFromString('<p>' + par_key + '</p>', 'text/html');

View file

@ -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"
}