Fix Harvard Business Review (subscriber-only)

merge-requests/16/head
magnolia1234 9 months ago
parent 6b8bf3e87f
commit 53c04189ce

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

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

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

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

Loading…
Cancel
Save