Page 1 of 1

Script Permissions [Chrome]

Posted: Sun Apr 13, 2014 8:20 pm
by Timbones
Following various posts to many of the script threads, what permissions should we developers be adding to our manifests? The obvious one is to restrict scripts to only run on Waze URLs, otherwise users would get performance impact when they visit other sites.

What other permissions need to be specified? Is there a minimal access template we can all start with? Let's collect useful information in this thread....

Re: Script Permissions [Chrome]

Posted: Mon Apr 14, 2014 8:20 pm
by BellHouse
I think the only permissions a WME extension needs is this (which matches with Timbones' suggestion):

Code: Select all

	"content_scripts": [ {
		"matches": [
			"https://editor-beta.waze.com/editor/*",
			"https://editor-beta.waze.com/*/editor/*",
			"https://www.waze.com/editor/*",
			"https://www.waze.com/*/editor/*"
		],

Re: Script Permissions [Chrome]

Posted: Mon Apr 14, 2014 7:40 am
by OyyoDams
In Toolbox, I just removed this part from manifest.json:

Code: Select all

  "permissions": [
        "tabs", "http://*/*"
    ], 
It works :)