[Script] WME Chat addon

Hi all,

You must install it in tampermonkey for chrome and/or greasemonkey for firefox.
DO NOT INSTALL AS EXTENSION
Link to the script hosted by Greasyfork

This script improves the WME chat GUI:

  • Configuration panel: link “Settings” next to the welcome message at top of message list
  • removes duplicates messages: it hides messages, but you still receive or (perhaps) emit duplicates.
  • adds a link on user names in each message to add a “bip” message (customizable in settings)
  • adds a target link next to the user name allowing to jump to without looking for the user in the list
  • adds rank after user names
  • adds date and time or time only to each post (taken from your computer when the message is received)
  • formats links to clickable links and opens in new tab
  • formats permalinks to clickable target and jump to position, zoom, and select objects (no WME reload)
  • light blue (editable in settings) background on new messages posted by you
  • small “+” and permalink icon next to the input message area to insert current permalink
  • Chat top pannel (if open) or chat button (if closed) change color to dark red (editable in settings) if someone type a message containing a word in a custom list (see tool tip text) in settings (case unsensitive). Returns back to original color when you send a message, or close chat window.
  • Play sound on new message (mutable in settings)
  • Play sound on alert (mutable in settings)
  • Remove messages of users not in the room (optional in settings)
  • System message when a user join or leave the room (optional in settings)
  • Bell icon next to each user in the users list to insert the “bip” in the message

and some updates v0.5 v0.6 v0.7 v0.8 v0.9 v1.0

Compatible with WME Chat jumper: so each “jump” with WME Chat addon is reversible using WME Chat jumper.

Thanks to tkr85 for WME Chat jumper compatibility, and Yopinet for beta-tests.

d2

3 Likes

V0.3:

  • Chat top pannel (if open) or chat button (if closed) change color to dark red if someone type a message containing your name (case unsensitive). Returns back to original color when you send a message, or close chat window.
  • Bugfix on unsafeWindow detection

Suggestion to make date/timestamp smaller, grayish (not black) and right-aligned.

Great addon! I suggest you could make a sound play whenever a message arrives, just like Whatsapp and other IM’s…

I’d only support that if it can be muted.

A sound when new messages arrive or only if my username is mentioned?

It can be muted, Validator has that option to mute sounds when doing scans. I think it is muted by default.

Hi all,
thank you for your feedback!
I have taken into account your queries (and more ;)):

v0.4

  • Configuration panel: link “Settings” next to the welcome message at top of message list
  • “My message background color” editable (in settings)
  • “Alert color” editable (in settings)
  • “Alert match word” editable and multiple words available: see tool tip text (in settings)
  • Play sound on new message (mutable in settings)
  • Play sound on alert (mutable in settings)
  • Remove messages of users not in the room (optional in settings)
  • Show date and time or only time on message (in settings)
  • Show date and time in lower font size, grey, and right aligned
  • Changed: in a message, the user name was a link to jump to. Changed to a “bip”: insert a text containing the user name. (customisable in settings)
  • Target link next to the user name in a message to jump to (replace the link changed to “bip”)
  • System message when a user join or leave the room (optional in settings)
  • Bell icon next to each user in the users list to insert the “bip” in the message

This script is a load of good fun and usefulness for chat.

Suggest: Have Settings link be available perhaps from the top chat bar instead of having to scroll the chat window back to the beginning.
Suggest: Make the Settings dialog have a “Save” button rather than just “Close” for clarity.

Already installed and love it. Great job D2.

Please change the permissions to only access data on Waze.com or waze beta site. for more info look at the WME toolbox and validator scripts which do this properly. Thanks

If you use Tampermonkey/Greasemonkey, then the limitation is set properly. It is Chrome which doesn’t allow you to set this when you try to install it directly in Chrome. The script does have it set, but since it didn’t come from the Chrome store, Chrome ignores the site restriction.

Looks great already! Thanks for making this.

Holy hey-ho! This extension ROCKS!

I’ve added a WME Chat section and this script to the Wiki addons page.

https://wiki.waze.com/wiki/Community_Plugins,_Extensions_and_Tools#WME_Chat_Addon

Great idea! Any application security experts here that have done an analysis on the JS?

Great mod, I really love it :!:

Is there a way you add two functions in settings ?

-One to set the chat window width (default is 350px), this need to set the following :

#chat .messages { border-right: 2px solid #E9E9E9; float: left; margin-right: -2px; width: 1000px; <--here the width } #chat .messages .new-message { border-top: 2px solid #E9E9E9; bottom: 0; padding: 15px; position: absolute; width: 1000px; <--here the width }
-An one other to set the transparancy of the chat box (in % for example)

#chat .chat-body { background-color: rgba(255, 255, 255, 0.9); <-- 0.9 is for 90% of transparancy display: none; min-height: 100px; }

Thank you again :wink:

Small bug: If I activate the option “Play sound on new message”, this sound is played each time I open another WME window/tab (Chrome).

hi, many many thanks!! great script. :o :o

would it be nice if you could select some members of the chat in order to get alarms or rings just from them -not from everybody writing- when you’re in a conversation.

I would be happy to just have chat. Period. I have been a Waze editor for over a month and recently I can’t even get the chat tab or window to show up. Sometimes after several page reloads I can get it to show up (if I’m lucky).
I wasn’t sure where to post my problem. Any suggestions? I’m frustrated. :expressionless:

Version 35.0.1916.153 m

Google Chrome is up to date.

OS: Windows XP Professional

Thanks!

Request: Add highlight color for background of text in which the alert text is found. So, when the titlebar of the Chat is changed color due to match alert, that specific text is highlighted too. This will make it easy to scroll back and find where someone was chatting at you while you were away.

Request: Make it easier to dismiss the red-colored title bar from alerts. I think the only way to make it go away now is to chat or minimize the window. Suggest that it should go away when clicking anywhere in the title bar, or clicking into the chat text box.