Fix Automobilwoche.de (js)

This commit is contained in:
magnolia1234 2023-12-15 09:33:09 +01:00
parent 1298f30a4f
commit d99bbcbc38
7 changed files with 36 additions and 5 deletions

View file

@ -28,7 +28,6 @@ var restrictions = {
'elespanol.com': /^((?!\/cronicaglobal\.elespanol\.com\/).)*$/,
'espn.com': /^((?!espn\.com\/watch).)*$/,
'esquire.com': /^((?!\/classic\.esquire\.com\/).)*$/,
'faz.net': /^((?!\/zeitung\.faz\.net\/).)*$/,
'foreignaffairs.com': /^((?!\/reader\.foreignaffairs\.com\/).)*$/,
'ft.com': /^((?!\/cn\.ft\.com\/).)*$/,
'hilltimes.com': /^((?!\.hilltimes\.com\/slideshow\/).)*$/,

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Fix Automobilwoche.de (js)
* v3.4.7.0 (2023-12-14)
Add Die Presse (at)

View file

@ -660,6 +660,19 @@ else if (matchDomain('augsburger-allgemeine.de')) {
}
}
else if (matchDomain('automobilwoche.de')) {
let body_hidden = document.querySelector('body[class]');
if (body_hidden)
body_hidden.removeAttribute('class');
let lazy_images = document.querySelectorAll('img.lazy[data-src]');
for (let elem of lazy_images) {
elem.src = elem.getAttribute('data-src');
elem.removeAttribute('class');
}
let lazy_sources = document.querySelectorAll('source[srcset^="data:image"]');
removeDOMElement(...lazy_sources);
}
else if (matchDomain(['beobachter.ch', 'handelszeitung.ch'])) {
let paywall = document.querySelector('div#piano-inlined');
if (paywall && dompurify_loaded) {
@ -832,7 +845,19 @@ else if (matchDomain('diepresse.com')) {
}
else if (matchDomain('faz.net')) {
if (!matchDomain('zeitung.faz.net')) {
if (matchDomain('zeitung.faz.net')) {// legacy
let paywall_z = document.querySelector('div.c-red-carpet');
if (paywall_z) {
removeDOMElement(paywall_z);
let og_url = document.querySelector('head > meta[property="og:url"][content]');
if (og_url)
window.location.href = og_url.content;
else
header_nofix(document.querySelector('div.article__text'));
}
let sticky_advt = document.querySelector('div.sticky-advt');
removeDOMElement(sticky_advt);
} else {
let paywall = document.querySelector('#paywall-form-container-outer, section.atc-ContainerPaywall');
if (paywall) {
removeDOMElement(paywall);

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.4.7.0"
"version": "3.4.7.1"
}

View file

@ -822,5 +822,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.4.7.0"
"version": "3.4.7.1"
}

View file

@ -197,7 +197,7 @@ var defaultSites = {
"Automobilwoche": {
domain: "automobilwoche.de",
allow_cookies: 1,
block_regex: /\.automobilwoche\.de\/sites\/camw\/files\/js\/js_wB7.+\.js/
block_regex: /\.automobilwoche\.de\/sites\/camw\/files\/js\/js_.+\.js/
},
"AutoPlus.fr": {
domain: "autoplus.fr",

View file

@ -1,4 +1,10 @@
{
"Automobilwoche": {
"domain": "automobilwoche.de",
"allow_cookies": 1,
"block_regex": "\\.automobilwoche\\.de\\/sites\\/camw\\/files\\/js\\/js_8J_.+\\.js",
"upd_version": "3.4.7.1"
},
"Bloomberg": {
"domain": "bloomberg.com",
"allow_cookies": 1,