mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 06:13:41 +02: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);
|
||||
}
|
||||
|
||||
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();
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
"*://*.thestar.com/*",
|
||||
"*://*.afr.com/*",
|
||||
"*://*.theglobeandmail.com/*",
|
||||
"*://*.scribd.com/*"
|
||||
"*://*.scribd.com/*",
|
||||
"*://*.technologyreview.com/*"
|
||||
],
|
||||
"js": ["contentScript.js"]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue