Fix for MIT Tech Review

Click the button to expand article and remove banner
This commit is contained in:
magnolia1234 2020-01-05 17:50:56 +01:00 committed by GitHub
parent cdaa4c20a5
commit 7ddfaf1087
2 changed files with 10 additions and 1 deletions

View file

@ -291,6 +291,14 @@ if (window.location.href.indexOf("scribd.com") !== -1) {
removeDOMElement(portal, page_module, promo, ad);
}
if (window.location.href.indexOf("technologyreview.com") !== -1) {
const read_story = document.querySelector('.storyExpanderButton');
if (read_story)
read_story.click();
const meter = document.querySelector('.meter');
removeDOMElement(meter);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();

View file

@ -31,7 +31,8 @@
"*://*.thestar.com/*",
"*://*.afr.com/*",
"*://*.theglobeandmail.com/*",
"*://*.scribd.com/*"
"*://*.scribd.com/*",
"*://*.technologyreview.com/*"
],
"js": ["contentScript.js"]
}