Fix Billboard, Digiday & Newsday (amp)

This commit is contained in:
magnolia1234 2021-12-11 19:12:13 +01:00
parent 7158855c1b
commit a80f29849b
3 changed files with 25 additions and 5 deletions

View File

@ -6,8 +6,8 @@ Add Koelner Stadt-Anzeiger & Koelnische Rundschau
Add The (New Orleans) Advocate
Remove Caixin Global (obsolete)
Fix ABC.es (amp)
Fix Billboard, Digiday, Fortune & Newsday (amp)
Fix Bloomberg Quint (bq blue)
Fix Fortune (amp)
Fix Funke Mediengruppe (amp)
Fix Inkl (images)
Fix Lecho.be (separate from Groupe Rossel)

View File

@ -1628,6 +1628,12 @@ else if (matchDomain('barrons.com')) {
}
}
else if (matchDomain('billboard.com')) {
if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_subscr_section('amp-ad, amp-embed');
}
}
else if (matchDomain('bloomberg.com')) {
function bloomberg_noscroll(node) {
node.removeAttribute('data-paywall-overlay-status');
@ -1774,6 +1780,12 @@ else if (matchDomain('csmonitor.com')) {
removeDOMElement(paywall);
}
else if (matchDomain('digiday.com')) {
if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_access_hide('="NOT p.showPageviewExpired AND NOT p.showPayWall"', '', 'amp-ad, .advertisement, .ad-wrapper');
}
}
else if (matchDomain('discovermagazine.com')) {
window.setTimeout(function () {
let mammoth = document.querySelector('.iXVGnF');
@ -2204,6 +2216,14 @@ else if (matchDomain('newrepublic.com')) {
removeDOMElement(pw_popups, ...ads);
}
else if (matchDomain('newsday.com')) {
if (window.location.pathname.startsWith('/amp/')) {
console.log('newsday');
amp_unhide_access_hide('="AccessLevel = \'Full Content Access\' OR Error = true"', '="AccessLevel = \'Page View Limit\'"');
}
}
else if (matchDomain('newyorker.com') && window.location.pathname.length > 1) {
if (window.location.pathname.endsWith('/amp')) {
amp_unhide_subscr_section('.ad');

View File

@ -184,7 +184,7 @@ var defaultSites = {
"Billboard": {
domain: "billboard.com",
allow_cookies: 1,
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/)/
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|subscriptions)-.+\.js)/
},
"Bloomberg": {
domain: "bloomberg.com",
@ -202,7 +202,7 @@ var defaultSites = {
},
"Business Insider": {
domain: "businessinsider.com",
block_regex: /\.tinypass\.com\//
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
},
"Business Standard": {
domain: "business-standard.com",
@ -326,7 +326,7 @@ var defaultSites = {
},
"Digiday": {
domain: "digiday.com",
block_regex: /cdn.\.tinypass\.com\//
block_regex: /(cdn.\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
},
"Discover Magazine": {
domain: "discovermagazine.com"
@ -1072,7 +1072,7 @@ var defaultSites = {
"Newsday": {
domain: "newsday.com",
allow_cookies: 1,
block_regex: /(loader-cdn\.azureedge\.net\/|js\.matheranalytics\.com\/)/
block_regex: /(loader-cdn\.azureedge\.net\/|js\.matheranalytics\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
},
"Newsweek": {
domain: "newsweek.com",