Fix for MIT Tech Review

Click the buttons to expand article and close banner.
This commit is contained in:
frantzkamus 2019-12-29 23:04:20 +01:00 committed by magnolia1234
parent cf22816309
commit f9a0b7407d
2 changed files with 10 additions and 1 deletions

View File

@ -35,7 +35,7 @@
* Every time you open Chrome it may warn you about running extensions in developer mode, just click 🗙 to keep the extension enabled.
* You will be logged out for any site you have checked.
* This extension works best along side the adblocker [uBlock Origin](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en).
* With uBlock installed, [subscribe](https://www.fanboy.co.nz/filters.html) to the Fanboy's Enhanced Trackers List to block scripts from various paywall services.
* With uBlock installed, [subscribe](https://www.fanboy.co.nz/filters.html) to the Fanboy's Enhanced Tracking List to block scripts from various paywall services (click `Add Enhanced Tracking list`).
### Bypass the following sites' paywalls with this extension

View File

@ -275,6 +275,15 @@ if (window.location.href.indexOf("thetimes.co.uk") !== -1) {
removeDOMElement(block);
}
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');
if (meter)
removeDOMElement(meter);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element)