Hello everyone from the beautiful Waze Communities
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
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.
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.
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!
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.
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.
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.
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)
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.
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.
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.
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.
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.
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-…
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