Fix MarketWatch (amp)

merge-requests/2/head
magnolia1234 3 years ago
parent cc7ccd2347
commit 560d8168af

@ -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)/,

@ -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)

@ -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);

@ -565,5 +565,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.3.8.4"
"version": "2.3.8.5"
}
Loading…
Cancel
Save