Fix Hbr.org banner

master
frantzkamus 2019-12-31 16:27:30 +01:00 committed by magnolia1234
parent fb94c87c8b
commit 4c647ff484
1 changed files with 6 additions and 2 deletions

View File

@ -281,8 +281,7 @@ if (window.location.href.indexOf("technologyreview.com") !== -1) {
if (read_story)
read_story.click();
const meter = document.querySelector('.meter');
if (meter)
removeDOMElement(meter);
removeDOMElement(meter);
}
if (window.location.href.indexOf("haaretz.com") !== -1) {
@ -295,6 +294,11 @@ if (window.location.href.indexOf("asia.nikkei.com") !== -1) {
removeDOMElement(popup);
}
if (window.location.href.indexOf("hbr.org") !== -1) {
const popup = document.querySelector('.persistent-banner');
removeDOMElement(popup);
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {