Fix MarketWatch (amp)

This commit is contained in:
magnolia1234 2021-10-09 20:24:05 +02:00
parent 4d30eefeb5
commit b20ec1bf78
5 changed files with 11 additions and 3 deletions

View File

@ -356,7 +356,7 @@ var blockedRegexes = {
'loeildelaphotographie.com': /cdn\.loeildelaphotographie\.com\/wp-content\/.+\/hague-child\/js\/script-.+\.js/,
'lopinion.fr': /\.poool\.fr\//,
'lrb.co.uk': /\.tinypass\.com\//,
'marketwatch.com': /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
'marketwatch.com': /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|subscriptions)-.+\.js)/,
'mercuriovalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/,
'mexiconewsdaily.com': /\.mexiconewsdaily\.com\/c\/assets\/pigeon\.js/,
'nation.africa': /(\.evolok\.net\/|nation\.africa\/resource\/themes\/nation-.+\/js\/.+\.js)/,

View File

@ -5,6 +5,7 @@ Post-release
Add Lee Enterprises Group (local USA)
Fix Chronicle of Higher Education
Fix El Pais (amp/videos)
Fix MarketWatch (amp)
Fix Times Higher Education
Fix WSJ (Chinese)
Update block general paywall script (AzureEdge)

View File

@ -2138,6 +2138,13 @@ else if (matchDomain('marketwatch.com')) {
let container_sponsored = document.querySelector('div.container--sponsored');
let amp_ads = document.querySelectorAll('.display-ad');
removeDOMElement(meter, container_sponsored, ...amp_ads);
let preview = document.querySelector('div[subscriptions-section="content-not-granted"]');
if (preview) {
removeDOMElement(preview);
let subscr_section = document.querySelector('section[subscriptions-section="content"]');
if (subscr_section)
subscr_section.removeAttribute('subscriptions-section');
}
}
let ads = document.querySelectorAll('div.element--ad, div.j-ad');
removeDOMElement(...ads);

View File

@ -39,5 +39,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.3.8.4"
"version": "2.3.8.5"
}

View File

@ -553,5 +553,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.3.8.4"
"version": "2.3.8.5"
}