mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:04:16 +01:00
Fix-update MIT Technology Review
This commit is contained in:
parent
1f3bd78395
commit
29e7d83a84
2 changed files with 14 additions and 5 deletions
|
@ -203,6 +203,7 @@ var blockedRegexes = {
|
||||||
'sloanreview.mit.edu': /(.+\.tinypass\.com\/.+|.+\.netdna-ssl\.com\/wp-content\/themes\/smr\/assets\/js\/libs\/welcome-ad\.js)/,
|
'sloanreview.mit.edu': /(.+\.tinypass\.com\/.+|.+\.netdna-ssl\.com\/wp-content\/themes\/smr\/assets\/js\/libs\/welcome-ad\.js)/,
|
||||||
'spectator.co.uk': /.+\.tinypass\.com\/.+/,
|
'spectator.co.uk': /.+\.tinypass\.com\/.+/,
|
||||||
'spectator.com.au': /.+\.tinypass\.com\/.+/,
|
'spectator.com.au': /.+\.tinypass\.com\/.+/,
|
||||||
|
'technologyreview.com': /.+\.blueconic\.net\/.+/,
|
||||||
'telegraph.co.uk': /.+\.tinypass\.com\/.+/,
|
'telegraph.co.uk': /.+\.tinypass\.com\/.+/,
|
||||||
'thedailybeast.com': /.+\.tinypass\.com\/.+/,
|
'thedailybeast.com': /.+\.tinypass\.com\/.+/,
|
||||||
'thenation.com': /.+\.tinypass\.com\/.+/,
|
'thenation.com': /.+\.tinypass\.com\/.+/,
|
||||||
|
|
|
@ -346,11 +346,14 @@ else if (matchDomain("thetimes.co.uk")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain("technologyreview.com")) {
|
else if (matchDomain("technologyreview.com")) {
|
||||||
const read_story = document.querySelector('.storyExpanderButton');
|
window.setTimeout(function () {
|
||||||
if (read_story)
|
let body_obscured = document.querySelector('body[class*="body__obscureContent"]');
|
||||||
read_story.click();
|
if (body_obscured)
|
||||||
const meter = document.querySelector('.meter');
|
removeClassesByPrefix(body_obscured, 'body__obscureContent');
|
||||||
removeDOMElement(meter);
|
let overlay = document.querySelector('div[class*="overlayFooter__wrapper"]');
|
||||||
|
if (overlay)
|
||||||
|
overlay.setAttribute('style', 'display:none');
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain("asia.nikkei.com")) {
|
else if (matchDomain("asia.nikkei.com")) {
|
||||||
|
@ -1022,6 +1025,11 @@ else if (matchDomain("mercuriovalpo.cl")) {
|
||||||
body_modal.classList.remove('modal-open');
|
body_modal.classList.remove('modal-open');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain("discovermagazine.com")) {
|
||||||
|
let banner = document.querySelector('div.hWOjDZ, div.qa7yll-1');
|
||||||
|
removeDOMElement(banner);
|
||||||
|
}
|
||||||
|
|
||||||
// General Functions
|
// General Functions
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
|
|
Loading…
Reference in a new issue