Add AlternativesEconomiques.fr

This commit is contained in:
magnolia1234 2020-11-15 14:15:12 +01:00
parent 64d0f66c97
commit a9efd46521
6 changed files with 16 additions and 0 deletions

View file

@ -145,6 +145,7 @@ So don't update to Firefox 79 or use Firefox Nightly (and load BPC from a custom
[The Times](https://www.thetimes.co.uk) -
[The Times Literary Supplement](https://www.the-tls.co.uk)
##### France/Wallonia
[Alternatives Economiques](https://www.alternatives-economiques.fr) -
[Challenges](https://www.challenges.fr)
[Charlie Hebdo](https://charliehebdo.fr) -
[L'Écho](https://lecho.be) -

View file

@ -170,6 +170,7 @@ var use_bing_bot = [
var blockedRegexes = {
'adweek.com': /.+\.lightboxcdn\.com\/.+/,
'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/,
'alternatives-economiques.fr': /.+\.poool\.fr\/.+/,
'americanbanker.com': /.+\.tinypass\.com\/.+/,
'barrons.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
'belfasttelegraph.co.uk': /cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js/,
@ -246,6 +247,7 @@ var blockedRegexes = {
'science-et-vie.com': /.+\.qiota\.com\/.+/,
'sciencesetavenir.fr': /.+\.poool\.fr\/.+/,
'scmp.com': /.+\.tinypass\.com\/.+/,
'seekingalpha.com': /.+\.tinypass\.com\/.+/,
'sfchronicle.com': /.+\.blueconic\.net\/.+/,
'slate.com': /(cdn\.cxense\.com\/.+|.+\.tinypass\.com\/.+)/,
'sloanreview.mit.edu': /(cdn\.tinypass\.com\/.+|.+\/sloanreview\.mit\.edu\/.+\/welcome-ad\.js)/,

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add AlternativesEconomiques.fr
Add La Estrella de Valparaiso (Chile)
Fix-update Folha de S. Paulo (MatherAnalytics)
Fix-update Gazet van Antwerpen (video/maps)

View file

@ -1530,6 +1530,16 @@ else if (matchDomain('deutsche-wirtschafts-nachrichten.de')) {
}, 500); // Delay (in milliseconds)
}
else if (matchDomain("alternatives-economiques.fr")) {
window.setTimeout(function () {
let paywall = document.querySelector('#temp-paywall');
removeDOMElement(paywall);
let data_ae_poool = document.querySelector('div[data-ae-poool]');
if (data_ae_poool)
data_ae_poool.removeAttribute('style');
}, 500); // Delay (in milliseconds)
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View file

@ -45,6 +45,7 @@
"*://*.adweek.com/*",
"*://*.afr.com/*",
"*://*.aftonbladet.se/*",
"*://*.alternatives-economiques.fr/*",
"*://*.americanaffairsjournal.org/*",
"*://*.americanbanker.com/*",
"*://*.asia.nikkei.com/*",

View file

@ -4,6 +4,7 @@ var defaultSites =
"Adweek": "adweek.com",
"Aftonbladet": "aftonbladet.se",
"Algemeen Dagblad (+ regional)": "ad.nl",
"Alternatives Economiques": "alternatives-economiques.fr",
"American Affairs": "americanaffairsjournal.org",
"American Banker": "americanbanker.com",
"Atavist Magazine": "atavist.com",