mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 04:01:58 +01:00
Fix La Croix
This commit is contained in:
parent
d7ba21c92b
commit
90a97d26a8
5 changed files with 10 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -730,5 +730,5 @@
|
|||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.9.2.7"
|
||||
"version": "2.9.2.8"
|
||||
}
|
||||
|
|
2
sites.js
2
sites.js
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue