Remove nknews.org (obsolete)

Plus maintenance: filter empty custom domains.
This commit is contained in:
magnolia1234 2020-02-29 20:08:32 +01:00 committed by GitHub
parent 769959b8ed
commit e8cd4dd62d
4 changed files with 284 additions and 287 deletions

545
README.md
View file

@ -1,273 +1,272 @@
# Bypass Paywalls Clean for Firefox # Bypass Paywalls Clean for Firefox
* [Installation](#installation) * [Installation](#installation)
* [List of supported websites](#list-of-supported-websites) * [List of supported websites](#list-of-supported-websites)
* [Sites with limited number of free articles](#sites-with-limited-number-of-free-articles) * [Sites with limited number of free articles](#sites-with-limited-number-of-free-articles)
* [New site requests](#new-site-requests) * [New site requests](#new-site-requests)
* [Add custom site](#add-custom-site) * [Add custom site](#add-custom-site)
* [Troubleshooting](#troubleshooting) * [Troubleshooting](#troubleshooting)
* [Changelog-releases](#changelog-releases) * [Changelog-releases](#changelog-releases)
* [Pull Requests](#pull-requests) * [Pull Requests](#pull-requests)
* [Show your support](#show-your-support) * [Show your support](#show-your-support)
* [License](#license) * [License](#license)
### Installation ### Installation
[Download and install the latest version](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.6.1/bypass_paywalls_clean-1.6.6.1-an+fx.xpi)\ [Download and install the latest version](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.6.1/bypass_paywalls_clean-1.6.6.1-an+fx.xpi)\
Or first visit the [releases page](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases).\ Or first visit the [releases page](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases).\
Install add-on by downloading xpi-file (assets). Install add-on by downloading xpi-file (assets).
### List of supported websites ### List of supported websites
#### United States of America #### United States of America
##### World news ##### World news
[First Things](https://www.firstthings.com) - [First Things](https://www.firstthings.com) -
[Foreign Policy](https://www.foreignpolicy.com) - [Foreign Policy](https://www.foreignpolicy.com) -
[Harper's Magazine](https://harpers.org) - [Harper's Magazine](https://harpers.org) -
[National Review](https://www.nationalreview.com) - [National Review](https://www.nationalreview.com) -
[The American Interest](https://www.the-american-interest.com) - [The American Interest](https://www.the-american-interest.com) -
[The Atlantic](https://www.theatlantic.com) - [The Atlantic](https://www.theatlantic.com) -
[The Christian Science Monitor](https://www.csmonitor.com) - [The Christian Science Monitor](https://www.csmonitor.com) -
[The Nation](https://www.thenation.com) - [The Nation](https://www.thenation.com) -
[The New York Times](https://www.nytimes.com) - [The New York Times](https://www.nytimes.com) -
[The New Yorker](https://www.newyorker.com) - [The New Yorker](https://www.newyorker.com) -
[The Washington Post](https://www.washingtonpost.com) - [The Washington Post](https://www.washingtonpost.com) -
[Vanity Fair](https://www.vanityfair.com) - [Vanity Fair](https://www.vanityfair.com) -
[World Politics Review](https://www.worldpoliticsreview.com) [World Politics Review](https://www.worldpoliticsreview.com)
##### Business ##### Business
[Adweek](https://www.adweek.com) - [Adweek](https://www.adweek.com) -
[American Affairs](https://americanaffairsjournal.org) - [American Affairs](https://americanaffairsjournal.org) -
[American Banker](https://www.americanbanker.com) - [American Banker](https://www.americanbanker.com) -
[Barron's](https://www.barrons.com) - [Barron's](https://www.barrons.com) -
[Bloomberg](https://www.bloomberg.com) - [Bloomberg](https://www.bloomberg.com) -
[Business Insider](https://www.businessinsider.com) - [Business Insider](https://www.businessinsider.com) -
[Digiday](https://digiday.com) [Digiday](https://digiday.com)
[Fortune](https://fortune.com) - [Fortune](https://fortune.com) -
[Harvard Business Review](https://www.hbr.org) - [Harvard Business Review](https://www.hbr.org) -
[Inc.com](https://www.inc.com) - [Inc.com](https://www.inc.com) -
[MIT Sloan Management Review](https://sloanreview.mit.edu) - [MIT Sloan Management Review](https://sloanreview.mit.edu) -
[Modern Healthcare](https://www.modernhealthcare.com) - [Modern Healthcare](https://www.modernhealthcare.com) -
[Quartz](https://qz.com) - [Quartz](https://qz.com) -
[Seeking Alpha](https://seekingalpha.com) - [Seeking Alpha](https://seekingalpha.com) -
[The Business Journals](https://www.bizjournals.com) - [The Business Journals](https://www.bizjournals.com) -
[The Wall Street Journal](https://www.wsj.com) [The Wall Street Journal](https://www.wsj.com)
##### Sports ##### Sports
[The Athletic](https://theathletic.com) [The Athletic](https://theathletic.com)
##### Tech/Science ##### Tech/Science
[Chemical & Engineering News](https://cen.acs.org) - [Chemical & Engineering News](https://cen.acs.org) -
[Dark Reading](https://www.darkreading.com) - [Dark Reading](https://www.darkreading.com) -
[MIT Technology Review](https://www.technologyreview.com) - [MIT Technology Review](https://www.technologyreview.com) -
[Towards Data Science](https://www.towardsdatascience.com) - [Towards Data Science](https://www.towardsdatascience.com) -
[Wired](https://www.wired.com) - [Wired](https://www.wired.com) -
[Scientific American](https://www.scientificamerican.com)* [Scientific American](https://www.scientificamerican.com)*
##### Blogs ##### Blogs
[Medium](https://www.medium.com) (all sites) - [Medium](https://www.medium.com) (all sites) -
[SofRep](https://sofrep.com) - [SofRep](https://sofrep.com) -
[The Daily Beast](https://www.thedailybeast.com)* [The Daily Beast](https://www.thedailybeast.com)*
##### Local US news ##### Local US news
[Baltimore Sun](baltimoresun.com) - [Baltimore Sun](baltimoresun.com) -
[Crain's Chicago Business](https://www.chicagobusiness.com) - [Crain's Chicago Business](https://www.chicagobusiness.com) -
[Chicago Tribune](https://www.chicagotribune.com) - [Chicago Tribune](https://www.chicagotribune.com) -
[Daily Press](https://www.dailypress.com) - [Daily Press](https://www.dailypress.com) -
[Hartford Courant](https://www.courant.com) - [Hartford Courant](https://www.courant.com) -
[Los Angeles Business Journal](https://labusinessjournal.com) - [Los Angeles Business Journal](https://labusinessjournal.com) -
[Los Angeles Times](https://www.latimes.com) - [Los Angeles Times](https://www.latimes.com) -
[Miami Herald](https://www.miamiherald.com) - [Miami Herald](https://www.miamiherald.com) -
[Mountain View Voice](https://www.mv-voice.com) - [Mountain View Voice](https://www.mv-voice.com) -
[New York Magazine](https://www.nymag.com) - [New York Magazine](https://www.nymag.com) -
[Orange County Register](https://www.ocregister.com) - [Orange County Register](https://www.ocregister.com) -
[Orlando Sentinel](https://www.orlandosentinel.com) - [Orlando Sentinel](https://www.orlandosentinel.com) -
[Palo Alto Online](https://www.paloaltoonline.com) - [Palo Alto Online](https://www.paloaltoonline.com) -
[Pittsburgh Post Gazette](https://post-gazette.com) - [Pittsburgh Post Gazette](https://post-gazette.com) -
[San Diego Union Tribune](https://sandiegouniontribune.com) - [San Diego Union Tribune](https://sandiegouniontribune.com) -
[San Francisco Chronicle](https://www.sfchronicle.com) - [San Francisco Chronicle](https://www.sfchronicle.com) -
[SunSentinel](https://www.sun-sentinel.com) - [SunSentinel](https://www.sun-sentinel.com) -
[The Boston Globe](https://www.bostonglobe.com) - [The Boston Globe](https://www.bostonglobe.com) -
[The Denver Post](https://www.denverpost.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://www.mcall.com) - [The Morning Call](https://www.mcall.com) -
[The Seattle Times](https://www.seattletimes.com) - [The Seattle Times](https://www.seattletimes.com) -
[The News-Gazette](https://www.news-gazette.com) - [The News-Gazette](https://www.news-gazette.com) -
[The Philadelphia Inquirer](https://www.inquirer.com) - [The Philadelphia Inquirer](https://www.inquirer.com) -
[The Sacramento Bee](https://www.sacbee.com)* - [The Sacramento Bee](https://www.sacbee.com)* -
[Winston-Salem Journal](https://www.journalnow.com) [Winston-Salem Journal](https://www.journalnow.com)
#### Australia/New Zealand #### Australia/New Zealand
[Bendigo Advertiser](https://www.bendigoadvertiser.com.au) - [Bendigo Advertiser](https://www.bendigoadvertiser.com.au) -
[Cairns Post](https://www.cairnspost.com.au) [Cairns Post](https://www.cairnspost.com.au)
[Central Western Daily](https://www.centralwesterndaily.com.au) - [Central Western Daily](https://www.centralwesterndaily.com.au) -
[Daily Liberal](https://www.dailyliberal.com.au) - [Daily Liberal](https://www.dailyliberal.com.au) -
[Gold Coast Bulletin](https://www.goldcoastbulletin.com.au) [Gold Coast Bulletin](https://www.goldcoastbulletin.com.au)
[Herald Sun](https://www.heraldsun.com.au) [Herald Sun](https://www.heraldsun.com.au)
[Illawarra Mercury](https://www.illawarramercury.com.au) - [Illawarra Mercury](https://www.illawarramercury.com.au) -
[New Zealand Herald](https://www.nzherald.co.nz) - [New Zealand Herald](https://www.nzherald.co.nz) -
[Newcastle Herald](https://www.newcastleherald.com.au) - [Newcastle Herald](https://www.newcastleherald.com.au) -
[Northern Territory News](https://www.ntnews.com.au) [Northern Territory News](https://www.ntnews.com.au)
[The Advertiser](https://www.adelaidenow.com.au) [The Advertiser](https://www.adelaidenow.com.au)
[The Advocate](https://www.theadvocate.com.au) - [The Advocate](https://www.theadvocate.com.au) -
[The Age](https://www.theage.com.au) - [The Age](https://www.theage.com.au) -
[The Australian](https://www.theaustralian.com.au) - [The Australian](https://www.theaustralian.com.au) -
[The Australian Financial Review](https://www.afr.com) - [The Australian Financial Review](https://www.afr.com) -
[The Border Mail](https://www.bordermail.com.au) - [The Border Mail](https://www.bordermail.com.au) -
[The Canberra Times](https://www.canberratimes.com.au) - [The Canberra Times](https://www.canberratimes.com.au) -
[The Courier](https://www.thecourier.com.au) - [The Courier](https://www.thecourier.com.au) -
[The Courier-Mail](https://www.couriermail.com.au) [The Courier-Mail](https://www.couriermail.com.au)
[The Daily Advertiser](https://www.dailyadvertiser.com.au) - [The Daily Advertiser](https://www.dailyadvertiser.com.au) -
[The Daily Telegraph](https://www.dailytelegraph.com.au) [The Daily Telegraph](https://www.dailytelegraph.com.au)
[The Examiner](https://www.examiner.com.au) - [The Examiner](https://www.examiner.com.au) -
[The Mercury Tasmania](https://www.themercury.com.au) - [The Mercury Tasmania](https://www.themercury.com.au) -
[The Northern Daily Leader](https://www.northerndailyleader.com.au) - [The Northern Daily Leader](https://www.northerndailyleader.com.au) -
[The Saturday Paper](https://www.thesaturdaypaper.com.au) - [The Saturday Paper](https://www.thesaturdaypaper.com.au) -
[The Spectator Australia](https://www.spectator.com.au) - [The Spectator Australia](https://www.spectator.com.au) -
[The Standard](https://www.standard.net.au) - [The Standard](https://www.standard.net.au) -
[The Sydney Morning Herald](https://www.smh.com.au) [The Sydney Morning Herald](https://www.smh.com.au)
[The Weekly Times](https://www.weeklytimesnow.com.au) [The Weekly Times](https://www.weeklytimesnow.com.au)
[Townsville Bulletin](https://www.townsvillebulletin.com.au) - [Townsville Bulletin](https://www.townsvillebulletin.com.au) -
[WAtoday](https://www.watoday.com.au) [WAtoday](https://www.watoday.com.au)
#### Canada #### Canada
[National Post](https://www.nationalpost.com) - [National Post](https://www.nationalpost.com) -
[Le Devoir](https://www.ledevoir.com) - [Le Devoir](https://www.ledevoir.com) -
[The Toronto Star](https://www.thestar.com) - [The Toronto Star](https://www.thestar.com) -
[The Globe and Mail](https://www.theglobeandmail.com) [The Globe and Mail](https://www.theglobeandmail.com)
#### Europe #### Europe
##### United Kingdom/Ireland ##### United Kingdom/Ireland
[Financial News](https://www.fnlondon.com) - [Financial News](https://www.fnlondon.com) -
[Financial Times](https://www.ft.com) - [Financial Times](https://www.ft.com) -
[London Review of Books](https://www.lrb.co.uk) - [London Review of Books](https://www.lrb.co.uk) -
[The Economist](https://www.economist.com) - [The Economist](https://www.economist.com) -
[The Irish Times](https://www.irishtimes.com)* - [The Irish Times](https://www.irishtimes.com)* -
[The New Statesman](https://www.newstatesman.com) - [The New Statesman](https://www.newstatesman.com) -
[The Spectator](https://www.spectator.co.uk) - [The Spectator](https://www.spectator.co.uk) -
[The Telegraph](https://www.telegraph.co.uk) - [The Telegraph](https://www.telegraph.co.uk) -
[The Times](https://www.thetimes.co.uk) - [The Times](https://www.thetimes.co.uk) -
[The Times Literary Supplement](https://www.the-tls.co.uk) [The Times Literary Supplement](https://www.the-tls.co.uk)
##### France/Wallonia ##### France/Wallonia
[Challenges](https://www.challenges.fr) [Challenges](https://www.challenges.fr)
[L'Écho](https://lecho.be) - [L'Écho](https://lecho.be) -
[Le Journal du Dimanche](https://lejdd.fr) [Le Journal du Dimanche](https://lejdd.fr)
[Le Monde](https://www.lemonde.fr) - [Le Monde](https://www.lemonde.fr) -
[Le Parisien](https://www.leparisien.fr) - [Le Parisien](https://www.leparisien.fr) -
[Les Échos](https://www.lesechos.fr)* - [Les Échos](https://www.lesechos.fr)* -
[Libération](https://www.liberation.fr)* [Libération](https://www.liberation.fr)*
[Valeurs Actuelles](https://www.valeursactuelles.com) [Valeurs Actuelles](https://www.valeursactuelles.com)
##### Germany/Austria ##### Germany/Austria
[Handelsblatt](https://www.handelsblatt.com) - [Handelsblatt](https://www.handelsblatt.com) -
[Kleine Zeitung](https://www.kleinezeitung.at) [Kleine Zeitung](https://www.kleinezeitung.at)
##### Italy ##### Italy
[Corriere Della Sera](https://www.corriere.it) - [Corriere Della Sera](https://www.corriere.it) -
[La Repubblica](https://www.repubblica.it) - [La Repubblica](https://www.repubblica.it) -
[La Stampa](https://www.lastampa.it) [La Stampa](https://www.lastampa.it)
##### Netherlands/Flanders ##### Netherlands/Flanders
[Algemeen Dagblad](https://www.ad.nl) and regional ADR sites like [Algemeen Dagblad](https://www.ad.nl) and regional ADR sites like
[BN DeStem](https://www.bndestem.nl) - [BN DeStem](https://www.bndestem.nl) -
[Brabants Dagblad](https://www.bd.nl) - [Brabants Dagblad](https://www.bd.nl) -
[Eindhovens Dagblad](https://www.ed.nl) - [Eindhovens Dagblad](https://www.ed.nl) -
[Gelderlander](https://www.gelderlander.nl) - [Gelderlander](https://www.gelderlander.nl) -
[PZC](https://www.pzc.nl) - [PZC](https://www.pzc.nl) -
[Stentor](https://www.destentor.nl) - [Stentor](https://www.destentor.nl) -
[Tubantia](https://tubantia.nl)\ [Tubantia](https://tubantia.nl)\
[Dagblad van het Noorden](https://www.dvhn.nl) - [Dagblad van het Noorden](https://www.dvhn.nl) -
[De Morgen](https://www.demorgen.be) - [De Morgen](https://www.demorgen.be) -
[De Tijd](https://www.tijd.be) - [De Tijd](https://www.tijd.be) -
[Groene Amsterdammer](https://www.groene.nl) - [Groene Amsterdammer](https://www.groene.nl) -
[Het Financieel Dagblad](https://fd.nl) - [Het Financieel Dagblad](https://fd.nl) -
[Humo.be](https://www.humo.be) - [Humo.be](https://www.humo.be) -
[Leeuwarder Courant](https://www.lc.nl) - [Leeuwarder Courant](https://www.lc.nl) -
[NRC Handelsblad](https://www.nrc.nl) - [NRC Handelsblad](https://www.nrc.nl) -
[Parool](https://www.parool.nl) - [Parool](https://www.parool.nl) -
[Telegraaf](https://www.telegraaf.nl) - [Telegraaf](https://www.telegraaf.nl) -
[Trouw](https://www.trouw.nl) - [Trouw](https://www.trouw.nl) -
[Volkskrant](https://www.volkskrant.nl) - [Volkskrant](https://www.volkskrant.nl) -
[Vrij Nederland](https://www.vn.nl) [Vrij Nederland](https://www.vn.nl)
##### Spain ##### Spain
[El País](https://elpais.com) [El País](https://elpais.com)
##### Sweden ##### Sweden
[Dagens Nyheter](https://www.dn.se) [Dagens Nyheter](https://www.dn.se)
#### East Asia #### East Asia
[Caixin Global](https://www.caixinglobal.com) - [Caixin Global](https://www.caixinglobal.com) -
[CommonWealth Magazine Taiwan](https://www.cw.com.tw) - [CommonWealth Magazine Taiwan](https://www.cw.com.tw) -
[Harvard Business Review Taiwan](https://www.hbrtaiwan.com) - [Harvard Business Review Taiwan](https://www.hbrtaiwan.com) -
[Nikkei Asian Review](https://asia.nikkei.com) - [Nikkei Asian Review](https://asia.nikkei.com) -
[NK News](https://www.nknews.org) - [Tech in Asia](https://www.techinasia.com) -
[Tech in Asia](https://www.techinasia.com) - [The Diplomat](https://www.thediplomat.com) -
[The Diplomat](https://www.thediplomat.com) - [The Japan Times](https://www.japantimes.co.jp)
[The Japan Times](https://www.japantimes.co.jp)
#### India
#### India [Bloomberg Quint](https://www.bloombergquint.com)* -
[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)
[The Hindu](https://www.thehindu.com)
#### Israel
#### Israel [Haaretz.co.il](https://www.haaretz.co.il) -
[Haaretz.co.il](https://www.haaretz.co.il) - [Haaretz.com](https://www.haaretz.com) -
[Haaretz.com](https://www.haaretz.com) - [The Marker](https://www.themarker.com)
[The Marker](https://www.themarker.com)
#### Latin America
#### Latin America ##### Argentina
##### Argentina [Clarín](https://www.clarin.com) -
[Clarín](https://www.clarin.com) - [La Nación](https://www.lanacion.com.ar)
[La Nación](https://www.lanacion.com.ar) ##### Brazil
##### Brazil [Exame](https://exame.abril.com.br)
[Exame](https://exame.abril.com.br) [Folha de S. Paulo](https://www.folha.uol.com.br) -
[Folha de S. Paulo](https://www.folha.uol.com.br) - [O Estado de S. Paulo](https://estadao.com.br)
[O Estado de S. Paulo](https://estadao.com.br) [O Globo](https://oglobo.globo.com)
[O Globo](https://oglobo.globo.com) [Valor Econômico](https://valor.globo.com)*
[Valor Econômico](https://valor.globo.com)* ##### Chile
##### Chile [El Mercurio](https://digital.elmercurio.com) -
[El Mercurio](https://digital.elmercurio.com) - [La Tercera](https://www.latercera.com)
[La Tercera](https://www.latercera.com) ##### Mexico
##### Mexico [Mexico News Daily](https://mexiconewsdaily.com)
[Mexico News Daily](https://mexiconewsdaily.com)
#### Encyclopedia/Book library/Knowledge base
#### Encyclopedia/Book library/Knowledge base [Encyclopedia Britannica](https://www.britannica.com) -
[Encyclopedia Britannica](https://www.britannica.com) - [Glassdoor](https://www.glassdoor.com) -
[Glassdoor](https://www.glassdoor.com) - [Loeb Classical Library](https://www.loebclassics.com) -
[Loeb Classical Library](https://www.loebclassics.com) - [Quora](https://www.quora.com) -
[Quora](https://www.quora.com) - [Scribd](http://www.scribd.com) -
[Scribd](http://www.scribd.com) - [Statista](https://www.statista.com)
[Statista](https://www.statista.com)
_*free articles only._
_*free articles only._
### Sites with limited number of free articles
### Sites with limited number of free articles The free article limit can normally be bypassed by removing cookies for the site.*
The free article limit can normally be bypassed by removing cookies for the site.*
Install the [Cookie Remover](https://addons.mozilla.org/en-US/firefox/addon/cookie-remover/) Add-on. Please rate it 5 stars if you find it useful.
Install the [Cookie Remover](https://addons.mozilla.org/en-US/firefox/addon/cookie-remover/) Add-on. 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.
When coming across a paywall click the cookie icon to remove the cookies then refresh the page.
_*May not always succeed_
_*May not always succeed_
### New site requests
### New site requests You can submit a request for a new website [here](https://github.com/magnolia1234/bypass-paywalls-firefox-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-firefox-clean/issues?q=is%3Aissue+label%3Aenhancement) before asking for a new website.
You can submit a request for a new website [here](https://github.com/magnolia1234/bypass-paywalls-firefox-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-firefox-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.
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.
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:
3. Click on the same article from the Google search results page. Or you can: 4. Disable javascript on the website by clicking the button right icon </> on the uBlock panel.
4. Disable javascript on the website by clicking the button right icon </> on the uBlock panel. 5. Refresh the page.
5. Refresh the page.
### Add custom site
### Add custom site Add your own custom site (also for testing).
Add your own custom site (also for testing). Check 'Custom'-link in popup-menu.
Check 'Custom'-link in popup-menu. By default sites' cookies are removed after page loads (to bypass article limit).
By default sites' cookies are removed after page loads (to bypass article limit). Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s).
Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s).
### Troubleshooting
### Troubleshooting * This add-on works best alongside [uBlock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/).
* This add-on works best alongside [uBlock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/). * If a site doesn't work try turning off uBlock and refreshing.
* If a site doesn't work try turning off uBlock and refreshing. * If you live in the EU, also consider installing the extension [I don't care about cookies](https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies) in order to remove cookie warnings.
* If you live in the EU, also consider installing the extension [I don't care about cookies](https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies) in order to remove cookie warnings. * Make sure the (new) site is checked under Options.
* Make sure the (new) site is checked under Options.
### Changelog-releases
### Changelog-releases * Visit the [releases page](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases).
* Visit the [releases page](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases).
### Pull Requests
### Pull Requests * PRs are welcome.
* PRs are welcome.
### Show your support
### Show your support * I am not asking for donations or anything like that, all I ask is that you star this repo.
* I am not asking for donations or anything like that, all I ask is that you star this repo.
### License
### License Bypass Paywalls Clean is [MIT-licensed](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/blob/master/LICENSE).
Bypass Paywalls Clean is [MIT-licensed](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/blob/master/LICENSE).

View file

@ -41,7 +41,6 @@ var allow_cookies = [
'mexiconewsdaily.com', 'mexiconewsdaily.com',
'modernhealthcare.com', 'modernhealthcare.com',
'nationalreview.com', 'nationalreview.com',
'nknews.org',
'ntnews.com.au', 'ntnews.com.au',
'nytimes.com', 'nytimes.com',
'parool.nl', 'parool.nl',
@ -104,7 +103,6 @@ const use_google_bot_default = [
'heraldsun.com.au', 'heraldsun.com.au',
'lemonde.fr', 'lemonde.fr',
'mexiconewsdaily.com', 'mexiconewsdaily.com',
'nknews.org',
'ntnews.com.au', 'ntnews.com.au',
'prime.economictimes.indiatimes.com', 'prime.economictimes.indiatimes.com',
'quora.com', 'quora.com',
@ -206,12 +204,12 @@ browser.storage.sync.get({
}); });
block_js = block_js_default.slice(); block_js = block_js_default.slice();
enabledSites = Object.keys(items.sites).map(function (key) { enabledSites = Object.keys(sites).filter(function (key) {
return items.sites[key]; return (sites[key] !== '' && sites[key] !== '###');
}); }).map(function (key) {
enabledSites = enabledSites.filter(function (el) { return sites[key];
return (el !== '###');
}); });
for (var domainIndex in enabledSites) { for (var domainIndex in enabledSites) {
var domainVar = enabledSites[domainIndex]; var domainVar = enabledSites[domainIndex];
if (!allow_cookies.includes(domainVar) && !remove_cookies.includes(domainVar)) { if (!allow_cookies.includes(domainVar) && !remove_cookies.includes(domainVar)) {
@ -230,12 +228,13 @@ browser.storage.sync.get({
// Listen for changes to options // Listen for changes to options
browser.storage.onChanged.addListener(function (changes, namespace) { browser.storage.onChanged.addListener(function (changes, namespace) {
for (var key in changes) { for (var key in changes) {
var storageChange = changes[key]; var storageChange = changes[key];
if (key === 'sites') { if (key === 'sites') {
var sites = storageChange.newValue; var sites = storageChange.newValue;
enabledSites = Object.keys(sites).map(function (key) { enabledSites = Object.keys(sites).filter(function (key) {
return (sites[key] !== '' && sites[key] !== '###');
}).map(function (key) {
return sites[key]; return sites[key];
}); });
} }
@ -250,7 +249,7 @@ browser.storage.onChanged.addListener(function (changes, namespace) {
use_google_bot = use_google_bot_default.slice(); use_google_bot = use_google_bot_default.slice();
for (var domainIndex in use_google_bot_custom) { for (var domainIndex in use_google_bot_custom) {
var domainVar = use_google_bot_custom[domainIndex]; var domainVar = use_google_bot_custom[domainIndex];
if (!use_google_bot.includes(domainVar)) { if (domainVar && !use_google_bot.includes(domainVar)) {
use_google_bot.push(domainVar); use_google_bot.push(domainVar);
} }
} }
@ -263,7 +262,7 @@ browser.storage.onChanged.addListener(function (changes, namespace) {
block_js = block_js_default.slice(); block_js = block_js_default.slice();
for (var domainIndex in block_js_custom) { for (var domainIndex in block_js_custom) {
var domainVar = block_js_custom[domainIndex]; var domainVar = block_js_custom[domainIndex];
if (!block_js.includes(domainVar)) { if (domainVar && !block_js.includes(domainVar)) {
block_js.push("*://*." + domainVar + "/*"); // subdomains of site block_js.push("*://*." + domainVar + "/*"); // subdomains of site
block_js.push("*://" + domainVar + "/*"); // site without www.-prefix block_js.push("*://" + domainVar + "/*"); // site without www.-prefix
} }

View file

@ -50,7 +50,7 @@ function renderOptions() {
inputEl.dataset.key = key; inputEl.dataset.key = key;
inputEl.dataset.value = value; inputEl.dataset.value = value;
inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites); inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites);
if (value !=='###') { if (value !== '###') {
labelEl.appendChild(inputEl); labelEl.appendChild(inputEl);
} }
labelEl.appendChild(document.createTextNode(' '+key)); labelEl.appendChild(document.createTextNode(' '+key));
@ -73,7 +73,7 @@ function renderOptions() {
inputEl.dataset.key = key; inputEl.dataset.key = key;
inputEl.dataset.value = value; inputEl.dataset.value = value;
inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites); inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites);
if (value !=='###') { if (value !== '' && value !== '###') {
labelEl.appendChild(inputEl); labelEl.appendChild(inputEl);
} }
labelEl.appendChild(document.createTextNode(' '+key)); labelEl.appendChild(document.createTextNode(' '+key));

View file

@ -84,7 +84,6 @@ var defaultSites =
"New Zealand Herald": "nzherald.co.nz", "New Zealand Herald": "nzherald.co.nz",
"Newcastle Herald": "newcastleherald.com.au", "Newcastle Herald": "newcastleherald.com.au",
"Nikkei Asian Review": "asia.nikkei.com", "Nikkei Asian Review": "asia.nikkei.com",
"NK News": "nknews.org",
"Northern Territory News": "ntnews.com.au", "Northern Territory News": "ntnews.com.au",
"NRC Handelsblad": "nrc.nl", "NRC Handelsblad": "nrc.nl",
"O Estado de S. Paulo": "estadao.com.br", "O Estado de S. Paulo": "estadao.com.br",