Fix NzHerald (xhr)

This commit is contained in:
magnolia1234 2023-11-28 17:48:53 +01:00
parent c8cc08bc39
commit bc890a1193
3 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,7 @@ Post-release
Add Ikz-online.de (Funke) Add Ikz-online.de (Funke)
Remove Braunschweiger-zeitung.de (Funke; fix obsolete) Remove Braunschweiger-zeitung.de (Funke; fix obsolete)
Fix Freitag.de (text-break) Fix Freitag.de (text-break)
Fix NzHerald (xhr)
* v3.4.4.0 (2023-11-26) * v3.4.4.0 (2023-11-26)
Add Freitag.de Add Freitag.de

View File

@ -100,6 +100,7 @@ function insert_script(func, insertAfterDom) {
script.setAttribute('id', 'bpc_script'); script.setAttribute('id', 'bpc_script');
script.appendChild(document.createTextNode('(' + func + ')();')); script.appendChild(document.createTextNode('(' + func + ')();'));
let insertAfter = insertAfterDom ? insertAfterDom : (document.body || document.head || document.documentElement); let insertAfter = insertAfterDom ? insertAfterDom : (document.body || document.head || document.documentElement);
insertAfter.appendChild(script); if (insertAfter)
insertAfter.appendChild(script);
} }
} }

View File

@ -1679,7 +1679,8 @@ var defaultSites = {
}, },
"New Zealand Herald": { "New Zealand Herald": {
domain: "nzherald.co.nz", domain: "nzherald.co.nz",
allow_cookies: 1 allow_cookies: 1,
block_regex: /\.nzherald\.co\.nz\/sales\/public\/v\d\/entitlements/
}, },
"Newsday": { "Newsday": {
domain: "newsday.com", domain: "newsday.com",