r/TagPro • u/-OmicroN- OmicroN • Aug 09 '14
[Userscript] (UPDATE: v2.6.3) Chat Enhancer
see original post for more details http://redd.it/24b5mq
See version 2.5.0/2.5.1 changelog here http://redd.it/26tgj4
Just a little update to the Chat Enhancer userscript, for those who already know about the script jump to the changelog to see the latest changes and download. For those who are new and/or too lazy to look at all the previous posts to see what exactly the Chat Enhancer script is and what all it can really do, here is a little (big) feature breakdown; see the previous posts for screenshots of the features below...
Features
- The chat can be moved anywhere in your browser and resized how you see fit. Don't like the chat in the bottom left of the game viewport? You can move it to the top left. Don't want the chat to be on your game viewport at all? If your screen size/resolution is big enough and you have extra space on the sides of your game you can move the chat there.
- The same styling/formating as the ingame chat is used on the messages logged outside of the game so it blends in seemlessly as if nothings really changed.
- Chat will auto fade/hide after 10 seconds (adjustable) of no activity and fade in when someone chats again or you mouseover the chat area or when you press a key to chat.
- Custom styled scrollbar used for the chat area to scroll through the history of the chat.
- All the various options and functionaliy of the script are hidden until you mouse over the chat area then they become visible staying out of view and distraction until you need them.
- Supports all chat channels; all, team, group, and system messages in there respective colors (including flair/degree notifications).
- Since chat is now displayed outside the game canvas you can actually copy text/urls pasted ingame now.
- BUT WAIT, why copy urls when now urls are automatically made into clickable hyperlinks (that open in a new window).
- Autocomplete of usernames while typing ingame. (see variable var autocomplete = true;) Setting to true will autocomplete while you type, setting to false will function like IRC in which case you press TAB to auto complete a name. Also note for each way you press the TAB key to cycle through names that start with whatever letters you've typed thus far. The autocomplete script is http://imankulov.github.io/asuggest/ so if you go there and scroll to the last 2 examples on the page that shows the auto complete on and requiring tab press methods if you want to see which one you prefer.
- Ever wanted to save the chat log of a game to your computer? Maybe someone posted some good information on something? Maybe someone is spamming the chat and you want to save some proof outside of a screenshot? Well now you can do that as well! Clicking the download button will activate the save feature which will save when the game ends/browser reloads.
- Clicking on a username in the chat opens up an options menu for you to report them, go to there tagpro profile (opens in a a new window), or lookup there tagpro-stats (also opens in a new window).
- When pressing any of the keys to initiate chat ingame whether its to all, team, or group; the input box you type your message ingame on will now have a colored border around it giving you an indication of the current channel your about to send your message too. So if you press ENTER key it'll show a white border around the input box, pressing T or any other team chat key bind will show your teams color around the input box and pressing G or any other group chat key bind will show a gold border around the input box. No more accidently sending your message to ALL when you meant team because you pressed the wrong chat initiate key and couldn't tell who you were sending too.
- Supports the same functionality on the group page as well including auto hyperlinking urls and clicking on any player in the player list on the group page will show you the options to go to that players profile or lookup there tagpro-stats.
- Coded to work on all the other servers including the testing servers tangent, newcompte, and justletme.be
- Color coded team join/leave messages to more easily identify which team someone has joined on.
Changelog
- [new] When pressing a key to chat the chat input box will show below the chat text area where ever you have placed it. Instead of its fixed spot in the bottom left corner of the game canvas.
- [new] Also when pressing a key to chat the chat window will fade back in if its not active, this is so if your trying to reference something in chat with your response you can see it without having to mouse over the chat area to fade it back in.
- [new] Worked with AMorpork to make it so profile/stat lookups use tagpro-stats.com directly to have the most up to date information.
- [fix] No duplicate chat join/leave messages.
- [fix] Someones when you first join a game you'd see the normal ingame chat messages along with the scripts chat area, that might be fixed now... if it happens just go to your profile page and disable ingame chats.
Screenshot
Showing the new fade in when chat input activated, along with positioning the chat input below the chat area.
http://i.gyazo.com/2b40e3c85ed7ca26b22180f40a85f68f.gif
Download
https://www.dropbox.com/s/h4pspgzmq55x9xt/tagpro-chatenhancer2.6.3.user.js or
https://gist.github.com/omicr0n/779a4087eed53dbc819e/8b785a083b67f0d58b0d44eecb45781d63299586
OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN
2
u/Onomatopoeiac Old Neb Kenobi Aug 09 '14
Every time I see "chat enhancer", I think of this freestyle battle line from Eydea (RIP).
2
u/JohnnySZS Bowlarity Aug 09 '14 edited Aug 09 '14
I like it, but there's a few things. It looks like the duplicate join messages are not fixed with the newest version... See here. Also in that screenshot you can see that it doesn't properly scroll all the way at the start. It also fails to scroll during the middle of the games as well. I don't know what causes it, but it's pretty annoying. Also, the auto complete button is enter, not tab, so that makes it weird when trying to chat. Finally, I think there should be an option to put the chat in the default chat location, for those wanting all the cool features, but still liking the position. But overall it's really cool!
2
u/mentalfist 420 / Chord Aug 09 '14
sweet :-)
2
u/[deleted] Aug 09 '14
Nicely done!
1
u/FawltyTowersMC Fawlty :: CBs alum Aug 11 '14
Love this script. Thanks bud!
0
u/[deleted] Aug 09 '14
[deleted] — view deleted comment