diff --git a/README.md b/README.md index 57343c2..eeb4047 100755 --- a/README.md +++ b/README.md @@ -205,6 +205,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall [The Times Literary Supplement](https://www.the-tls.co.uk) ##### France/Wallonia [Challenges](https://www.challenges.fr) – +[Charlie Hebdo](https://charliehebdo.fr) - [L'Écho](https://lecho.be) - [L'Opinion](https://www.lopinion.fr) – [La Dépêche](https://www.ladepeche.fr) – @@ -309,7 +310,7 @@ _*free articles only._ ### Sites with limited number of free articles The free article limit can normally be bypassed by removing cookies for the site.* -1. Install the extension [Disable Cookies](https://chrome.google.com/webstore/detail/disable-cookies/lkmjmficaoifggpfapbffkggecbleang?hl=en). +1. Install the extension [Cookie Remover](https://chrome.google.com/webstore/detail/cookie-remover/kcgpggonjhmeaejebeoeomdlohicfhce) or [Disable Cookies](https://chrome.google.com/webstore/detail/disable-cookies/lkmjmficaoifggpfapbffkggecbleang?hl=en). 2. When coming across a paywall, click the cookie icon in your extension toolbar then refresh the page. If removing the cookies works you can also add the site as a custom site. diff --git a/background.js b/background.js index 7a1ded5..1fee145 100755 --- a/background.js +++ b/background.js @@ -142,6 +142,7 @@ var blockedRegexes = { 'bostonglobe.com': /meter\.bostonglobe\.com\/js\/.+/, 'businessinsider.com': /.+\.tinypass\.com\/.+/, 'challenges.fr': /.+\.poool\.fr\/.+/, +'charliehebdo.fr': /.+\.poool\.fr\/.+/, 'chicagobusiness.com': /.+\.tinypass\.com\/.+/, 'chicagotribune.com': /.+:\/\/.+\.tribdss\.com\/.+/, 'clarin.com': /js\.matheranalytics\.com\/.+/, diff --git a/contentScript.js b/contentScript.js index e215f47..7ebd17c 100755 --- a/contentScript.js +++ b/contentScript.js @@ -872,6 +872,15 @@ else if (matchDomain("sueddeutsche.de")) { }); } +else if (matchDomain("charliehebdo.fr")) { + let paywalled_content = document.querySelector('div.ch-paywalled-content'); + if (paywalled_content) + paywalled_content.removeAttribute('style'); + let poool_widget = document.querySelector('div#poool-widget'); + removeDOMElement(poool_widget); +} + + // General Functions function removeDOMElement(...elements) { for (let element of elements) { diff --git a/lp/manifest.json b/lp/manifest.json index 12a04f2..0658034 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -51,6 +51,7 @@ "*://*.cen.acs.org/*", "*://*.centralwesterndaily.com.au/*", "*://*.challenges.fr/*", + "*://*.charliehebdo.fr/*", "*://*.chicagobusiness.com/*", "*://*.chicagotribune.com/*", "*://*.clarin.com/*", diff --git a/sites.js b/sites.js index 0eb7bb5..ee5ffea 100644 --- a/sites.js +++ b/sites.js @@ -20,6 +20,7 @@ var defaultSites = "Business Standard": "business-standard.com", "Caixin Global": "caixinglobal.com", "Challenges": "challenges.fr", + "Charlie Hebdo": "charliehebdo.fr", "Chemical & Engineering News": "cen.acs.org", "Chicago Tribune": "chicagotribune.com", "Clarín": "clarin.com",