Add CharlieHebdo.fr

master
magnolia1234 2020-07-25 09:06:28 +02:00
parent fd91f3c066
commit 1b86fd8dab
5 changed files with 14 additions and 1 deletions

View File

@ -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.

View File

@ -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\/.+/,

View File

@ -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) {

View File

@ -51,6 +51,7 @@
"*://*.cen.acs.org/*",
"*://*.centralwesterndaily.com.au/*",
"*://*.challenges.fr/*",
"*://*.charliehebdo.fr/*",
"*://*.chicagobusiness.com/*",
"*://*.chicagotribune.com/*",
"*://*.clarin.com/*",

View File

@ -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",