Fix Sciences et Avenir.fr

merge-requests/14/head
magnolia1234 1 year ago
parent 479bbad29e
commit 64b0fde530

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Fix Sciences et Avenir.fr
* v3.0.9.0 (2023-03-12)
Add Medienhaus Aachen

@ -1388,12 +1388,15 @@ else if (matchDomain('autoplus.fr')) {
removeDOMElement(...ads);
}
else if (matchDomain('challenges.fr')) {
else if (matchDomain(['challenges.fr', 'sciencesetavenir.fr'])) {
if (window.location.pathname.endsWith('.amp')) {
amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"');
} else {
let amorce = document.querySelector('.user-paying-amorce');
hideDOMElement(amorce);
let amorce = document.querySelector('.amorce');
if (matchDomain('sciencesetavenir.fr'))
hideDOMElement(amorce);
else if (amorce)
amorce.classList.remove('amorce');
let content = document.querySelectorAll('.user-paying-content');
for (let elem of content) {
elem.classList.remove('user-paying-content');
@ -1401,6 +1404,8 @@ else if (matchDomain('challenges.fr')) {
}
let paywall = document.querySelector('.temp-paywall');
removeDOMElement(paywall);
let ads = document.querySelectorAll('div[class^="pub-container"], div[id^="moneytag-"]');
hideDOMElement(...ads);
}
}

@ -3,7 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
if (matchDomain('gitlab.com')) {
window.setTimeout(function () {
let bio = document.querySelector('div.profile-user-bio');
let bio = document.querySelector('p.profile-user-bio');
if (bio) {
let split = bio.innerText.split(/(https:[\w\-/.]+)|\|/g).filter(x => x && x.trim());
bio.innerText = '';

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.0.9.0"
"version": "3.0.9.1"
}

@ -737,5 +737,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.9.0"
"version": "3.0.9.1"
}

@ -1808,7 +1808,7 @@ var defaultSites = {
},
"The Atlantic": {
domain: "theatlantic.com",
block_regex: /cdn\.theatlantic\.com\/_next\/static\/chunks\/[5-7].+\.js/,
block_regex: /cdn\.theatlantic\.com\/_next\/static\/chunks\/pages\/.+\/archive\//,
remove_cookies_select_drop: ["articleViews"]
},
"The Australian Financial Review": {

@ -47,6 +47,11 @@
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
"amp_redirect": "div[data-testid='paywall-container'], div[class^='Paywall_paywall_']"
},
"Sciences et Avenir": {
"domain": "sciencesetavenir.fr",
"block_regex": "(\\.poool\\.fr\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
"cs_code": "[{\"cond\":\".amorce\",\"rm_elem\":1},{\"cond\":\".user-paying-content\",\"rm_attrib\":\"class|hidden\"}]"
},
"The Atlanta Journal-Constitution": {
"domain": "ajc.com",
"allow_cookies": 1,

Loading…
Cancel
Save