Fix La Croix

This commit is contained in:
magnolia1234 2022-11-11 07:26:34 +01:00
parent d7ba21c92b
commit 90a97d26a8
5 changed files with 10 additions and 5 deletions

View file

@ -9,6 +9,7 @@ Add The New York Post
Remove Dn.no (fix obsolete)
Fix Cmjornal.pt
Fix Koelner Stadt-Anzeiger & Koelnische Rundschau
Fix La Croix
Fix NHST Media Group
Fix Tagesspiegel.de (link to archive.is)
Fix for Kiwi Browser/Android (Chrome-synch)

View file

@ -1301,9 +1301,8 @@ else if (matchDomain('journaldunet.com')) {
else if (matchDomain('la-croix.com')) {
let url = window.location.href;
if (!url.includes('la-croix.com/amp/')) {
let hidden_images = document.querySelectorAll('source[srcset]');
for (let elem of hidden_images)
elem.removeAttribute('srcset');
let ads = document.querySelectorAll('div[class^="ads-wrapper-"]');
removeDOMElement(...ads);
} else {
let paywall_block = document.querySelector('#paywall_block');
let amp_ads = document.querySelectorAll('amp-ad, amp-embed');

View file

@ -730,5 +730,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.9.2.7"
"version": "2.9.2.8"
}

View file

@ -1023,7 +1023,7 @@ var defaultSites = {
"La Croix": {
domain: "la-croix.com",
allow_cookies: 1,
block_regex: /(\.la-croix\.com\/build\/lacroix\/article.+\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
block_regex: /(\.la-croix\.com\/build\/.+\/paywall.+\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
},
"La Gazzetta dello Sport": {
domain: "gazzetta.it",

View file

@ -5,6 +5,11 @@
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(subscriptions|consent)-.+\\.js",
"amp_unhide": 1
},
"La Croix": {
"domain": "la-croix.com",
"allow_cookies": 1,
"block_regex": "(\\.la-croix\\.com\\/build\\/.+\\/paywall.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)"
},
"Mediapart.fr": {
"domain": "mediapart.fr",
"allow_cookies": 1,