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.

Post Reply
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] URComments-Enhanced (URC-E)

Post by
WME URComments-Enhanced (URC-E)

Version: 2021.08.30.01

Greasyfork: https://greasyfork.org/en/scripts/37543 ... s-enhanced

Description: URComments-Enhanced (URC-E) allows Waze editors to handle WME update requests more quickly and efficiently. Also adds many UR filtering options, ability to change the markers, plus much, much, more! (See next post for full feature list)

Developer(s): dBsooner through WazeDev. WazeDev owns the script and all information attached to it.

Note: URC-E is a replacement for URC and URC companion add-on scripts. With URC-E you no longer need URC or any of the different comment list add-on scripts. All current add-on scripts have been ported and work natively within URC-E. You may disable and/or remove URC and the add-on scripts. However, if you use your own "Custom" local list, you will still need to keep that add-on installed and enabled to use the "Custom" drop down. Hey, this could be a time to discuss converting to the new system? *wink* *wink*

Note 2: All features that URO+ applies to URs (filtering, map marker replacement, mouseover tooltip popup, etc.) have been included in URC-E.

CALLING COMMENT LIST OWNERS: All the URC comment lists have been ported to URC-E. They are now manageable through the below Google Sheet link. If you are the original owner of the list, please contact me via PM or Discord DM. If you no longer wish to maintain the list, I need to know that as well. If you would like to maintain a list, please also contact me and I can try to get in touch with the owner.

NEW LISTS: If you are interested in having your own list included, please contact me. The best scenario would be to have lists for states / regions or countries. I am working with several regions currently and they are following a model I have created in the SCR that allows for a group of editors to combine their ideas together to create a region list.

Current comment lists:
  • Bahasa Indonesia: projectronic
  • CommentTeam: CommentTeam (See list below) - Initial DEFAULT list
  • Custom (for use by those that still have an addon static "custom" list)
  • Custom G Sheet (for using your own custom comment list hosted in a Google Sheet)
  • Croatia: fuchserl
  • Dutch - Belgium: WimVandierendonck
  • Dutch - Netherlands: moweez
  • English - Australia: age4670, LostInMyMaps
  • English - India: moweez
  • English - International: moweez
  • Estonian: matsalka
  • French: Corentin-48, asph4lt
  • German: Iridium1
  • German - Austria: fuchserl
  • Israeli Hebrew
  • Italian: m4rc072
  • Lithuanian: moweez
  • Malaysia (en-zh-ms) - Rising_Sun
  • Persian: babak_khd, BehnamNHappy, Shrm75
  • Polish: mdymek
  • Portuguese - Brazil: GibiruX_ - AUTOSWITCH for country Brazil
  • Portuguese - Portugal
  • Romanian: spookyx
  • South Africa: adrianvrsa
  • Spanish - Bolivia: crotalo
  • Spanish - Chile: Gasparfox
  • Spanish - Colombian: mincho77
  • Spanish - Dominican: RafaCintron, mincho77
  • Spanish - Ecuador: aamazotr
  • Spanish - Mexico: arielorellana
  • Spanish - Puerto Rico: cotero2002 - AUTOSWITCH for country Puerto Rico
  • Spanish - Spain: huakayo
  • Spanish - Venezuela: moweez
  • Switzerland - DE: vince1612 (Auto-switch for states with DE language)
  • Switzerland - FR: vince1612 (Auto-switch for states with FR language)
  • Switzerland - IT: vince1612 (Auto-switch for states with IT language)
  • Ukraine: Sapozhnik
  • USA - SCR: SCR CommentTeam - AUTOSWITCH for states Arkansas, Louisiana, Mississippi, Oklahoma and Texas
  • USA - SER: itzwolf - AUTOSWITCH for states Alabama, Florida and Georgia
  • USA - NOR: NOR CommentTeam
  • USA - MAR: MAR CommentTeam
  • User: PesachZ: PezachZ
CommentTeam List Representatives: Restriction system enforcements:
  • No autosend reminders
    • USA - SAT Region (All States)
    • USA - SCR Region (All States)
    • USA - West Virginia
