mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:47:47 +01:00
Restore styling
This commit is contained in:
parent
c86151e0c2
commit
9df4476cf4
3 changed files with 427 additions and 427 deletions
242
README.md
242
README.md
|
@ -1,121 +1,121 @@
|
|||
# Bypass Paywalls for Firefox
|
||||
|
||||
## [Download and install the latest version](https://github.com/iamadamdev/bypass-paywalls-firefox/releases/download/v1.6.0/bypass_paywalls-1.6.0-an+fx.xpi)
|
||||
|
||||
### Bypass the following sites' paywalls with this extension
|
||||
|
||||
[Algemeen Dagblad](https://www.ad.nl)\
|
||||
[Baltimore Sun](https://www.baltimoresun.com)\
|
||||
[Barron's](https://www.barrons.com)\
|
||||
[Bloomberg](https://www.bloomberg.com)\
|
||||
[Business Insider](https://www.businessinsider.com)\
|
||||
[Caixin](https://www.caixinglobal.com)\
|
||||
[Chemical & Engineering News](https://cen.acs.org)\
|
||||
[Central Western Daily](https://www.centralwesterndaily.com.au)\
|
||||
[Chicago Tribune](https://www.chicagotribune.com)\
|
||||
[Crain's Chicago Business](https://www.chicagobusiness.com)\
|
||||
[Corriere Della Sera](https://www.corriere.it)\
|
||||
[Daily Press](https://www.dailypress.com)\
|
||||
[Denver Post](https://www.denverpost.com)\
|
||||
[De Groene Amsterdammer](https://www.groene.nl)\
|
||||
[De Tijd](https://www.tijd.be)\
|
||||
[de Volkskrant](https://www.volkskrant.nl)\
|
||||
[The Economist](https://www.economist.com)\
|
||||
[Eindhovens Dagblad](https://ed.nl)\
|
||||
[Examiner](https://www.examiner.com.au)\
|
||||
[Financial Times](https://www.ft.com)\
|
||||
[Foreign Policy](https://www.foreignpolicy.com)\
|
||||
[Glassdoor](https://www.glassdoor.com)\
|
||||
[Haaretz.co.il](https://www.haaretz.co.il)\
|
||||
[Haaretz.com](https://www.haaretz.com)\
|
||||
[Handelsblatt](https://www.handelsblatt.com)\
|
||||
[Hartford Courant](https://www.courant.com)\
|
||||
[Harvard Business Review](https://www.hbr.org)\
|
||||
[Inc.com](https://www.inc.com)\
|
||||
[Investors Chronicle](https://www.investorschronicle.co.uk)\
|
||||
[La Repubblica](https://www.repubblica.it)\
|
||||
[Le Monde](https://www.lemonde.fr)\
|
||||
[Le Temps](https://www.letemps.ch)\
|
||||
[Los Angeles Times](https://www.latimes.com)\
|
||||
[Medium](https://www.medium.com)\
|
||||
[Medscape](https://www.medscape.com)\
|
||||
[MIT Technology Review](https://www.technologyreview.com)\
|
||||
[Mountain View Voice](https://www.mv-voice.com)\
|
||||
[National Post](https://www.nationalpost.com)\
|
||||
[New Statesman](https://www.newstatesman.com)\
|
||||
[New York Magazine](https://www.nymag.com)\
|
||||
[New Zealand Herald](https://www.nzherald.co.nz)\
|
||||
[Nikkei Asian Review](https://asia.nikkei.com)\
|
||||
[NRC](https://www.nrc.nl)\
|
||||
[Orange County Register](https://www.ocregister.com)\
|
||||
[Orlando Sentinel](https://www.orlandosentinel.com)\
|
||||
[Palo Alto Online](https://www.paloaltoonline.com)\
|
||||
[Parool](https://www.parool.nl)\
|
||||
[Quartz](https://qz.com)\
|
||||
[Quora](https://www.quora.com)\
|
||||
[Scientific American](https://scientificamerican.com)\
|
||||
[Statista](https://www.statista.com)\
|
||||
[SunSentinel](https://www.sun-sentinel.com)\
|
||||
[Telegraaf](https://telegraaf.nl)\
|
||||
[The Advocate](https://www.theadvocate.com.au)\
|
||||
[The Age](https://www.theage.com.au)\
|
||||
[The Atlantic](https://www.theatlantic.com)\
|
||||
[The Australian](https://www.theaustralian.com.au)\
|
||||
[The Australian Financial Review](https://www.afr.com)\
|
||||
[The Boston Globe](https://www.bostonglobe.com)\
|
||||
[The Business Journals](https://www.bizjournals.com)\
|
||||
[The Diplomat](https://www.thediplomat.com)\
|
||||
[The Globe and Mail](https://www.theglobeandmail.com)\
|
||||
[The Herald](https://www.theherald.com.au)\
|
||||
[The Japan Times](https://www.japantimes.co.jp)\
|
||||
[TheMarker](https://www.themarker.com)\
|
||||
[The Mercury News](https://www.mercurynews.com)\
|
||||
[The Morning Call](https://www.mcall.com)\
|
||||
[The Nation](https://www.thenation.com)\
|
||||
[The New York Times](https://www.nytimes.com)\
|
||||
[The New Yorker](https://www.newyorker.com)\
|
||||
[The News-Gazette](https://www.news-gazette.com)\
|
||||
[The Saturday Paper](https://www.thesaturdaypaper.com.au)\
|
||||
[The Spectator](https://www.spectator.co.uk)\
|
||||
[The Seattle Times](https://www.seattletimes.com)\
|
||||
[The Sydney Morning Herald](https://www.smh.com.au)\
|
||||
[The Telegraph](https://www.telegraph.co.uk)\
|
||||
[The Times](https://www.thetimes.co.uk)\
|
||||
[The Toronto Star](https://www.thestar.com)\
|
||||
[The Washington Post](https://www.washingtonpost.com)\
|
||||
[The Wall Street Journal](https://www.wsj.com)\
|
||||
[Towards Data Science](https://www.towardsdatascience.com)\
|
||||
[Trouw](https://www.trouw.nl)\
|
||||
[Vanity Fair](https://www.vanityfair.com)\
|
||||
[Vrij Nederland](https://www.vn.nl)\
|
||||
[Wired](https://www.wired.com)
|
||||
|
||||
### 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://addons.mozilla.org/en-US/firefox/addon/cookie-remover/) Add-on.
|
||||
|
||||
When coming across a paywall click the cookie icon to remove the cookies then refresh the page.
|
||||
|
||||
_*May not always succeed_
|
||||
|
||||
### New site requests
|
||||
Only large or major sites will be considered. No small sites or local newspapers.
|
||||
1. Visit an article on the site you want to bypass the paywall for and copy the article title.
|
||||
2. Open up a new Private window (Ctrl+Shift+P) and paste the article title into Google.
|
||||
3. Click on the same article from the Google search results page. If it loads without a paywall you can [submit a request](https://github.com/iamadamdev/bypass-paywalls-firefox/issues/new) to add the site, otherwise my extension cannot bypass it either.
|
||||
|
||||
Usually premium articles cannot be bypassed as they are behind a hard paywall.
|
||||
|
||||
### Troubleshooting
|
||||
* 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.
|
||||
|
||||
### Pull Requesets
|
||||
* PRs are welcome.
|
||||
|
||||
### Show your support
|
||||
* I am not asking for donations or anything like that, all I ask is that you star this repo.
|
||||
|
||||
### License
|
||||
Bypass Paywalls is [MIT-licensed](https://github.com/iamadamdev/bypass-paywalls-firefox/blob/master/LICENSE).
|
||||
# Bypass Paywalls for Firefox
|
||||
|
||||
## [Download and install the latest version](https://github.com/iamadamdev/bypass-paywalls-firefox/releases/download/v1.6.0/bypass_paywalls-1.6.0-an+fx.xpi)
|
||||
|
||||
### Bypass the following sites' paywalls with this extension
|
||||
|
||||
[Algemeen Dagblad](https://www.ad.nl)\
|
||||
[Baltimore Sun](https://www.baltimoresun.com)\
|
||||
[Barron's](https://www.barrons.com)\
|
||||
[Bloomberg](https://www.bloomberg.com)\
|
||||
[Business Insider](https://www.businessinsider.com)\
|
||||
[Caixin](https://www.caixinglobal.com)\
|
||||
[Chemical & Engineering News](https://cen.acs.org)\
|
||||
[Central Western Daily](https://www.centralwesterndaily.com.au)\
|
||||
[Chicago Tribune](https://www.chicagotribune.com)\
|
||||
[Crain's Chicago Business](https://www.chicagobusiness.com)\
|
||||
[Corriere Della Sera](https://www.corriere.it)\
|
||||
[Daily Press](https://www.dailypress.com)\
|
||||
[Denver Post](https://www.denverpost.com)\
|
||||
[De Groene Amsterdammer](https://www.groene.nl)\
|
||||
[De Tijd](https://www.tijd.be)\
|
||||
[de Volkskrant](https://www.volkskrant.nl)\
|
||||
[The Economist](https://www.economist.com)\
|
||||
[Eindhovens Dagblad](https://ed.nl)\
|
||||
[Examiner](https://www.examiner.com.au)\
|
||||
[Financial Times](https://www.ft.com)\
|
||||
[Foreign Policy](https://www.foreignpolicy.com)\
|
||||
[Glassdoor](https://www.glassdoor.com)\
|
||||
[Haaretz.co.il](https://www.haaretz.co.il)\
|
||||
[Haaretz.com](https://www.haaretz.com)\
|
||||
[Handelsblatt](https://www.handelsblatt.com)\
|
||||
[Hartford Courant](https://www.courant.com)\
|
||||
[Harvard Business Review](https://www.hbr.org)\
|
||||
[Inc.com](https://www.inc.com)\
|
||||
[Investors Chronicle](https://www.investorschronicle.co.uk)\
|
||||
[La Repubblica](https://www.repubblica.it)\
|
||||
[Le Monde](https://www.lemonde.fr)\
|
||||
[Le Temps](https://www.letemps.ch)\
|
||||
[Los Angeles Times](https://www.latimes.com)\
|
||||
[Medium](https://www.medium.com)\
|
||||
[Medscape](https://www.medscape.com)\
|
||||
[MIT Technology Review](https://www.technologyreview.com)\
|
||||
[Mountain View Voice](https://www.mv-voice.com)\
|
||||
[National Post](https://www.nationalpost.com)\
|
||||
[New Statesman](https://www.newstatesman.com)\
|
||||
[New York Magazine](https://www.nymag.com)\
|
||||
[New Zealand Herald](https://www.nzherald.co.nz)\
|
||||
[Nikkei Asian Review](https://asia.nikkei.com)\
|
||||
[NRC](https://www.nrc.nl)\
|
||||
[Orange County Register](https://www.ocregister.com)\
|
||||
[Orlando Sentinel](https://www.orlandosentinel.com)\
|
||||
[Palo Alto Online](https://www.paloaltoonline.com)\
|
||||
[Parool](https://www.parool.nl)\
|
||||
[Quartz](https://qz.com)\
|
||||
[Quora](https://www.quora.com)\
|
||||
[Scientific American](https://scientificamerican.com)\
|
||||
[Statista](https://www.statista.com)\
|
||||
[SunSentinel](https://www.sun-sentinel.com)\
|
||||
[Telegraaf](https://telegraaf.nl)\
|
||||
[The Advocate](https://www.theadvocate.com.au)\
|
||||
[The Age](https://www.theage.com.au)\
|
||||
[The Atlantic](https://www.theatlantic.com)\
|
||||
[The Australian](https://www.theaustralian.com.au)\
|
||||
[The Australian Financial Review](https://www.afr.com)\
|
||||
[The Boston Globe](https://www.bostonglobe.com)\
|
||||
[The Business Journals](https://www.bizjournals.com)\
|
||||
[The Diplomat](https://www.thediplomat.com)\
|
||||
[The Globe and Mail](https://www.theglobeandmail.com)\
|
||||
[The Herald](https://www.theherald.com.au)\
|
||||
[The Japan Times](https://www.japantimes.co.jp)\
|
||||
[TheMarker](https://www.themarker.com)\
|
||||
[The Mercury News](https://www.mercurynews.com)\
|
||||
[The Morning Call](https://www.mcall.com)\
|
||||
[The Nation](https://www.thenation.com)\
|
||||
[The New York Times](https://www.nytimes.com)\
|
||||
[The New Yorker](https://www.newyorker.com)\
|
||||
[The News-Gazette](https://www.news-gazette.com)\
|
||||
[The Saturday Paper](https://www.thesaturdaypaper.com.au)\
|
||||
[The Spectator](https://www.spectator.co.uk)\
|
||||
[The Seattle Times](https://www.seattletimes.com)\
|
||||
[The Sydney Morning Herald](https://www.smh.com.au)\
|
||||
[The Telegraph](https://www.telegraph.co.uk)\
|
||||
[The Times](https://www.thetimes.co.uk)\
|
||||
[The Toronto Star](https://www.thestar.com)\
|
||||
[The Washington Post](https://www.washingtonpost.com)\
|
||||
[The Wall Street Journal](https://www.wsj.com)\
|
||||
[Towards Data Science](https://www.towardsdatascience.com)\
|
||||
[Trouw](https://www.trouw.nl)\
|
||||
[Vanity Fair](https://www.vanityfair.com)\
|
||||
[Vrij Nederland](https://www.vn.nl)\
|
||||
[Wired](https://www.wired.com)
|
||||
|
||||
### 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://addons.mozilla.org/en-US/firefox/addon/cookie-remover/) Add-on.
|
||||
|
||||
When coming across a paywall click the cookie icon to remove the cookies then refresh the page.
|
||||
|
||||
_*May not always succeed_
|
||||
|
||||
### New site requests
|
||||
Only large or major sites will be considered. No small sites or local newspapers.
|
||||
1. Visit an article on the site you want to bypass the paywall for and copy the article title.
|
||||
2. Open up a new Private window (Ctrl+Shift+P) and paste the article title into Google.
|
||||
3. Click on the same article from the Google search results page. If it loads without a paywall you can [submit a request](https://github.com/iamadamdev/bypass-paywalls-firefox/issues/new) to add the site, otherwise my extension cannot bypass it either.
|
||||
|
||||
Usually premium articles cannot be bypassed as they are behind a hard paywall.
|
||||
|
||||
### Troubleshooting
|
||||
* 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.
|
||||
|
||||
### Pull Requesets
|
||||
* PRs are welcome.
|
||||
|
||||
### Show your support
|
||||
* I am not asking for donations or anything like that, all I ask is that you star this repo.
|
||||
|
||||
### License
|
||||
Bypass Paywalls is [MIT-licensed](https://github.com/iamadamdev/bypass-paywalls-firefox/blob/master/LICENSE).
|
||||
|
|
290
manifest.json
290
manifest.json
|
@ -1,145 +1,145 @@
|
|||
{
|
||||
"background": {
|
||||
"scripts": ["background.js"]
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": [
|
||||
"*://*.bizjournals.com/*",
|
||||
"*://*.bloomberg.com/*",
|
||||
"*://*.businessinsider.com/*",
|
||||
"*://*.ed.nl/*",
|
||||
"*://*.haaretz.co.il/*",
|
||||
"*://*.lemonde.fr/*",
|
||||
"*://*.nzherald.co.nz/*",
|
||||
"*://*.parool.nl/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.telegraaf.nl/*",
|
||||
"*://*.trouw.nl/*",
|
||||
"*://*.volkskrant.nl/*",
|
||||
"*://*.washingtonpost.com/*"
|
||||
],
|
||||
"js": ["contentScript.js"]
|
||||
}
|
||||
],
|
||||
"applications": {
|
||||
"gecko": {
|
||||
"id": "bypasspaywalls@bypasspaywalls.weebly.com",
|
||||
"update_url": "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-firefox/master/updates.json"
|
||||
}
|
||||
},
|
||||
"browser_action": {
|
||||
"default_popup": "popup.html",
|
||||
"default_icon": {
|
||||
"128": "bypass.png"
|
||||
},
|
||||
"theme_icons": [
|
||||
{
|
||||
"light": "bypass-dark.png",
|
||||
"dark": "bypass.png",
|
||||
"size": 128
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": "Bypass News Sites' Paywalls",
|
||||
"icons": {
|
||||
"128": "bypass.png"
|
||||
},
|
||||
"manifest_version": 2,
|
||||
"name": "Bypass Paywalls",
|
||||
"short_name": "Bypass Paywall",
|
||||
"options_ui": {
|
||||
"page": "options.html"
|
||||
},
|
||||
"permissions": [
|
||||
"cookies",
|
||||
"storage",
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"*://*.baltimoresun.com/*",
|
||||
"*://*.barrons.com/*",
|
||||
"*://*.bloomberg.com/*",
|
||||
"*://*.businessinsider.com/*",
|
||||
"*://*.caixinglobal.com/*",
|
||||
"*://*.cen.acs.org/*",
|
||||
"*://*.chicagotribune.com/*",
|
||||
"*://*.centralwesterndaily.com.au/*",
|
||||
"*://*.chicagobusiness.com/*",
|
||||
"*://*.corriere.it/*",
|
||||
"*://*.dailypress.com/*",
|
||||
"*://*.denverpost.com/*",
|
||||
"*://*.tijd.be/*",
|
||||
"*://*.volkskrant.nl/*",
|
||||
"*://*.economist.com/*",
|
||||
"*://*.examiner.com.au/*",
|
||||
"*://*.ft.com/*",
|
||||
"*://*.foreignpolicy.com/*",
|
||||
"*://*.glassdoor.com/*",
|
||||
"*://*.haaretz.co.il/*",
|
||||
"*://*.haaretz.com/*",
|
||||
"*://*.handelsblatt.com/*",
|
||||
"*://*.courant.com/*",
|
||||
"*://*.hbr.org/*",
|
||||
"*://*.inc.com/*",
|
||||
"*://*.investorschronicle.co.uk/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.letemps.ch/*",
|
||||
"*://*.latimes.com/*",
|
||||
"*://*.medium.com/*",
|
||||
"*://*.medscape.com/*",
|
||||
"*://*.technologyreview.com/*",
|
||||
"*://*.mv-voice.com/*",
|
||||
"*://*.nationalpost.com/*",
|
||||
"*://*.newstatesman.com/*",
|
||||
"*://*.nymag.com/*",
|
||||
"*://*.nzherald.co.nz/*",
|
||||
"*://*.asia.nikkei.com/*",
|
||||
"*://*.nrc.nl/*",
|
||||
"*://*.ocregister.com/*",
|
||||
"*://*.orlandosentinel.com/*",
|
||||
"*://*.paloaltoonline.com/*",
|
||||
"*://*.quora.com/*",
|
||||
"*://*.sun-sentinel.com/*",
|
||||
"*://*.theadvocate.com.au/*",
|
||||
"*://*.theage.com.au/*",
|
||||
"*://*.theaustralian.com.au/*",
|
||||
"*://*.afr.com/*",
|
||||
"*://*.bostonglobe.com/*",
|
||||
"*://*.bizjournals.com/*",
|
||||
"*://*.theglobeandmail.com/*",
|
||||
"*://*.theherald.com.au/*",
|
||||
"*://*.japantimes.co.jp/*",
|
||||
"*://*.themarker.com/*",
|
||||
"*://*.mercurynews.com/*",
|
||||
"*://*.mcall.com/*",
|
||||
"*://*.thenation.com/*",
|
||||
"*://*.nytimes.com/*",
|
||||
"*://*.newyorker.com/*",
|
||||
"*://*.news-gazette.com/*",
|
||||
"*://*.thesaturdaypaper.com.au/*",
|
||||
"*://*.spectator.co.uk/*",
|
||||
"*://*.seattletimes.com/*",
|
||||
"*://*.smh.com.au/*",
|
||||
"*://*.telegraph.co.uk/*",
|
||||
"*://*.thetimes.co.uk/*",
|
||||
"*://*.thestar.com/*",
|
||||
"*://*.washingtonpost.com/*",
|
||||
"*://*.wsj.com/*",
|
||||
"*://*.towardsdatascience.com/*",
|
||||
"*://*.vanityfair.com/*",
|
||||
"*://*.wired.com/*",
|
||||
"*://*.thediplomat.com/*",
|
||||
"*://*.theatlantic.com/*",
|
||||
"*://*.qz.com/*",
|
||||
"*://*.ad.nl/*",
|
||||
"*://*.ed.nl/*",
|
||||
"*://*.groene.nl/*",
|
||||
"*://*.parool.nl/*",
|
||||
"*://*.telegraaf.nl/*",
|
||||
"*://*.trouw.nl/*",
|
||||
"*://*.vn.nl/*",
|
||||
"*://*.lemonde.fr/*",
|
||||
"*://*.scientificamerican.com/*"
|
||||
],
|
||||
"version": "1.6.0"
|
||||
}
|
||||
{
|
||||
"background": {
|
||||
"scripts": ["background.js"]
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": [
|
||||
"*://*.bizjournals.com/*",
|
||||
"*://*.bloomberg.com/*",
|
||||
"*://*.businessinsider.com/*",
|
||||
"*://*.ed.nl/*",
|
||||
"*://*.haaretz.co.il/*",
|
||||
"*://*.lemonde.fr/*",
|
||||
"*://*.nzherald.co.nz/*",
|
||||
"*://*.parool.nl/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.telegraaf.nl/*",
|
||||
"*://*.trouw.nl/*",
|
||||
"*://*.volkskrant.nl/*",
|
||||
"*://*.washingtonpost.com/*"
|
||||
],
|
||||
"js": ["contentScript.js"]
|
||||
}
|
||||
],
|
||||
"applications": {
|
||||
"gecko": {
|
||||
"id": "bypasspaywalls@bypasspaywalls.weebly.com",
|
||||
"update_url": "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-firefox/master/updates.json"
|
||||
}
|
||||
},
|
||||
"browser_action": {
|
||||
"default_popup": "popup.html",
|
||||
"default_icon": {
|
||||
"128": "bypass.png"
|
||||
},
|
||||
"theme_icons": [
|
||||
{
|
||||
"light": "bypass-dark.png",
|
||||
"dark": "bypass.png",
|
||||
"size": 128
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": "Bypass News Sites' Paywalls",
|
||||
"icons": {
|
||||
"128": "bypass.png"
|
||||
},
|
||||
"manifest_version": 2,
|
||||
"name": "Bypass Paywalls",
|
||||
"short_name": "Bypass Paywall",
|
||||
"options_ui": {
|
||||
"page": "options.html"
|
||||
},
|
||||
"permissions": [
|
||||
"cookies",
|
||||
"storage",
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"*://*.baltimoresun.com/*",
|
||||
"*://*.barrons.com/*",
|
||||
"*://*.bloomberg.com/*",
|
||||
"*://*.businessinsider.com/*",
|
||||
"*://*.caixinglobal.com/*",
|
||||
"*://*.cen.acs.org/*",
|
||||
"*://*.chicagotribune.com/*",
|
||||
"*://*.centralwesterndaily.com.au/*",
|
||||
"*://*.chicagobusiness.com/*",
|
||||
"*://*.corriere.it/*",
|
||||
"*://*.dailypress.com/*",
|
||||
"*://*.denverpost.com/*",
|
||||
"*://*.tijd.be/*",
|
||||
"*://*.volkskrant.nl/*",
|
||||
"*://*.economist.com/*",
|
||||
"*://*.examiner.com.au/*",
|
||||
"*://*.ft.com/*",
|
||||
"*://*.foreignpolicy.com/*",
|
||||
"*://*.glassdoor.com/*",
|
||||
"*://*.haaretz.co.il/*",
|
||||
"*://*.haaretz.com/*",
|
||||
"*://*.handelsblatt.com/*",
|
||||
"*://*.courant.com/*",
|
||||
"*://*.hbr.org/*",
|
||||
"*://*.inc.com/*",
|
||||
"*://*.investorschronicle.co.uk/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.letemps.ch/*",
|
||||
"*://*.latimes.com/*",
|
||||
"*://*.medium.com/*",
|
||||
"*://*.medscape.com/*",
|
||||
"*://*.technologyreview.com/*",
|
||||
"*://*.mv-voice.com/*",
|
||||
"*://*.nationalpost.com/*",
|
||||
"*://*.newstatesman.com/*",
|
||||
"*://*.nymag.com/*",
|
||||
"*://*.nzherald.co.nz/*",
|
||||
"*://*.asia.nikkei.com/*",
|
||||
"*://*.nrc.nl/*",
|
||||
"*://*.ocregister.com/*",
|
||||
"*://*.orlandosentinel.com/*",
|
||||
"*://*.paloaltoonline.com/*",
|
||||
"*://*.quora.com/*",
|
||||
"*://*.sun-sentinel.com/*",
|
||||
"*://*.theadvocate.com.au/*",
|
||||
"*://*.theage.com.au/*",
|
||||
"*://*.theaustralian.com.au/*",
|
||||
"*://*.afr.com/*",
|
||||
"*://*.bostonglobe.com/*",
|
||||
"*://*.bizjournals.com/*",
|
||||
"*://*.theglobeandmail.com/*",
|
||||
"*://*.theherald.com.au/*",
|
||||
"*://*.japantimes.co.jp/*",
|
||||
"*://*.themarker.com/*",
|
||||
"*://*.mercurynews.com/*",
|
||||
"*://*.mcall.com/*",
|
||||
"*://*.thenation.com/*",
|
||||
"*://*.nytimes.com/*",
|
||||
"*://*.newyorker.com/*",
|
||||
"*://*.news-gazette.com/*",
|
||||
"*://*.thesaturdaypaper.com.au/*",
|
||||
"*://*.spectator.co.uk/*",
|
||||
"*://*.seattletimes.com/*",
|
||||
"*://*.smh.com.au/*",
|
||||
"*://*.telegraph.co.uk/*",
|
||||
"*://*.thetimes.co.uk/*",
|
||||
"*://*.thestar.com/*",
|
||||
"*://*.washingtonpost.com/*",
|
||||
"*://*.wsj.com/*",
|
||||
"*://*.towardsdatascience.com/*",
|
||||
"*://*.vanityfair.com/*",
|
||||
"*://*.wired.com/*",
|
||||
"*://*.thediplomat.com/*",
|
||||
"*://*.theatlantic.com/*",
|
||||
"*://*.qz.com/*",
|
||||
"*://*.ad.nl/*",
|
||||
"*://*.ed.nl/*",
|
||||
"*://*.groene.nl/*",
|
||||
"*://*.parool.nl/*",
|
||||
"*://*.telegraaf.nl/*",
|
||||
"*://*.trouw.nl/*",
|
||||
"*://*.vn.nl/*",
|
||||
"*://*.lemonde.fr/*",
|
||||
"*://*.scientificamerican.com/*"
|
||||
],
|
||||
"version": "1.6.0"
|
||||
}
|
||||
|
|
322
options.js
322
options.js
|
@ -1,161 +1,161 @@
|
|||
var defaultSites = {
|
||||
'Algemeen Dagblad': 'ad.nl',
|
||||
'Baltimore Sun': 'baltimoresun.com',
|
||||
'Barron\'s': 'barrons.com',
|
||||
'Bloomberg': 'bloomberg.com',
|
||||
'Business Insider': 'businessinsider.com',
|
||||
'Caixin': 'caixinglobal.com',
|
||||
'Chemical & Engineering News': 'cen.acs.org',
|
||||
'Chicago Tribune': 'chicagotribune.com',
|
||||
'Central Western Daily': 'centralwesterndaily.com.au',
|
||||
'Crain\'s Chicago Business': 'chicagobusiness.com',
|
||||
'Corriere Della Sera': 'corriere.it',
|
||||
'Daily Press': 'dailypress.com',
|
||||
'Denver Post': 'denverpost.com',
|
||||
'De Groene Amsterdammer': 'groene.nl',
|
||||
'De Tijd': 'tijd.be',
|
||||
'de Volkskrant': 'volkskrant.nl',
|
||||
'The Economist (javascript disabled)': 'economist.com',
|
||||
'Eindhovens Dagblad': 'ed.nl',
|
||||
'Examiner': 'examiner.com.au',
|
||||
'Financial Times': 'ft.com',
|
||||
'Foreign Policy': 'foreignpolicy.com',
|
||||
'Glassdoor': 'glassdoor.com',
|
||||
'Haaretz': 'haaretz.co.il',
|
||||
'Haaretz English': 'haaretz.com',
|
||||
'Handelsblatt': 'handelsblatt.com',
|
||||
'Hartford Courant': 'courant.com',
|
||||
'Harvard Business Review': 'hbr.org',
|
||||
'Inc.com': 'inc.com',
|
||||
'Investors Chronicle': 'investorschronicle.co.uk',
|
||||
'La Repubblica': 'repubblica.it',
|
||||
'Le Monde': 'lemonde.fr',
|
||||
'Le Temps': 'letemps.ch',
|
||||
'Los Angeles Times': 'latimes.com',
|
||||
'Medium': 'medium.com',
|
||||
'Medscape': 'medscape.com',
|
||||
'MIT Technology Review': 'technologyreview.com',
|
||||
'Mountain View Voice': 'mv-voice.com',
|
||||
'National Post': 'nationalpost.com',
|
||||
'New Statesman (javascript disabled)': 'newstatesman.com',
|
||||
'New York Magazine': 'nymag.com',
|
||||
'New Zealand Herald': 'nzherald.co.nz',
|
||||
'Nikkei Asian Review': 'asia.nikkei.com',
|
||||
'NRC': 'nrc.nl',
|
||||
'Orange County Register': 'ocregister.com',
|
||||
'Orlando Sentinel': 'orlandosentinel.com',
|
||||
'Palo Alto Online': 'paloaltoonline.com',
|
||||
'Parool': 'parool.nl',
|
||||
'Quartz': 'qz.com',
|
||||
'Quora': 'quora.com',
|
||||
'Scientific American': 'scientificamerican.com',
|
||||
'Statista': 'statista.com',
|
||||
'SunSentinel': 'sun-sentinel.com',
|
||||
'Telegraaf': 'telegraaf.nl',
|
||||
'The Advocate': 'theadvocate.com.au',
|
||||
'The Age': 'theage.com.au',
|
||||
'The Atlantic': 'theatlantic.com',
|
||||
'The Australian': 'theaustralian.com.au',
|
||||
'The Australian Financial Review (javascript disabled)': 'afr.com',
|
||||
'The Boston Globe (javascript disabled)': 'bostonglobe.com',
|
||||
'The Business Journals': 'bizjournals.com',
|
||||
'The Diplomat': 'thediplomat.com',
|
||||
'The Globe and Mail (javascript disabled)': 'theglobeandmail.com',
|
||||
'The Herald': 'theherald.com.au',
|
||||
'The Japan Times': 'japantimes.co.jp',
|
||||
'TheMarker': 'themarker.com',
|
||||
'The Mercury News': 'mercurynews.com',
|
||||
'The Morning Call': 'mcall.com',
|
||||
'The Nation': 'thenation.com',
|
||||
'The New York Times': 'nytimes.com',
|
||||
'The New Yorker': 'newyorker.com',
|
||||
'The News-Gazette': 'news-gazette.com',
|
||||
'The Saturday Paper': 'thesaturdaypaper.com.au',
|
||||
'The Spectator': 'spectator.co.uk',
|
||||
'The Seattle Times': 'seattletimes.com',
|
||||
'The Sydney Morning Herald': 'smh.com.au',
|
||||
'The Telegraph': 'telegraph.co.uk',
|
||||
'The Times': 'thetimes.co.uk',
|
||||
'The Toronto Star (javascript disabled)': 'thestar.com',
|
||||
'The Washington Post': 'washingtonpost.com',
|
||||
'The Wall Street Journal': 'wsj.com',
|
||||
'Towards Data Science': 'towardsdatascience.com',
|
||||
'Trouw': 'trouw.nl',
|
||||
'Vanity Fair': 'vanityfair.com',
|
||||
'Vrij Nederland': 'vn.nl',
|
||||
'Wired': 'wired.com'
|
||||
};
|
||||
|
||||
// Saves options to browser.storage
|
||||
function save_options() {
|
||||
var gh_url = document.getElementById('bypass_sites').value;
|
||||
var inputEls = document.querySelectorAll('#bypass_sites input');
|
||||
var sites = {};
|
||||
|
||||
var sites = Array.from(inputEls).reduce(function(memo, inputEl) {
|
||||
if (inputEl.checked) {
|
||||
memo[inputEl.dataset.key] = inputEl.dataset.value;
|
||||
}
|
||||
return memo;
|
||||
}, {});
|
||||
|
||||
browser.storage.sync.set({
|
||||
sites: sites
|
||||
}, function() {
|
||||
// Update status to let user know options were saved.
|
||||
var status = document.getElementById('status');
|
||||
status.textContent = 'Options saved.';
|
||||
setTimeout(function() {
|
||||
// status.textContent = '';
|
||||
window.close();
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
|
||||
// Restores checkbox input states using the preferences
|
||||
// stored in browser.storage.
|
||||
function renderOptions() {
|
||||
browser.storage.sync.get({
|
||||
sites: {}
|
||||
}, function(items) {
|
||||
var sites = items.sites;
|
||||
var sitesEl = document.getElementById('bypass_sites');
|
||||
for (var key in defaultSites) {
|
||||
if (!defaultSites.hasOwnProperty(key)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var value = defaultSites[key];
|
||||
var labelEl = document.createElement('label');
|
||||
var inputEl = document.createElement('input');
|
||||
inputEl.type = 'checkbox';
|
||||
inputEl.dataset.key = key;
|
||||
inputEl.dataset.value = value;
|
||||
inputEl.checked = key in sites;
|
||||
|
||||
labelEl.appendChild(inputEl);
|
||||
labelEl.appendChild(document.createTextNode(' '+key));
|
||||
sitesEl.appendChild(labelEl);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function selectAll() {
|
||||
var inputEls = Array.from(document.querySelectorAll('input'));
|
||||
inputEls.forEach(function(inputEl) {
|
||||
inputEl.checked = true;
|
||||
});
|
||||
}
|
||||
|
||||
function selectNone() {
|
||||
var inputEls = Array.from(document.querySelectorAll('input'));
|
||||
inputEls.forEach(function(inputEl) {
|
||||
inputEl.checked = false;
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', renderOptions);
|
||||
document.getElementById('save').addEventListener('click', save_options);
|
||||
document.getElementById('select-all').addEventListener('click', selectAll);
|
||||
document.getElementById('select-none').addEventListener('click', selectNone);
|
||||
|
||||
var defaultSites = {
|
||||
'Algemeen Dagblad': 'ad.nl',
|
||||
'Baltimore Sun': 'baltimoresun.com',
|
||||
'Barron\'s': 'barrons.com',
|
||||
'Bloomberg': 'bloomberg.com',
|
||||
'Business Insider': 'businessinsider.com',
|
||||
'Caixin': 'caixinglobal.com',
|
||||
'Chemical & Engineering News': 'cen.acs.org',
|
||||
'Chicago Tribune': 'chicagotribune.com',
|
||||
'Central Western Daily': 'centralwesterndaily.com.au',
|
||||
'Crain\'s Chicago Business': 'chicagobusiness.com',
|
||||
'Corriere Della Sera': 'corriere.it',
|
||||
'Daily Press': 'dailypress.com',
|
||||
'Denver Post': 'denverpost.com',
|
||||
'De Groene Amsterdammer': 'groene.nl',
|
||||
'De Tijd': 'tijd.be',
|
||||
'de Volkskrant': 'volkskrant.nl',
|
||||
'The Economist (javascript disabled)': 'economist.com',
|
||||
'Eindhovens Dagblad': 'ed.nl',
|
||||
'Examiner': 'examiner.com.au',
|
||||
'Financial Times': 'ft.com',
|
||||
'Foreign Policy': 'foreignpolicy.com',
|
||||
'Glassdoor': 'glassdoor.com',
|
||||
'Haaretz': 'haaretz.co.il',
|
||||
'Haaretz English': 'haaretz.com',
|
||||
'Handelsblatt': 'handelsblatt.com',
|
||||
'Hartford Courant': 'courant.com',
|
||||
'Harvard Business Review': 'hbr.org',
|
||||
'Inc.com': 'inc.com',
|
||||
'Investors Chronicle': 'investorschronicle.co.uk',
|
||||
'La Repubblica': 'repubblica.it',
|
||||
'Le Monde': 'lemonde.fr',
|
||||
'Le Temps': 'letemps.ch',
|
||||
'Los Angeles Times': 'latimes.com',
|
||||
'Medium': 'medium.com',
|
||||
'Medscape': 'medscape.com',
|
||||
'MIT Technology Review': 'technologyreview.com',
|
||||
'Mountain View Voice': 'mv-voice.com',
|
||||
'National Post': 'nationalpost.com',
|
||||
'New Statesman (javascript disabled)': 'newstatesman.com',
|
||||
'New York Magazine': 'nymag.com',
|
||||
'New Zealand Herald': 'nzherald.co.nz',
|
||||
'Nikkei Asian Review': 'asia.nikkei.com',
|
||||
'NRC': 'nrc.nl',
|
||||
'Orange County Register': 'ocregister.com',
|
||||
'Orlando Sentinel': 'orlandosentinel.com',
|
||||
'Palo Alto Online': 'paloaltoonline.com',
|
||||
'Parool': 'parool.nl',
|
||||
'Quartz': 'qz.com',
|
||||
'Quora': 'quora.com',
|
||||
'Scientific American': 'scientificamerican.com',
|
||||
'Statista': 'statista.com',
|
||||
'SunSentinel': 'sun-sentinel.com',
|
||||
'Telegraaf': 'telegraaf.nl',
|
||||
'The Advocate': 'theadvocate.com.au',
|
||||
'The Age': 'theage.com.au',
|
||||
'The Atlantic': 'theatlantic.com',
|
||||
'The Australian': 'theaustralian.com.au',
|
||||
'The Australian Financial Review (javascript disabled)': 'afr.com',
|
||||
'The Boston Globe (javascript disabled)': 'bostonglobe.com',
|
||||
'The Business Journals': 'bizjournals.com',
|
||||
'The Diplomat': 'thediplomat.com',
|
||||
'The Globe and Mail (javascript disabled)': 'theglobeandmail.com',
|
||||
'The Herald': 'theherald.com.au',
|
||||
'The Japan Times': 'japantimes.co.jp',
|
||||
'TheMarker': 'themarker.com',
|
||||
'The Mercury News': 'mercurynews.com',
|
||||
'The Morning Call': 'mcall.com',
|
||||
'The Nation': 'thenation.com',
|
||||
'The New York Times': 'nytimes.com',
|
||||
'The New Yorker': 'newyorker.com',
|
||||
'The News-Gazette': 'news-gazette.com',
|
||||
'The Saturday Paper': 'thesaturdaypaper.com.au',
|
||||
'The Spectator': 'spectator.co.uk',
|
||||
'The Seattle Times': 'seattletimes.com',
|
||||
'The Sydney Morning Herald': 'smh.com.au',
|
||||
'The Telegraph': 'telegraph.co.uk',
|
||||
'The Times': 'thetimes.co.uk',
|
||||
'The Toronto Star (javascript disabled)': 'thestar.com',
|
||||
'The Washington Post': 'washingtonpost.com',
|
||||
'The Wall Street Journal': 'wsj.com',
|
||||
'Towards Data Science': 'towardsdatascience.com',
|
||||
'Trouw': 'trouw.nl',
|
||||
'Vanity Fair': 'vanityfair.com',
|
||||
'Vrij Nederland': 'vn.nl',
|
||||
'Wired': 'wired.com'
|
||||
};
|
||||
|
||||
// Saves options to browser.storage
|
||||
function save_options() {
|
||||
var gh_url = document.getElementById('bypass_sites').value;
|
||||
var inputEls = document.querySelectorAll('#bypass_sites input');
|
||||
var sites = {};
|
||||
|
||||
var sites = Array.from(inputEls).reduce(function(memo, inputEl) {
|
||||
if (inputEl.checked) {
|
||||
memo[inputEl.dataset.key] = inputEl.dataset.value;
|
||||
}
|
||||
return memo;
|
||||
}, {});
|
||||
|
||||
browser.storage.sync.set({
|
||||
sites: sites
|
||||
}, function() {
|
||||
// Update status to let user know options were saved.
|
||||
var status = document.getElementById('status');
|
||||
status.textContent = 'Options saved.';
|
||||
setTimeout(function() {
|
||||
// status.textContent = '';
|
||||
window.close();
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
|
||||
// Restores checkbox input states using the preferences
|
||||
// stored in browser.storage.
|
||||
function renderOptions() {
|
||||
browser.storage.sync.get({
|
||||
sites: {}
|
||||
}, function(items) {
|
||||
var sites = items.sites;
|
||||
var sitesEl = document.getElementById('bypass_sites');
|
||||
for (var key in defaultSites) {
|
||||
if (!defaultSites.hasOwnProperty(key)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var value = defaultSites[key];
|
||||
var labelEl = document.createElement('label');
|
||||
var inputEl = document.createElement('input');
|
||||
inputEl.type = 'checkbox';
|
||||
inputEl.dataset.key = key;
|
||||
inputEl.dataset.value = value;
|
||||
inputEl.checked = key in sites;
|
||||
|
||||
labelEl.appendChild(inputEl);
|
||||
labelEl.appendChild(document.createTextNode(' '+key));
|
||||
sitesEl.appendChild(labelEl);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function selectAll() {
|
||||
var inputEls = Array.from(document.querySelectorAll('input'));
|
||||
inputEls.forEach(function(inputEl) {
|
||||
inputEl.checked = true;
|
||||
});
|
||||
}
|
||||
|
||||
function selectNone() {
|
||||
var inputEls = Array.from(document.querySelectorAll('input'));
|
||||
inputEls.forEach(function(inputEl) {
|
||||
inputEl.checked = false;
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', renderOptions);
|
||||
document.getElementById('save').addEventListener('click', save_options);
|
||||
document.getElementById('select-all').addEventListener('click', selectAll);
|
||||
document.getElementById('select-none').addEventListener('click', selectNone);
|
||||
|
||||
|
|
Loading…
Reference in a new issue