Merge pull request #184 from TheGoddessInari/granular-permissions

Switch from <all_urls> to per-site permissions in manifest.json
master
Adam 2019-05-12 12:48:44 -07:00 committed by GitHub
commit 345fd1683f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 124 additions and 47 deletions

View File

@ -1,48 +1,125 @@
{ {
"background": { "background": {
"scripts": ["background.js"] "scripts": ["background.js"]
}, },
"content_scripts": [ "content_scripts": [
{ {
"matches": ["*://*.bizjournals.com/*", "*://*.businessinsider.com/*", "*://*.haaretz.co.il/*", "*://*.repubblica.it/*"], "matches": [
"js": ["contentScript.js"] "*://*.bizjournals.com/*",
} "*://*.businessinsider.com/*",
], "*://*.haaretz.co.il/*",
"applications": { "*://*.repubblica.it/*"
"gecko": { ],
"id": "bypasspaywalls@bypasspaywalls.weebly.com", "js": ["contentScript.js"]
"update_url": "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-firefox/master/updates.json" }
} ],
}, "applications": {
"browser_action": { "gecko": {
"default_popup": "popup.html", "id": "bypasspaywalls@bypasspaywalls.weebly.com",
"default_icon": { "update_url": "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-firefox/master/updates.json"
"128": "bypass.png" }
}, },
"theme_icons": [ "browser_action": {
{ "default_popup": "popup.html",
"light": "bypass-dark.png", "default_icon": {
"dark": "bypass.png", "128": "bypass.png"
"size": 128 },
} "theme_icons": [
] {
}, "light": "bypass-dark.png",
"description": "Bypass News Sites' Paywalls", "dark": "bypass.png",
"icons": { "size": 128
"128": "bypass.png" }
}, ]
"manifest_version": 2, },
"name": "Bypass Paywalls", "description": "Bypass News Sites' Paywalls",
"short_name": "Bypass Paywall", "icons": {
"options_ui": { "128": "bypass.png"
"page": "options.html" },
}, "manifest_version": 2,
"permissions": [ "name": "Bypass Paywalls",
"cookies", "short_name": "Bypass Paywall",
"<all_urls>", "options_ui": {
"storage", "page": "options.html"
"webRequest", },
"webRequestBlocking" "permissions": [
], "cookies",
"version": "1.5.3" "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/*",
"*://*.irishtimes.com/*",
"*://*.repubblica.it/*",
"*://*.letemps.ch/*",
"*://*.latimes.com/*",
"*://*.medium.com/*",
"*://*.medscape.com/*",
"*://*.technologyreview.com/*",
"*://*.mv-voice.com/*",
"*://*.nationalpost.com/*",
"*://*.newstatesman.com/*",
"*://*.nymag.com/*",
"*://*.asia.nikkei.com/*",
"*://*.nrc.nl/*",
"*://*.ocregister.com/*",
"*://*.orlandosentinel.com/*",
"*://*.paloaltoonline.com/*",
"*://*.quora.com/*",
"*://*.sun-sentinel.com/*",
"*://*.techinasia.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/*"
],
"version": "1.5.3"
}