Fix The Boston Globe, The Dallas Morning News & Vanity Fair (amp)

master
magnolia1234 2021-12-11 19:46:12 +01:00
parent 0ab762933f
commit b2d426a5b9
3 changed files with 29 additions and 7 deletions

View File

@ -6,14 +6,20 @@ 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 Billboard (amp)
Fix Digiday (amp)
Fix Fortune (amp)
Fix Bloomberg Quint (bq blue)
Fix Funke Mediengruppe (amp)
Fix Inkl (images)
Fix Lecho.be (separate from Groupe Rossel)
Fix Los Angeles Times & San Diego Union-Tribune (amp)
Fix Newsday (amp)
Fix Repubblica sites (no amp)
Fix The Boston Globe (amp)
Fix The Dallas Morning News (amp)
Fix USA Today & Gannett Group (amp)
Fix Vanity Fair (amp)
* v2.4.6.0 (2021-12-05)
Add Artnet

View File

@ -1710,9 +1710,12 @@ else if (matchDomain('bloombergquint.com')) {
}
else if (matchDomain('bostonglobe.com')) {
let ads = document.querySelectorAll('div.arc_ad');
for (let ad of ads)
ad.style = 'display:none';
if (window.location.search.startsWith('?outputType=amp')) {
amp_unhide_subscr_section();
} else {
let ads = document.querySelectorAll('div.arc_ad');
removeDOMElement(...ads);
}
}
else if (matchDomain('business-standard.com')) {
@ -1780,6 +1783,12 @@ else if (matchDomain('csmonitor.com')) {
removeDOMElement(paywall);
}
else if (matchDomain('dallasnews.com')) {
if (window.location.search.startsWith('?outputType=amp')) {
amp_unhide_subscr_section('amp-ad, amp-embed');
}
}
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');
@ -2774,6 +2783,12 @@ else if (matchDomain('usatoday.com')) {
}
}
else if (matchDomain('vanityfair.com')) {
if (window.location.pathname.endsWith('/amp')) {
amp_unhide_subscr_section();
}
}
else if (matchDomain('velonews.com')) {
let paywall = document.querySelector('div.o-membership-overlay');
if (paywall) {

View File

@ -1366,7 +1366,7 @@ var defaultSites = {
"The Boston Globe": {
domain: "bostonglobe.com",
allow_cookies: 1,
block_regex: /(\.blueconic\.net\/|meter\.bostonglobe\.com\/js\/)/
block_regex: /(\.blueconic\.net\/|meter\.bostonglobe\.com\/js\/|cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|subscriptions)-.+\.js)/
},
"The Business Journals": {
domain: "bizjournals.com",
@ -1387,7 +1387,7 @@ var defaultSites = {
"The Dallas Morning News": {
domain: "dallasnews.com",
allow_cookies: 1,
block_regex: /(\.blueconic\.net\/|js\.matheranalytics\.com\/)/
block_regex: /(\.blueconic\.net\/|js\.matheranalytics\.com\/|cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|subscriptions)-.+\.js)/
},
"The Diplomat": {
domain: "thediplomat.com"
@ -1626,7 +1626,8 @@ var defaultSites = {
block_regex: /\.qiota\.com\//
},
"Vanity Fair": {
domain: "vanityfair.com"
domain: "vanityfair.com",
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(ad|subscriptions)-.+\.js/
},
"Variety": {
domain: "variety.com",