[Script] WME UR Color Selector

Hello everyone from the beautiful Waze Communities :slight_smile:

At the request of an editor in the Dutch Waze community, I created the script below.

The script is called: WME UR Color Selector

The script adds an extra tab to the scripts sidebar in the editor. This tab allows you to set a color for the language a reporter uses in their app when creating and opening a UR.
For example, if you speak Dutch, select Dutch in LC and give it a nice color. As soon as you open a UR, you’ll immediately see that color or the default color. If you see the color, you know you can respond in your native language.

A preview is below :slight_smile:

That’s all it is. I’ve been scripting things like bots for Discord and building websites for a while now. Because I wanted to contribute to the scripting community, especially for the Dutch branch of Waze, I started delving deeper. I hope the script will be useful to some.

If you have any questions or bugs, please feel free to contact me. I’ll do my best to answer questions and fix any bugs as soon as possible.

Download on Greasyfork

Thanks to boonie-oet-gelaen for the idea :smiley:

6 Likes

On request of two Dutch editors:

The script has been updated to v2.7.

  • I have added nl-BE and français_BE to the languages.
  • An option has been added to color all other unselected languages, making it easy to see if it’s not your native language, for example.
  • Small bugfixes.

Happy editing you all :heart:


1 Like

Thank you. It would be nice if the language was visible before opeing the UR, from the color of the UR icon on the map.

1 Like

+1
if you have time to do it
thank you for the script anyway @DeKoerier

1 Like

I’m gonna try this script.
Thanks @DeKoerier

1 Like

Nice one @DeKoerier, really handy for highlighting the information visually!

Can I suggest one thing to keep the UI clean?

Put the colour before the language name in the list. Something like this:

1 Like

Hi @Fkzy (and @AndyLaode),

Thank you for your reply and idea.
I completely understand what you mean with your message. However, Waze has a standard color code for URs on the map, based on the duration an UR is open. I don’t want to change these color codes. I’ll see if it can be made optional for those who do want it. I will reply in here when a new version is added on Greasyfork. :smiling_face:

Edit: I haven’t yet been able to add a color to the UR icons. This is mainly because I can’t get a WME SDK function to retrieve all currently displayed URs to work with the notification language. I think this is mainly because it only loads when you click on a UR. For example, when using URO+, a UR only loads when you hover over it (then you see a popup with information).

Hi @YanisKyr. Thank you for your reply! :slight_smile:
I haven’t worked hard on the looks yet, but mainly on the functionality. I’ll definitely look into it and do a rework soon.

Edit: Thank you for your idea, the UI has been changed and it’s ready in version 2.8 now on Greasyfork.

2 Likes

The script has been updated to v2.8.

  • UI rework to neaten up the language and color buttons and to position the Save button more neatly (thank you @YanisKyr).
  • Also, a bug fix: added an option to the dropdown menu to prevent reselecting a language once it’s already selected.",

Happy editing you all :heart:

1 Like

Mike,
URO+ seems to be able to fetch de number of comments and the number of days since the last comment, for the URs on the map from zoom level 14 and up.

1 Like

Hi @jeancleroy,

Thanks for thinking along. I’ll see how they do that tonight. My script is structured differently and then I may have to rebuild everything. You will hear from me when there is a sequel.

Hello everyone! :slight_smile:

I’m happy to announce that version 3.0 is now available to download via Greasyfork.

  • The language system has been changed and improved (future-proofing). We recommend removing languages if they no longer work and re-adding them from the dropdown menu!

  • Additionally, at the request of several members via Discuss, the option to place a colored circle on/over the UR has been added. Due to Waze’s functionality, the UR icon itself cannot be customized. This option can be enabled via the sidebar menu. Feedback is appreciated; any necessary adjustments can then be made to the new UR overlay, (Thank you @jeancleroy and @Fkzy)

Happy editing you all :heart:

2 Likes

Hi Mike,
Thanks for the great update.
Still one more little request: Would it be possible to also add the “colorcircle” in the UR list on the left?

‘English (Ireland)’ [or “eng_ireland” in WME speak] is a new language option in the app, but not in WME (yet).
Could you please add it to the list?

This has been added to 3.0. You can re-download the version on Greasyfork.

I will add this, if possible, in a new version for you. Problem is, that there is no available SDK for the UR list in the Solve sidebar. So, unfortunately, no ETA yet.

1 Like

Thank you, Mike, for the great feature of coloring the UR on the map!

I was confused several times by the behaviour of the list of languages/colors. I believe that the “save” button saves the colors, while the list of languages is automatically saved. And, even if you do not explicitely save, the settings are kept until you refresh the WME.

I suggest not saving/keeping anything unless the “save” button is used.

Of course, you’re partly right. Ultimately, my goal is to save everything immediately upon change. So, as soon as you add a language: save. As soon as you change the color: save. This makes the save button completely redundant and makes the UI a bit nicer. I’ve already put some work into it, so you’re noticing. The only thing left to do now is to adjust the color changing so the save button is useless. :slight_smile:

I’ve heard from several people that they thought the save button was unnecessary and wanted it removed. Of course, I try to listen to everyone and consider all their ideas, but I can’t always make the best decision for everyone. :smiley:

Actually, Mike, indeed, it would be even better without the save button, with everything implicitely saved. I assumed it was not possible to completely eliminate the save button.

1 Like

Hello everyone! :slight_smile:

I’m happy to announce that version 3.2 is now available to download via Greasyfork.

  • The save button has been removed. With each update, it became increasingly useless, only saving the color change. Now, everything saves automatically when a change is made.
  • Bugfix: When you used the reset button on a language, it would remain on the UR icon. This no longer happens.

Happy editing you all :heart:

Hello everyone! :slight_smile:

I’m happy to announce that version 3.3 is now available to download via Greasyfork.

  • Added expandable color detail menu (▼/▲) for each language.
  • New HEX field with Copy, Paste, and Save as Favorite options.
  • Saved colors palette: quickly reuse previously chosen colors.
  • Apply saved colors to any language with a single click.
  • Remove saved colors via Alt+Click or right-click.

Happy editing you all :heart:

Hi, great script :slight_smile: I have two things:

  1. Would it be possible to support setting a color for all language variants? I mean that I could set EN* to be color X, without having to set en-GB, en-US, en-…
  2. The UR circle does not always appear (when I switch using the issue tracker); maybe it is a z-index problem?

Bonus: maybe do not limit this nice script to the languages, I guess many people would like to highlight when the user I not driving a private vehicle or something like that :slight_smile:

1 Like