Fix Harvard Business Review (subscriber-only)

This commit is contained in:
magnolia1234 2023-10-15 17:21:48 +02:00
parent 6b8bf3e87f
commit 53c04189ce
4 changed files with 8 additions and 9 deletions

View file

@ -9,6 +9,7 @@ Remove Mediahuis Nederland Regional (fix obsolete)
Fix Belfast Telegraph/Independent.ie (images)
Fix BusinessPost.ie (js)
Fix Estadao.com.br (js)
Fix Harvard Business Review (subscriber-only)
Fix NyTeknik.se
Fix Tuttosport (image)
Fix Unherd (css)

View file

@ -3994,17 +3994,15 @@ else if (matchDomain('ftm.eu')) {
}
else if (matchDomain('hbr.org')) {
function hbr_main() {
window.top.postMessage({type: 'article-paywall:full-content'}, '*');
}
let popup = document.querySelector('.persistent-banner');
removeDOMElement(popup);
let paywall = document.querySelector('site-paywall');
if (paywall) {//legacy
if (paywall) {
removeDOMElement(paywall);
let intro = document.querySelector('.article-ideainbrief');
if (intro)
intro.removeAttribute('class');
let main_hidden = document.querySelector('div#main[style]');
if (main_hidden)
main_hidden.removeAttribute('style');
insert_script(hbr_main);
}
}

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.7.8"
"version": "3.3.7.9"
}

View file

@ -800,5 +800,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.7.8"
"version": "3.3.7.9"
}