Add Brazilian & French sites & Digiday

Add O Globo, Valor Econômico, O Estado de S. Paulo, Exame
Add Challenges.fr, Valeurs Actuelles
Add Digiday
master
frantzkamus 2020-01-19 10:09:14 +01:00 committed by magnolia1234
parent 86d4a4b2b4
commit a391a8cba6
4 changed files with 82 additions and 62 deletions

107
README.md
View File

@ -44,7 +44,7 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
### List of supported websites
#### United States of America
*Newspapers/Magazines* >
##### World news
[First Things](https://www.firstthings.com) -
[Foreign Policy](https://www.foreignpolicy.com) -
[Harper's Magazine](https://harpers.org) -
@ -54,40 +54,33 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[The New York Times](https://www.nytimes.com) -
[The New Yorker](https://www.newyorker.com) -
[The Washington Post](https://www.washingtonpost.com/) -
[Vanity Fair](https://www.vanityfair.com)\
*Business* >
[Vanity Fair](https://www.vanityfair.com)
##### Business
[American Affairs](https://americanaffairsjournal.org) -
[American Banker](https://www.americanbanker.com) -
[Barron's](https://www.barrons.com) -
[Bloomberg](https://www.bloomberg.com) -
[Business Insider](https://www.businessinsider.com) -
[Digiday](https://digiday.com)
[Fortune](https://fortune.com/) -
[Harvard Business Review](https://www.hbr.org) -
[Inc.com](https://www.inc.com) -
[MIT Sloan Management Review](https://sloanreview.mit.edu) -
[Quartz](https://qz.com) -
[The Business Journals](https://www.bizjournals.com) -
[The Wall Street Journal](https://www.wsj.com)\
*Sports* >
[The Athletic](https://theathletic.com)\
*Tech/Science* >
[The Wall Street Journal](https://www.wsj.com)
##### Sports
[The Athletic](https://theathletic.com)
##### Tech/Science
[Dark Reading](https://darkreading.com) -
[MIT Technology Review](https://www.technologyreview.com) -
[Towards Data Science](https://www.towardsdatascience.com) -
[Wired](https://www.wired.com) -
[Scientific American](https://www.scientificamerican.com)*\
*Blogs* >
[Scientific American](https://www.scientificamerican.com)*
##### Blogs
[Medium](https://www.medium.com) (all sites) -
[SofRep](https://sofrep.com)
##### Encyclopedia/Book library/Knowledge base
[Encyclopedia Britannica](https://www.britannica.com) -
[Glassdoor](https://www.glassdoor.com) -
[Loeb Classical Library](https://www.loebclassics.com) -
[Medium](https://www.medium.com) -
[Quora](https://www.quora.com) -
[Scribd](http://scribd.com) -
[Statista](https://www.statista.com)
##### Local US news
[Baltimore Sun](baltimoresun.com) -
[Crain's Chicago Business](https://chicagobusiness.com) -
@ -105,7 +98,7 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[SunSentinel](https://sun-sentinel.com) -
[The Boston Globe](https://www.bostonglobe.com) -
[The Denver Post](https://www.denverpost.com) -
[The Mercury News](https://www.mercurynews.com) -
[The Mercury News](https://www.mercurynews.com) -
[The Morning Call](https://mcall.com) -
[The Seattle Times](https://www.seattletimes.com) -
[The News-Gazette](https://news-gazette.com) -
@ -113,12 +106,6 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[The Sacramento Bee](sacbee.com)* -
[Winston-Salem Journal](https://journalnow.com)
### Canada
[National Post](https://www.nationalpost.com) -
[Le Devoir](https://www.ledevoir.com) -
[The Toronto Star](https://www.thestar.com) -
[The Globe and Mail](https://www.theglobeandmail.com)
#### Australia/New Zealand
[Newcastle Herald](https://www.newcastleherald.com.au) -
[The Advocate](https://www.theadvocate.com.au) -
@ -130,9 +117,14 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[New Zealand Herald](https://www.nzherald.co.nz) -
[The Sydney Morning Herald](https://www.smh.com.au)
#### Europe
#### Canada
[National Post](https://www.nationalpost.com) -
[Le Devoir](https://www.ledevoir.com) -
[The Toronto Star](https://www.thestar.com) -
[The Globe and Mail](https://www.theglobeandmail.com)
**United Kingdom/Ireland** >
#### Europe
##### United Kingdom/Ireland
[Financial News](https://www.fnlondon.com) -
[Financial Times](https://www.ft.com) -
[London Review of Books](https://www.lrb.co.uk) -
@ -143,20 +135,21 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[The Telegraph](https://www.telegraph.co.uk) -
[The Times Literary Supplement](https://www.the-tls.co.uk) -
[The Times](https://www.thetimes.co.uk)
**France/Wallonia** >
##### France/Wallonia
[Challenges](https://www.challenges.fr)
[L'Écho](https://lecho.be) -
[Le Monde](https://www.lemonde.fr) -
[Le Parisien](http://www.leparisien.fr) -
[Les Échos](https://www.lesechos.fr) -
[Libération](https://www.liberation.fr)*\
**Germany** >
[Handelsblatt](https://www.handelsblatt.com)\
**Italy** >
[Libération](https://www.liberation.fr)*
[Valeurs Actuelles](https://www.valeursactuelles.com)
##### Germany
[Handelsblatt](https://www.handelsblatt.com)
##### Italy
[Corriere Della Sera](https://www.corriere.it) -
[La Repubblica](https://www.repubblica.it) -
[La Stampa](https://www.lastampa.it)\
**Netherlands/Flanders** >
[La Stampa](https://www.lastampa.it)
##### Netherlands/Flanders
[Algemeen Dagblad](https://www.ad.nl) -
[Eindhovens Dagblad](https://ed.nl) -
[DeMorgen](https://www.demorgen.be) -
@ -167,47 +160,57 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[Trouw](https://www.trouw.nl) -
[Tubantia](https://tubantia.nl) -
[Volkskrant](https://www.volkskrant.nl) -
[Vrij Nederland](https://www.vn.nl)\
**Spain** >
[El País](https://elpais.com/)\
**Sweden** >
[Vrij Nederland](https://www.vn.nl)
##### Spain
[El País](https://elpais.com)
##### Sweden
[Dagens Nyheter](https://www.dn.se)*
**East Asia** >
#### East Asia
[Caixin Global](https://www.caixinglobal.com) -
[Nikkei Asian Review](https://asia.nikkei.com) -
[Tech in Asia](https://www.techinasia.com) -
[The Diplomat](https://www.thediplomat.com) -
[The Japan Times](https://www.japantimes.co.jp)\
**India** >
[The Japan Times](https://www.japantimes.co.jp)
#### India
[Bloomberg Quint](https://www.bloombergquint.com)* -
[ET Prime](https://prime.economictimes.indiatimes.com/) -
[ET Prime](https://prime.economictimes.indiatimes.com) -
[The Hindu](https://www.thehindu.com)
**Israel** >
#### Israel
[Haaretz.co.il](https://www.haaretz.co.il) -
[Haaretz.com](https://www.haaretz.com) -
[The Marker](https://www.themarker.com)
**Latin America/Mexico** >
#### Latin America
[Exame](https://exame.abril.com.br)
[La Nación](https://www.lanacion.com.ar) -
[La Tercera](https://www.latercera.com) -
[Mexico News Daily](https://mexiconewsdaily.com)
[Mexico News Daily](https://mexiconewsdaily.com)
[O Estado de S. Paulo](https://estadao.com.br)
[O Globo](https://oglobo.globo.com)
[Valor Econômico](https://valor.globo.com)*
#### Encyclopedia/Book library/Knowledge base
[Encyclopedia Britannica](https://www.britannica.com) -
[Glassdoor](https://www.glassdoor.com) -
[Loeb Classical Library](https://www.loebclassics.com) -
[Quora](https://www.quora.com) -
[Scribd](http://scribd.com) -
[Statista](https://www.statista.com)
_*free articles only._
### Sites with limited number of free articles
The free article limit can normally be bypassed by removing cookies for the site.*
Install the [Cookie Remover](https://chrome.google.com/webstore/detail/cookie-remover/kcgpggonjhmeaejebeoeomdlohicfhce) extension. Please rate it 5 stars if you find it useful.
When coming across a paywall click the cookie icon to remove the cookies then refresh the page.
1. Install the [Disable Cookies](https://chrome.google.com/webstore/detail/disable-cookies/lkmjmficaoifggpfapbffkggecbleang?hl=en) extension.
2. When coming across a paywall click the cookie icon, then refresh the page.
_*may not always succeed._
### New site requests
You can submit a request for a new website [here](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/issues/new). Please read the following instructions and share your results for a quicker process. Remember to check the [previous requests](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/issues?q=is%3Aissue+label%3Aenhancement) before asking for a new website.
1. Visit an article on the site you want to bypass the paywall for and copy the article title.
2. Open up a new incognito window (Ctrl+Shift+N) and paste the article title into Google.
3. Click on the same article from the Google search results page. Or you can:
@ -231,4 +234,4 @@ You can submit a request for a new website [here](https://github.com/magnolia123
* I am not asking for donations or anything like that, all I ask is that you star this repo.
### License
* Bypass Paywalls Clean is [MIT-licensed](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/blob/master/LICENSE).
* Bypass Paywalls Clean is [MIT-licensed](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/blob/master/LICENSE).

View File

@ -82,21 +82,18 @@ const use_google_bot = [
'wsj.com',
]
function setDefaultOptions() {
chrome.storage.sync.set({
sites: defaultSites
}, function() {
chrome.tabs.create({ 'url': 'chrome://extensions/?options=' + chrome.runtime.id });
});
}
// block paywall-scripts individually
var blockedRegexes = {
'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/,
'bostonglobe.com': /meter\.bostonglobe\.com\/js\/.+/,
'businessinsider.com': /(.+\.tinypass\.com\/.+|cdn\.onesignal\.com\/sdks\/.+\.js)/,
'challenges.fr': /.+\.poool\.fr\/.+/,
'chicagotribune.com': /.+:\/\/.+\.tribdss\.com\//,
'digiday.com': /.+\.tinypass\.com\/.+/,
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/_next\/static\/runtime\/main.+\.js)/,
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
'globo.com': /.+\.tinypass\.com\/.+/,
'foreignpolicy.com': /.+\.tinypass\.com\/.+/,
'fortune.com': /.+\.tinypass\.com\/.+/,
'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/,
@ -111,7 +108,8 @@ var blockedRegexes = {
'sloanreview.mit.edu': /.+\.tinypass\.com\/.+/,
'spectator.co.uk': /.+\.tinypass\.com\/.+/,
'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/,
'thenation.com': /thenation\.com\/.+\/paywall-script\.php/
'thenation.com': /thenation\.com\/.+\/paywall-script\.php/,
'valeursactuelles.com': /.+\.poool\.fr\/.+/
};
const userAgentDesktop = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
@ -119,6 +117,14 @@ const userAgentMobile = "Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible ;
var enabledSites = [];
function setDefaultOptions() {
chrome.storage.sync.set({
sites: defaultSites
}, function() {
chrome.tabs.create({ 'url': 'chrome://extensions/?options=' + chrome.runtime.id });
});
}
// Get the enabled sites (from local storage) & add to allow/remove_cookies (if not already in one of these arrays)
chrome.storage.sync.get({
sites: {}
@ -221,7 +227,7 @@ chrome.webRequest.onBeforeSendHeaders.addListener(function(details) {
if ((isSiteEnabled({url: '.'+ domain}) || isSiteEnabled({url: header_referer})) && details.url.match(blockedRegexes[domain])) {
if (details.url.indexOf(domain) !== -1 || header_referer.indexOf(domain) !== -1) {
// allow BG paywall-script to set cookies in homepage/sections (else no article-text)
if (details.url.indexOf('meter.bostonglobe.com/js/') !== -1 && (header_referer === 'https://www.bostonglobe.com/'
if (details.url.indexOf('meter.bostonglobe.com/js/') !== -1 && (header_referer === 'https://www.bostonglobe.com/'
|| header_referer.indexOf('/?p1=BGHeader_') !== -1 || header_referer.indexOf('/?p1=BGMenu_') !== -1)) {
break;
} else if (header_referer.indexOf('theglobeandmail.com') !== -1 && !(header_referer.indexOf('/article-') !== -1)) {

View File

@ -380,6 +380,11 @@ if (window.location.href.indexOf("liberation.fr") !== -1) {
close_button.click();
}
if (window.location.href.indexOf("estadao.com.br") !== -1) {
const paywall = document.getElementById('paywall-wrapper-iframe-estadao');
removeDOMElement(paywall);
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -6,14 +6,17 @@
"Bloomberg Quint (free articles only)": "bloombergquint.com",
"Business Insider": "businessinsider.com",
"Caixin Global": "caixinglobal.com",
"Challenges": "challenges.fr",
"Chicago Tribune": "chicagotribune.com",
"Corriere Della Sera": "corriere.it",
"Dagens Nyheter (free articles only)": "dn.se",
"Daily Press": "dailypress.com",
"DeMorgen": "demorgen.be",
"Digiday": "digiday.com",
"El País": "elpais.com",
"Encyclopedia Britannica": "britannica.com",
"ET Prime": "prime.economictimes.indiatimes.com",
"Exame": "exame.abril.com.br",
"Financial News": "fnlondon.com",
"Financial Times": "ft.com",
"First Things": "firstthings.com",
@ -49,6 +52,8 @@
"Newcastle Herald": "newcastleherald.com.au",
"Nikkei Asian Review": "asia.nikkei.com",
"NRC Handelsblad": "nrc.nl",
"O Globo": "globo.com",
"O Estado de S. Paulo": "estadao.com.br",
"Parool": "parool.nl",
"Quartz": "qz.com",
"Quora": "quora.com",
@ -94,6 +99,7 @@
"The Washington Post": "washingtonpost.com",
"Towards Data Science": "towardsdatascience.com",
"Trouw": "trouw.nl",
"Valeurs Actuelles": "valeursactuelles.com",
"Vanity Fair": "vanityfair.com",
"Volkskrant": "volkskrant.nl",
"Vrij Nederland": "vn.nl",