Fix Automobilwoche

This commit is contained in:
magnolia1234 2022-06-28 17:48:17 +02:00
parent 75fe7cb022
commit 24835e5e97
4 changed files with 17 additions and 1 deletions

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add BQ Prime (former Bloomberg Quint)
Remove Deutsche Wirtschafts Nachrichten (fix obsolete)
Fix Automobilwoche
Fix Financial Times (cookie-banner)
Fix Groupe SudOuest.fr
Fix Knack.be & LeVif.be

View file

@ -446,6 +446,16 @@ else if (matchDomain('augsburger-allgemeine.de')) {
}
}
else if (matchDomain('automobilwoche.de')) {
let lazy_images = document.querySelectorAll('img.lazy[data-src]');
for (let lazy_image of lazy_images) {
lazy_image.src = lazy_image.getAttribute('data-src');
lazy_image.removeAttribute('class');
}
let lazy_sources = document.querySelectorAll('source[srcset^="data:image"]');
removeDOMElement(...lazy_sources);
}
else if (matchDomain('berliner-zeitung.de')) {
let url = window.location.href;
let paywall = document.querySelector('.paywall-dialog-box');

View file

@ -166,7 +166,7 @@ var defaultSites = {
"Automobilwoche": {
domain: "automobilwoche.de",
allow_cookies: 1,
block_regex: /\.amazonaws\.com\/s3fs-public\/js\/js_.+\.js/
block_regex: /\.automobilwoche\.de\/s3fs-public\/js\/js_.+\.js/
},
"Badische Neueste Nachrichten": {
allow_cookies: 1,

View file

@ -3,6 +3,11 @@
"domain": "artforum.com",
"new_site": 1
},
"Automobilwoche": {
"domain": "automobilwoche.de",
"allow_cookies": 1,
"block_regex": "\\.automobilwoche\\.de\\/s3fs-public\\/js\\/js_.+\\.js"
},
"BQ Prime": {
"domain": "bqprime.com",
"allow_cookies": 1,