mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Fix Los Angeles Times & San Diego Union-Tribune (amp)
This commit is contained in:
parent
33df454957
commit
c9fd5bcc4b
@ -8,6 +8,7 @@ Fix ABC.es (amp)
|
||||
Fix Fortune (amp)
|
||||
Fix Funke Mediengruppe (amp)
|
||||
Fix Lecho.be (separate from Groupe Rossel)
|
||||
Fix Los Angeles Times & San Diego Union-Tribune (amp)
|
||||
Fix Repubblica sites (no amp)
|
||||
Fix USA Today & Gannett Group (amp)
|
||||
|
||||
|
@ -2084,6 +2084,17 @@ else if (matchDomain('jpost.com')) {
|
||||
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')) {
|
||||
window.setTimeout(function () {
|
||||
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.')) {
|
||||
let div_hidden = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]');
|
||||
for (let elem of div_hidden)
|
||||
|
6
sites.js
6
sites.js
@ -655,7 +655,7 @@ var defaultSites = {
|
||||
},
|
||||
"Harvard Business Review": {
|
||||
domain: "hbr.org",
|
||||
block_regex: /\.tinypass\.com\//
|
||||
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
|
||||
},
|
||||
"Harvard Business Review China": {
|
||||
domain: "hbrchina.org",
|
||||
@ -914,7 +914,7 @@ var defaultSites = {
|
||||
},
|
||||
"Los Angeles Times": {
|
||||
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)": {
|
||||
domain: "###_de_madsack",
|
||||
@ -1208,7 +1208,7 @@ var defaultSites = {
|
||||
},
|
||||
"San Diego Union Tribune": {
|
||||
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": {
|
||||
domain: "sfchronicle.com",
|
||||
|
Loading…
Reference in New Issue
Block a user