Add Causeur.fr

merge-requests/3/head
magnolia1234 2 years ago
parent b36a3c2bea
commit b299e03bc4

@ -19,8 +19,11 @@ Weekly updates are released for fixes and new sites.
### Installation
You can install the add-on from Mozilla add-ons (AMO): [Bypass Paywalls Clean](https://addons.mozilla.org/en-US/firefox/addon/bypass-paywalls-clean)\
Latest add-on versions (2.4.8.0+) require a browser based on Firefox 86+ (else use the non-amo version below).\
Or download and install the latest xpi-version from [GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases)\
By default BPC has limited permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for non-listed sites). You can also just request permissions for the custom sites you added yourself (or `clear cookies` to ask for permission for current site).
Or download and install the latest xpi-version from [GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases)
If you want to install the latest [master ZIP-file from GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/archive/master/bypass-paywalls-firefox-clean-master.zip) use a Firefox browser which allows using unsigned add-ons like Firefox Developer Portable (go to about:config and set xpinstall.signatures.required to false) or LibreWolf (for both no automatic updates of add-on).
By default BPC has limited permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for non-listed sites). You can also just request permissions for the custom sites you added yourself (or click `clear cookies` (BPC-icon) to ask for permission for current site).
### Update
Check for updates (in about:addons) and allow permissions for newly supported sites (else no update will be installed).\
@ -348,6 +351,7 @@ Grouped in options:\
[Atlantico](https://atlantico.fr) -
[Challenges](https://www.challenges.fr) -
[Charlie Hebdo](https://charliehebdo.fr) -
[Causeur](https://www.causeur.fr) -
[Elle](https://www.elle.fr) -
[Esprit](https://esprit.presse.fr) -
[L'Équipe](https://www.lequipe.fr) -
@ -715,7 +719,7 @@ Remember to check the [previous requests](https://gitlab.com/magnolia1234/bypass
### Add custom site
Add your own custom site (also for testing).
Check 'Options'-link in popup-menu and go to custom sites.
\* by default BPC has limited permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for non-listed sites). You can also just request permissions for the custom sites you added yourself (or `clear cookies` to ask for permission for current site).
\* by default BPC has limited permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for non-listed sites). You can also just request permissions for the custom sites you added yourself (or `clear cookies` (BPC-icon) to ask for permission for current site).
By default sites' cookies/local storage are removed after page loads (to bypass article limit).
Also you can enable Googlebot/Bingbot user-agent, set referer (to Facebook, Google or Twitter; ignored when Googlebot is set), set random ip-address, disable Javascript for (sub)domain(s) and/or external domains, block regular expression, unhide text on (or when paywall(selector) redirect to) amp-page and/or load text from json (paywall|article selector).

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Causeur.fr
Add La Opinion de Malaga
Fix Iltalehti.fi (Youtube video/image no source)

@ -1300,7 +1300,7 @@ else if (matchDomain('lequipe.fr')) {
if (par_main.includes(',content:')) {
if (par_main.split(',content:"').filter(x => !x.startsWith('\\')).length > 2) {
if (par_main.startsWith(',title:')) {
par_main_title = par_main.split(',title:')[1].split(',')[0].replace(/^\"|\"$/g, '');
par_main_title = par_main.split(',title:')[1].split(',')[0].replace(/(^\"|\"$)/g, '');
article_text += '<p><strong>' + par_main_title + '</strong></p>';
}
par_type = json.split('content:')[1].split('"},{__type:')[1].split(',')[0];
@ -1311,15 +1311,15 @@ else if (matchDomain('lequipe.fr')) {
for (let par of pars) {
par = par.split('}')[0];
if (par.includes(',content:')) {
let content = par.split(',content:')[1].split('",')[0];
let content = par.split(',content:"')[1].split('",')[0];
let par_title = '';
if (par.includes(',title:'))
par_title = par.split(',title:')[1].split(',')[0].replace(/^\"|\"$/g, '');
par_title = par.split(',title:')[1].split(',')[0].replace(/(^\"|\"$)/g, '');
if (content) {
par = content.replace('class=', '');
if (par_title.length > 2 && par_title !== par_main_title)
par = '<strong>' + par_title + '</strong><br><br>' + content;
par = par.replace(/\\u003C/g, '<').replace(/\\u003E/g, '>').replace(/\\u002F/g, '/').replace(/\\"/g, '"').replace(/^\"|\"$/g, '');
par = par.replace(/\\u003C/g, '<').replace(/\\u003E/g, '>').replace(/\\u002F/g, '/').replace(/\\"/g, '"').replace(/(^\"|\"$)/g, '').replace(/\\t/g, '');
article_text += '<p>' + par + '</p>';
}
}

@ -109,6 +109,7 @@
"*://*.calgaryherald.com/*",
"*://*.canberratimes.com.au/*",
"*://*.capitalgazette.com/*",
"*://*.causeur.fr/*",
"*://*.cen.acs.org/*",
"*://*.centralwesterndaily.com.au/*",
"*://*.centrepresseaveyron.fr/*",
@ -628,5 +629,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.5.8.2"
"version": "2.5.8.3"
}

@ -202,6 +202,11 @@ var defaultSites = {
domain: "business-standard.com",
allow_cookies: 1
},
"Causeur": {
domain: "causeur.fr",
allow_cookies: 1,
block_regex: /\.qiota\.com\//
},
"Challenges": {
domain: "challenges.fr",
allow_cookies: 1,

@ -1,4 +1,9 @@
{
"Causeur": {
"domain": "causeur.fr",
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com\\/"
},
"Financial Times (not Chinese)": {
"domain": "ft.com",
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad|subscriptions)-.+\\.js",

Loading…
Cancel
Save