Script Permissions [Chrome]

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderator: Unholy

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Script Permissions [Chrome]

Postby Timbones » Sun Apr 13, 2014 8:20 pm

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....
Timbones(6) • UK Coordinator • Forum Moderator • Global Wiki Moderator • Routing Expert
Extensions: WME Colour HighlightsWME Route TesterWME Geometries
Timbones
Coordinators
Coordinators
 
Posts: 6409
Joined: Wed Feb 09, 2011 10:33 am
Location: York, UK
Has thanked: 836 times
Been thanked: 2365 times

Re: Script Permissions [Chrome]

Postby OyyoDams » Mon Apr 14, 2014 7:40 am

In Toolbox, I just removed this part from manifest.json:

Code: Select all
  "permissions": [
        "tabs", "http://*/*"
    ],


It works :)
OyyoDams
Global Champ Mentor
Global Champ Mentor
 
Posts: 4521
Joined: Sun Sep 02, 2012 3:18 pm
Location: France
Has thanked: 379 times
Been thanked: 1058 times

Re: Script Permissions [Chrome]

Postby BellHouse » Mon Apr 14, 2014 8:20 pm

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/*"
      ],
Image
Global Champ / DACH Champ / CM Germany / Self-Management-Team Germany
BellHouse
Waze Global Champs
Waze Global Champs
 
Posts: 2912
Joined: Sun May 12, 2013 5:57 pm
Location: Cologne / Germany
Has thanked: 607 times
Been thanked: 1662 times


Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: bz2012, dspille