Switch to full style
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.

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.
Post a reply

Re: Script authors: don't use *.waze.com or waze.com/*

Tue Jun 07, 2016 7:39 am

How about
Code:
// @include /^https:\/\/(www|editor-beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor\/.*$/

Re: Script authors: don't use *.waze.com or waze.com/*

Tue Jun 07, 2016 10:58 am

Glodenox wrote:EDIT: one downside I should mention to using this regex is that the pop-up that users get will be a lot less readable for non-technical people. A list of URLs with some asterisks can be understood. Regex on the other hand...

True, but how many "totally non-technical" users are installing custom scripts for modifying web pages anyway? ;)

Re: Script authors: don't use *.waze.com or waze.com/*

Thu Apr 14, 2016 9:15 am

It should be excluding
https://www.waze.com/*user/editor/* so that it will exclude all locale translated user profiles as well

Re: Script authors: don't use *.waze.com or waze.com/*

Thu Apr 14, 2016 9:36 am

I also adjusted it in my original post about the editor profile exclusion. I fear that some authors may not have read down to the followup post where I realized that the locale comes before user and not after.

Re: Script authors: don't use *.waze.com or waze.com/*

Mon Apr 18, 2016 10:40 pm

This is what I use in my userscripts.
Code:
// @include         https://www.waze.com/editor/*
// @include         https://www.waze.com/*/editor/*
// @include         https://editor-beta.waze.com/editor/*
// @include         https://editor-beta.waze.com/*/editor/*
// @exclude         https://www.waze.com/user/*
// @exclude         https://www.waze.com/*/user/*
Last edited by vaindil on Wed Apr 20, 2016 7:33 pm, edited 1 time in total.
Post a reply