Fix Los Angeles Times & San Diego Union-Tribune (amp)
parent
d2098a2c3a
commit
cd4f6e92c8
|
@ -8,6 +8,7 @@ Fix ABC.es (amp)
|
||||||
Fix Fortune (amp)
|
Fix Fortune (amp)
|
||||||
Fix Funke Mediengruppe (amp)
|
Fix Funke Mediengruppe (amp)
|
||||||
Fix Lecho.be (separate from Groupe Rossel)
|
Fix Lecho.be (separate from Groupe Rossel)
|
||||||
|
Fix Los Angeles Times & San Diego Union-Tribune (amp)
|
||||||
Fix Repubblica sites (no amp)
|
Fix Repubblica sites (no amp)
|
||||||
Fix USA Today & Gannett Group (amp)
|
Fix USA Today & Gannett Group (amp)
|
||||||
|
|
||||||
|
|
|
@ -2084,6 +2084,17 @@ else if (matchDomain('jpost.com')) {
|
||||||
removeDOMElement(...premium_banners);
|
removeDOMElement(...premium_banners);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain(['latimes.com', 'sandiegouniontribune.com'])) {
|
||||||
|
if (window.location.search.startsWith('?_amp=true')) {
|
||||||
|
amp_unhide_subscr_section('amp-ad, [class*="-ad-wrapper"]');
|
||||||
|
} else {
|
||||||
|
window.setTimeout(function () {
|
||||||
|
let metering_bottompanel = document.querySelector('metering-bottompanel');
|
||||||
|
removeDOMElement(metering_bottompanel);
|
||||||
|
}, 500); // Delay (in milliseconds)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain('law360.com')) {
|
else if (matchDomain('law360.com')) {
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
let modal = document.querySelectorAll('div#NewsletterModal, div.modal-backdrop');
|
let modal = document.querySelectorAll('div#NewsletterModal, div.modal-backdrop');
|
||||||
|
@ -2333,13 +2344,6 @@ else if (matchDomain('qz.com')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('sandiegouniontribune.com')) {
|
|
||||||
window.setTimeout(function () {
|
|
||||||
let metering_bottompanel = document.querySelector('metering-bottompanel');
|
|
||||||
removeDOMElement(metering_bottompanel);
|
|
||||||
}, 500); // Delay (in milliseconds)
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (matchDomain('scmp.com') && window.location.href.includes('/amp.')) {
|
else if (matchDomain('scmp.com') && window.location.href.includes('/amp.')) {
|
||||||
let div_hidden = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]');
|
let div_hidden = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]');
|
||||||
for (let elem of div_hidden)
|
for (let elem of div_hidden)
|
||||||
|
|
6
sites.js
6
sites.js
|
@ -655,7 +655,7 @@ var defaultSites = {
|
||||||
},
|
},
|
||||||
"Harvard Business Review": {
|
"Harvard Business Review": {
|
||||||
domain: "hbr.org",
|
domain: "hbr.org",
|
||||||
block_regex: /\.tinypass\.com\//
|
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
|
||||||
},
|
},
|
||||||
"Harvard Business Review China": {
|
"Harvard Business Review China": {
|
||||||
domain: "hbrchina.org",
|
domain: "hbrchina.org",
|
||||||
|
@ -914,7 +914,7 @@ var defaultSites = {
|
||||||
},
|
},
|
||||||
"Los Angeles Times": {
|
"Los Angeles Times": {
|
||||||
domain: "latimes.com",
|
domain: "latimes.com",
|
||||||
block_regex: /metering\.platform\.latimes\.com\/v\d\/meter/
|
block_regex: /(metering\.platform\.latimes\.com\/v\d\/meter|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js)/
|
||||||
},
|
},
|
||||||
"Madsack Mediengruppe (Germany)": {
|
"Madsack Mediengruppe (Germany)": {
|
||||||
domain: "###_de_madsack",
|
domain: "###_de_madsack",
|
||||||
|
@ -1208,7 +1208,7 @@ var defaultSites = {
|
||||||
},
|
},
|
||||||
"San Diego Union Tribune": {
|
"San Diego Union Tribune": {
|
||||||
domain: "sandiegouniontribune.com",
|
domain: "sandiegouniontribune.com",
|
||||||
block_regex: /metering\.platform\.sandiegouniontribune\.com\/v\d\/meter/
|
block_regex: /(metering\.platform\.sandiegouniontribune\.com\/v\d\/meter|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js)/
|
||||||
},
|
},
|
||||||
"San Francisco Chronicle": {
|
"San Francisco Chronicle": {
|
||||||
domain: "sfchronicle.com",
|
domain: "sfchronicle.com",
|
||||||
|
|
Loading…
Reference in New Issue