diff --git a/README.md b/README.md index 89b3ffe8..89879e8b 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/changelog.txt b/changelog.txt index 1789408e..ea4eafe9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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) diff --git a/contentScript.js b/contentScript.js index 71688196..4b6fca0f 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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 += '

' + par_main_title + '

'; } 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 = '' + par_title + '

' + 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 += '

' + par + '

'; } } diff --git a/manifest.json b/manifest.json index 4aa0d11f..a1d9d5a2 100644 --- a/manifest.json +++ b/manifest.json @@ -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" } diff --git a/sites.js b/sites.js index c46941c4..1f0df04b 100644 --- a/sites.js +++ b/sites.js @@ -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, diff --git a/sites_updated.json b/sites_updated.json index 247464d9..a4305844 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -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",