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

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.

Moderators: Unholy, bextein, Glodenox, JustinS83

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.

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

Postby milkboy » Tue Jun 07, 2016 7:39 am

How about
Code: Select all
// @include /^https:\/\/(www|editor-beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor\/.*$/
Nexus 5 | CM 13 (Android 6.0.1 nightly)
[ img ][ img ][ img ][ img ]
Škoda Octavia III Combi 2.0 TDI RS DSG 2014 [ img ]
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 124 times

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

Postby milkboy » 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? ;)
Nexus 5 | CM 13 (Android 6.0.1 nightly)
[ img ][ img ][ img ][ img ]
Škoda Octavia III Combi 2.0 TDI RS DSG 2014 [ img ]
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 124 times

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

Postby TheLastTaterTot » 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
R5 | RI SM | CA, MA & NY AM | Mentor
TheLastTaterTot
Wiki Master
Wiki Master
 
Posts: 480
Joined: Sat Feb 21, 2015 6:46 am
Location: RI, USA
Has thanked: 300 times
Been thanked: 318 times

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

Postby TheLastTaterTot » 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.
R5 | RI SM | CA, MA & NY AM | Mentor
TheLastTaterTot
Wiki Master
Wiki Master
 
Posts: 480
Joined: Sat Feb 21, 2015 6:46 am
Location: RI, USA
Has thanked: 300 times
Been thanked: 318 times

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

Postby vaindil » Mon Apr 18, 2016 10:40 pm

This is what I use in my userscripts.
Code: Select all
// @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.
vaindil
Beta tester
Beta tester
 
Posts: 126
Joined: Tue Aug 04, 2015 6:15 pm
Has thanked: 18 times
Been thanked: 86 times

Previous

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Google Feedfetcher, jm6087