mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:17:47 +01:00
Fix for MIT Tech Review
Click the button to expand article and remove banner
This commit is contained in:
parent
cdaa4c20a5
commit
7ddfaf1087
2 changed files with 10 additions and 1 deletions
|
@ -291,6 +291,14 @@ if (window.location.href.indexOf("scribd.com") !== -1) {
|
||||||
removeDOMElement(portal, page_module, promo, ad);
|
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) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
if (element) element.remove();
|
if (element) element.remove();
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
"*://*.thestar.com/*",
|
"*://*.thestar.com/*",
|
||||||
"*://*.afr.com/*",
|
"*://*.afr.com/*",
|
||||||
"*://*.theglobeandmail.com/*",
|
"*://*.theglobeandmail.com/*",
|
||||||
"*://*.scribd.com/*"
|
"*://*.scribd.com/*",
|
||||||
|
"*://*.technologyreview.com/*"
|
||||||
],
|
],
|
||||||
"js": ["contentScript.js"]
|
"js": ["contentScript.js"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue