diff --git a/changelog.txt b/changelog.txt index 28c6ec7..200f016 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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) diff --git a/contentScript.js b/contentScript.js index b3401eb..fb1fddb 100755 --- a/contentScript.js +++ b/contentScript.js @@ -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'); diff --git a/sites.js b/sites.js index 2d35924..af58367 100755 --- a/sites.js +++ b/sites.js @@ -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",