Fix-update Gazet van Antwerpen (video/maps)

This commit is contained in:
magnolia1234 2020-11-13 16:30:58 +01:00
parent 2aac8bc143
commit f33524fb50
4 changed files with 32 additions and 11 deletions

View File

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome
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

@ -38,11 +38,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/*",
@ -74,13 +76,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/*",
@ -104,6 +108,7 @@
"*://*.ft.com/*",
"*://*.ftm.nl/*",
"*://*.geelongadvertiser.com.au/*",
"*://*.gelderlander.nl/*",
"*://*.gelocal.it/*",
"*://*.gestion.pe/*",
"*://*.gladstoneobserver.com.au/*",
@ -204,6 +209,7 @@
"*://*.philosophynow.org/*",
"*://*.portnews.com.au/*",
"*://*.post-gazette.com/*",
"*://*.pzc.nl/*",
"*://*.qt.com.au/*",
"*://*.quora.com/*",
"*://*.quotidiano.net/*",
@ -266,6 +272,7 @@
"*://*.towardsdatascience.com/*",
"*://*.townsvillebulletin.com.au/*",
"*://*.trouw.nl/*",
"*://*.tubantia.nl/*",
"*://*.valeursactuelles.com/*",
"*://*.vanityfair.com/*",
"*://*.variety.com/*",
@ -317,17 +324,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"
}

View File

@ -16,7 +16,7 @@
</style>
</head>
<body>
<div style="width:280px"><strong>Bypass Paywalls Clean <span id="version"></span></strong><span id="site_switch_span">&nbsp;&nbsp;</span></div>
<div style="width:290px"><strong>Bypass Paywalls Clean <span id="version"></span></strong><span id="site_switch_span">&nbsp;&nbsp;</span></div>
<div><a href="options.html" style="color:black" target="_blank">Options</a> |
<a href="options_custom.html" style="color:black" target="_blank">Custom</a> |
<a href="https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/src/master/README.md" style="color:black" target="_blank">BitBucket</a></div>