Changelog:

Code: Select all

2021.08.30.01: CHANGE: Update zoom levels to new WME values.
2021.08.27.01: CHANGE: Update zoom levels to new WME values.
2021.07.14.01: BUGFIX: Fix for WME changes - missing day names.
2020.09.09.01: BUGFIX: Permalink shortcut icon not working correctly.
BUGFIX: Side panel alignments in certain situations.
2020.09.08.02: NEW: Setting to auto zoom out after closing UR panel.
NEW: Shortcut to insert permalink to UR.
NEW: Spreadsheet shortcut of "$PERMALINK$" to insert permalink to UR.
CHANGE: Faster load time.
CHANGE: Far less script execution awaits, letting script run more synchronously.
CHANGE: Style compatibility with WME v2.62-35-g266443036.
BUGFIX: Script style setting not correctly showing in settings.
BUGFIX: Better error handling.
BUGFIX: WazeWrap stored settings not applied in some cases.
BUGFIX: Multiple event listeners in certain situations.
BUGFIX: Width of UR panel not wide enough for text (native WME issue).
2020.07.27.02: CHANGE: WME map object references.
BUGFIX: Spinner handling routines to reduce or remove stuck spinning.
BUGFIX: Per comment list tag email not saving correctly.
2020.06.25.01: CHANGE: Auto save after closed or NI setting no longer requires the
auto click open, solved, NI setting.
CHANGE: Reconfigured MutationObservers for better performance.
CHANGE: Removed passing of UR ID between functions as assigned variables.
BUGFIX: UR session data not always populating correctly.
BUGFIX: Force reopening of panel if reminder comment automatically sent and
panel was loading or open.
2020.06.16.01: NEW: Added a setting to exclude tagged URs from auto-send reminders
CHANGE: Latest WME compatibility.
CHANGE: Major under-the-hood work to enhance performance.
BUGFIX: Further refinement for latest WME compatibility.
BUGFIX: Error loading in non-translated language locales.
BUGFIX: Restrictions causing errors in certain countries.
BUGFIX: Shortcuts chevron upside down.
2019.12.06.01: CHANGE: WME v2.43-40-gf367bffa4 and future compatibility.
2019.10.11.01: NEW: Filter icon in tab title bar to quickly toggle UR filtering.
NEW: New spinner icon in URC-E tab title bar to indicate when URC-E is
actively processing something.
BUGFIX: UR ID not being detected correctly in certain situations.
2019.09.25.01: NEW: Remember collapsed state of More Information box in UR Panel.
NEW: Unknown venue name (no name on venue / place) is now translatable
to locale(s).
NEW: Unknown road name (no name on road / segment) is now translatable
to locale(s).
BUGFIX: Translations not loading correctly in certain situations.
BUGFIX: Variable detection improvement.
BUGFIX: Variables slipping through auto-post reminder routine in certain
situations.
2019.08.30.01: CHANGE: Changed restrictions applied to be a warning icon in
settings and comment list.
BUGFIX: Another fix for the restrictions alert.
2019.08.28.01: CHANGE: Shortcuts in UR are now collapsible, with state retained in settings.
BUGFIX: Shortcuts not correctly initiating other events.
BUGFIX: Country and state being re-added multiple times by WME. (workaround)
2019.08.27.01: NEW: New comment box will have a peachish background color
if append mode is enabled.
CHANGE: Major overhaul of output text to limit number of jQuery operations.
BIG speed increase.
CHANGE: Removed automated custom sheet creation / conversion.
CHANGE: Added manual custom sheet creation / conversion (conversion will
still work).
CHANGE: Alert box completely removed in favor of WazeWrap alerts (missed one
or two).
CHANGE: Ability to translate intersection / segment naming to locales.
CHANGE: Catch if row 25 is not set to "GROUP TITLE" and report gracefully.
CHANGE: Queue auto-sent reminders info box and display after completion of
routine.
CHANGE: Better handle carriage returns during shortcut insertion.
BUGFIX: Restoring settings would inadvertantly get overwritten by WazeWrap
backups.
BUGFIX: Better handling of errors in processing so mask boxes get removed.
BUGFIX: Improper handling of mouse events in some browsers.
2019.08.16.01: NEW: Custom text replace variables via sheets.
NEW: Custom tagline setting. (Per comment list or "master")
NEW: More shortcuts: current date, current date casual, current day of week,
current time, current time casual, custom tagline, place address, place
name, UR type. (Available via UR panel and variable in comments)
NEW: $SELSEGS_WITH_CITY$ : Same as $SELSEGS$, except includes 'in CITY' if
selected segment(s) have a matching primary city, or only one has a
primary city.
NEW: Link to enable / disable URCE UR filtering added to comment tab.
BUGFIX: Per comment list text boxes not saving correctly.
BUGFIX: Check for ALL $$ in comment before automatically clicking send.
BUGFIX: Selected segments variable replacement could show undefined.
2019.07.24.01: BUGFIX: Further refinement of unstacking and selection.
CHANGE: Future deprecation of properties for countries and states.
2019.07.23.01: NEW: WazeWrap settings storage ability.
CHANGE: Compatibility with latest WME release.
CHANGE: Cleanup of mutation processing.
BUGFIX: Per comment list settings toggles.
2019.05.04.01: CHANGE: Using WazeWrap alert system.
BUGFIX: Restrictions not updating correctly on map move in certain situations.
BUGFIX: Need translation message box not displayed correctly.
BUGFIX: Last comment more than days old filter.
2019.04.30.01: NEW: Filter by closed by (comma separated list of usernames).
NEW: Link to Custom Google Spreadsheet on settings tab.
CHANGE: Filter by keyword is now regex compatible.
REMOVED: Filter by type Waze automatic (deprecated).
BUGFIX: Check restrictions and load comment list failed to run during mode
change.
BUGFIX: Re-initialization of background tasks failed to run when returning from
events mode.
BUGFIX: Alignment of "Use URC-E Master Settings setting" in different locales.
BUGFIX: Zoom out links did not work.
BUGFIX: Switching comment lists could result in incorrect default comments.
2019.04.12.02: BUGFIX: 2019.04.12.01 had issue with new fully casual shortcut.
2019.04.12.01: NEW: Casual day and time shortcut and variable for use in custom comments. (See
tooltip)
NEW: Invert filters.
NEW: Filter URs with / without comments from specified user(s).
CHANGE: Slight change to casual times. Afternoon now lasts until 1759 instead of
1359.
CHANGE: $SELSEGS$ no longer gives popup.
CHANGE: New comment box detects variables (text wrapped with $\'s) and disables
the send button until they are no longer present.
CHANGE: UR Overflow handling now obeys WME layer setting for show/hide closed.
ENHANCEMENT: Longer wait for Waze model to populate countries data.
ENHANCEMENT: Background tasks are temporarily disabled during overflow so data
from overflow can be reused for speed.
ENHANCEMENT: Complete overhaul to conform with stricter eslint rules.
ENHANCEMENT: UR marker mouseover now wraps long descriptions at 80 characters to
prevent extremely wide popups.
BUGFIX: Loading fails if comment list contains empty row. (again)
BUGFIX: Hard fail changed to Soft fail for UR in URL when UR Panel never appears.
BUGFIX: Username was being added to pill even if the setting was disabled.
BUGFIX: Certain old URC custom addons threw an error due to formatting.
2019.03.29.01: NEW: Restriction system for use by region / country leadership!
NEW: Backup URC-E settings to JSON.
NEW: Restore URC-E settings from backup JSON file.
NEW: Reset URC-E settings to default.
NEW: Create your own Custom List with a Google Spreadsheet!
NEW: Convert your current custom list to a Google Spreadsheet!
ENHANCEMENT: Moved all timeouts into an object.
ENHANCEMENT: Combined banners and panel alerts into single function.
ENHANCEMENT: Append mode / shortcuts / insert comment / etc. now return focus to
the new comment box.
ENHANCEMENT: Append mode now ensures there is a blank line before and after the
inserted comment.
CHANGE: Auto zoom in on new UR only zooms in for URs with zero comments and you
are zoomed out beyond zoom level 5.
CHANGE: Auto center on UR will now recenter the map for ALL URs at the current
zoom level.
CHANGE: Auto zoom out after comment will zoom you back to the zoom level you were
at when the UR Panel opened.
BUGFIX: Hide without description failed to filter in some instances.
BUGFIX: Some timeouts needed indexing. Now indexed based on random ID generated
at time of timeout call.
BUGFIX: Comments erroneously inserted into map comment new comment box as well.
BUGFIX: Pill colors not applying correctly. New color added (see forum thread).
BUGFIX: Custom marker by custom text not working correctly.
2019.03.06.01: NEW: Per comment list settings!
ENHANCEMENT: Handle changing to MTE mode and back cleanly.
ENHANCEMENT: Append mode now inserts new comment at cursor position.
ENHANCEMENT: Customizable unstack sensitivity and disable above zoom (zoomed out
beyond) level.
ENHANCEMENT: Unstack markers now temporarily hides markers not involved in the
unstacking.
ENHANCEMENT: Split Auto set new UR comment (with description) out to not insert
on SLURs and added a new setting of Auto set new UR Comment (SLUR).
ENHANCEMENT: Better overflow handling. Now queues sub-quadrants to get ALL URs.
ENHANCEMENT: Improved center on UR (popup link), UR Panel crosshairs click and
center on UR function.
ENHANCEMENT: Added dismiss button for over limit message and need translation
message.
ENHANCEMENT: Removed unnecessary logging.
BUGFIX: Popup prevented selecting unstacked UR in some situations.
BUGFIX: Unstack / restack routine sometimes flickered the UR markers involved.
BUGFIX: Default comment with $SELSEGS$ did not give popup alert.
2019.03.03.01: Incorrect version # released for version 2019.03.01.01.
2019.03.01.01: NEW: UR overflow handling (aka "backfill").
NEW: Warning for more than 499 URs on screen when UR overflow is not enabled.
NEW: Auto refresh setting on zoom / pan.
CHANGE: Auto center on UR now automatically centers at current zoom level for all
levels.
ENHANCE: Debug logging for marker manipulation now queues into single per
manipulation type log message.
BUGFIX: Filtering intermittent during zooms and other functions.
2019.02.21.01: NEW: Added shortcuts for text insertion to UR Panel.
NEW: Added "expand all" and "collapse all" links to settings and comment list.
NEW: Need translation banner for languages (locales) without a translation.
NEW: Switched to using WazeWrap for WME event hooks.
BUGFIX: Auto set comment issue when UR created with LiveMap.
ENHANCED: With new shortcuts, dependency on panel swap for segment name insertion
is removed.
2019.02.18.01: NEW: Added text replacement options in comment lists for drive date and time.
ENHANCED: Auto set new UR comment split into two settings (with and without
description).
ENHANCED: Title differentiation for beta script.
BUGFIX: Entering event mode and back to default caused duplication of tab icon
and random marker issues.
2019.02.08.01: NEW: Ability to append a comment (Append mode).
NEW: Switch comment lists from the comment list tab.
Note: This does not change your default list and is not saved.
BUGFIX: Selecting a MP caused URC-E to inadvertently process.
2019.02.06.02: CHANGE: Auto Close UR Panel now closes the UR panel on any comment send.
BUGFIX: Parsing of old static list failed for some users.
2019.02.04.02: NEW: WazeWrap update integration.
BUGFIX: Not able to change lists in some situations.
BUGFIX: ZoomIn on new.
BUGFIX: WME bug workaround.
BUGFIX: AutoCenter on commented.
BUGFIX: Last Comment By in popup.-
Other slight changes to prevent future bugs.
2019.02.01.01: UPDATE: Additional comment replacement text.
2019.01.31.04: BUGFIX: Circumvent WME map marker bug.
2019.01.31.03: BUGFIX: Double click to dismiss didn't restack markers.
2019.01.31.02: NEW: Double click to dismiss UR marker tooltip
NEW: UR marker tooltip delay.
2019.01.31.01: First public release of URC-E!
URC-E Google Sheet: Here

Special thanks:
  • WazeDev team! Specificaly MapOMatic and JustinS83. You all have helped me along this road and I greatly appreciate it! Both of you are directly responsible for several of the code inclusions in URC-E, so without you, it wouldn't have happened.
  • URC-E beta testers! Too many to name individually, but know each of you are important to this script!
  • RickZabel for the original URC code. Working URs was made so much easier once URC was created. Out went the copy / paste from our own text files and in came an automated system. I am grateful for this script and wanted to enhance it beyond what it did at the time. Hints the name: URComments-Enhanced.
  • The URO+ team. Their script truly has revolutionized what WME can do. It offers so many options and does so many different things! I took the UR portion of their script (all the options it does in respect to URs) and used these as a jumping point for the URC-E additional feature set.
TL;DR: The primary goal of the script was to increase efficiency and add the ability for states, regions and/or countries to be able to create and manage their own custom lists in a simple way. Then, I wanted to make sure these lists were known about and were utilized when working a UR in one of the custom list areas. Thus, I created an "auto-switch" option. So when you open a UR in an area that has a specific list, you are automatically switched to that list. Then the script really took off. I added many more features as well as made the interface a little more spiffy.

URC-E was written new from the ground-up, taking the basic look, feel and funcationality from URC and URO+. However, all underlying code was written with efficiency, speed, resource management, etc. in mind. Gone are the constant every 10ms-100ms running of functions. In are the way of the future: MutationObservers. What does this mean? URC-E doesn't do anything while WME is sitting idle. It only reacts to changes as they happen in WME, while retaining ALL the functionality of URC and URO+ (in regards to URs) and then some!

Want to know more or what certain features do? Read on below.

Thank you everyone! Enjoy!

Screenshots:
Animation GIFs:
https://i.ibb.co/kc181yn/Comment-list-Animation.gifhttps://i.ibb.co/TbtXbn8/Tooltip-Animation.gifhttps://i.ibb.co/Wxz1m27/Auto-Switch-Animation.gif
Settings:
https://i.ibb.co/RjPwbVk/URCE-Settings-01.png https://i.ibb.co/dGcf45x/URCE-Settings-02.png https://i.ibb.co/JKHPqTw/URCE-Settings-03.png https://i.ibb.co/JmWqhM9/URCE-Settings-04.png
UR Panel:
https://i.ibb.co/hDn1ZL7/UR-Panel.png
Pill color chart:
https://i.ibb.co/sK4Sb5Z/URC-E-colors.png
 
 
 
 
 
Last edited by dBsooner on Mon Aug 30, 2021 7:54 pm, edited 50 times in total.

Post by bwawsc
I've read through all of the posts here and didn't see my issue: filtering doesn't seem to work consistently. I can set (e.g.) Hide Waiting. It doesn't hide. I click the "Link" icon (bottom right corner of the WME screen) to reload, and when Waze reloads it hides the UR that is "waiting". Then I zoom out one step and it's no longer hidden. For some reason it's not executing the Hide functionality except when WME starts up.

This is with current production WME and 2019.02.08.01 of URC-E. Possible interaction with URO+?
bwawsc
Map Editor - level 3
Map Editor - level 3
Posts: 400
Has thanked: 211 times
Been thanked: 83 times


Post by Alpha_VA
mrsmith66 wrote:Not loading on Chrome on mac.

UPDATE: I disabled WME Magic and it loaded correctly.
Here, URC-E on Win Chrome is not working at all, even if it's the sole script activated in Tampermonkey.
Alpha_VA
Posts: 209
Has thanked: 61 times
Been thanked: 22 times

Post by Alpha_VA
I really appreciate this script, making work on UR, ... a lot easier.

I have one issue, since today, a UR doesn't open anymore automatically when I click on the center icon, the url shown does not contain the UR id. Anything I need to reconfigure?
Alpha_VA
Posts: 209
Has thanked: 61 times
Been thanked: 22 times

Post by boonie-oet-gelaen
Both is this version and also the previous version the button "sign in/autorize" will ask for which Google account I want to use. As expected. But after I select one, I get an error message.

"Inloggen met Google is tijdelijk uitgeschakeld voor deze app
Deze app is nog niet geverifieerd door Google voor gebruik van de functie 'Inloggen bij Google'."

This is in Dutch but it is saying that this app is not yet verified by Google. And that logging in with Google is temporarily switched off.

Is it a general issue? Or am I doing something wrong?

Thanks,
Dave
boonie-oet-gelaen
Waze Local Champs
Waze Local Champs
Posts: 42
Has thanked: 42 times
Been thanked: 16 times

Post by age4670
I am just starting to put together some custom comments and am hitting a few snags.
  1. $SELSEGS$ and $SELSEGS_WITH_CITY$ don't appear to want to work. There is definitely a segment selected and the shortcuts in the popup do insert correctly.
  2. Can variables only be used once per comment? Subsequent occurrences show the code and not the expected result.
For example:

Code: Select all

Waze did not send us enough information to fix your $URTYPE$ report near $SELSEGS_WITH_CITY$. Would you please give us as much information as possible about the $URTYPE$ problem that you encountered. Thanks!
Will output:

Unfortunately Waze did not send us enough information to fix your Wrong driving direction report near $SELSEGS_WITH_CITY$. Would you please give us as much information as possible about the $URTYPE$ problem that you encountered. Thanks!

Any help appreciated.
age4670
Area Manager
Area Manager
Posts: 253
Answers: 1
Has thanked: 131 times
Been thanked: 42 times


Post by axel_miami
Hi dBsooner!

I'm Belarus Community coordinator.
I want to use this script in Belarus and want to translate in Belarusian and Russian language.
We need to have 2 pages in google sheet:
  • Belarus-Be
    Belarus-Ru
Please, contact with me.
axel_miami
Coordinators
Coordinators
Posts: 14
Has thanked: 3 times
Been thanked: 13 times
Country Coordinator: Belarus
Country Manager: Belarus

Post by Andy_Na
Hey

Since last update I got some issues. I have heard from other editors having the same issue. I wonder why no one has posted it yet.

First, UR in the feed tab is not shifted to the right. (works only first time)
Second, If I klick "next issue" nothing happens. (also works only for the first time)

Fault appears on Firefox and chromium browsers, other scrips were deactivated to check twice.

One minor problem: If I scroll down my feed list and switch to the comment list on URC-E, it is also on the bottom without scrolling.

Thank you for your efforts.
Regards
Andy_Na
Andy_Na
Area Manager
Area Manager
Posts: 374
Has thanked: 209 times
Been thanked: 110 times
AM Region Remstal, Filstal, A8 (Alb/Fildern)
AM & Closures Berlin/Brandenburg (innerhalb Berliner Ring A10)

https://s.waze.tools/betc.png
https://www.ib-ziessow.de/images/waze/rip_tsd66.png

Post by Andy_Na
Andy_Na wrote: Mon Apr 05, 2021 5:59 pm Hey

Since last update I got some issues. I have heard from other editors having the same issue. I wonder why no one has posted it yet.

First, UR in the feed tab is not shifted to the right. (works only first time)
Second, If I klick "next issue" nothing happens. (also works only for the first time)

Fault appears on Firefox and chromium browsers, other scrips were deactivated to check twice.

One minor problem: If I scroll down my feed list and switch to the comment list on URC-E, it is also on the bottom without scrolling.

Thank you for your efforts.
Regards
Andy_Na



 
Just wanna ask if someone has the same problems and will there be an update in the near future?
Nothing happens so far.... :?
 


Regards
Andy
 
 
 
Andy_Na
Area Manager
Area Manager
Posts: 374
Has thanked: 209 times
Been thanked: 110 times
AM Region Remstal, Filstal, A8 (Alb/Fildern)
AM & Closures Berlin/Brandenburg (innerhalb Berliner Ring A10)

https://s.waze.tools/betc.png
https://www.ib-ziessow.de/images/waze/rip_tsd66.png