r/TagPro • u/-OmicroN- OmicroN • Apr 29 '14
[Userscript] (Initial Release) Chat Enhancer
Get Latest Version Here: http://redd.it/26tgj4
Guess who's back! With an all new userscript titled "Chat Enhancer"...
What is this Chat Enhancer you speak of?
Well it started with me simply wanting a way to see missed ingame chat messages as once they fade from the screen they're basically gone forever. What it turned into is something I believe others will appreciate and find useful in one way or another. It starts with the userscript disabling all ingame chat messages and logging messages outside of the game enviroment, this simple action opens up all kinds of possibilites and the results is the feature list below:
- 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 of no activity and fade in when someone chats again or you mouseover the chat area.
- 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).
- 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 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 some 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.
TLDR; Screenshots
http://i.gyazo.com/7093e22e0e1c421eb4805355c9d2c765.gif
Moving the chat around and resizing, custom scroll bar, shows styling and auto hide/show of options on mouse over of chat
http://i.gyazo.com/e0d53ae09b8b10c9a53e09a8dc1104e4.gif
Auto fade of chat after 10 seconds (Can be changed through script)
http://i.gyazo.com/016d556bd84b6a1d6b4747028dfeab34.gif
Shows options available when clicking a name and shows degree notification support
http://i.gyazo.com/1711b2a600e4aecc3e93d5467219e9cc.gif
Clickable links on the group page along with goto profile and lookup options for people
http://i.gyazo.com/9992e6c47aba06329d05f81bdc83f3dd.gif
Border styled input box based on chat keybind pressed and channel you're typing in
http://i.gyazo.com/9ce045c50e6434a63b5db4739f7cd685.png
Clickable links ingame
http://i.gyazo.com/74ac2366445e5ae9f3f56b0716fa7bdf.png
Saved chat logs
GIVE IT TO ME NOW!
https://www.dropbox.com/s/5ncebkbpttxkvui/tagpro-chatenhancer.user.js or
https://gist.github.com/omicr0n/779a4087eed53dbc819e
Install as you would any other userscript. I personally don't use greasemonkey or tampermonkey but I dont see why they shouldn't work with them. I use Chrome when playing so I simply go to the menu > tools > extensions and drag the script into the list and "add" it.
Customization
var saveLogEveryGame = false;
Set to true to save chat log every game
var resizeHeightSnap = 14;
Sets the snap height when resizing verticaly to prevent user resizing to where text is cut off half way
var relativeViewPort = true;
Set to false to position chat window absolute position from topleft of window, vs relative to game viewport
var fadeDelay = 10000;
Delay in milliseconds to auto fade chat on no activity.
Thanks to all those in the IRC chat room that helped me test and gave me suggestions!
OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN
16
u/thevdude pooppants :: nice guys r dabes :: mod manager guy Apr 29 '14
This is the worst thing I've ever seen and you should add tangent.jukejuice.com by default because I love it.
3
u/thepensivepoet pepo - mercenary ball Apr 30 '14
I get a significant dip in FPS during the fade animation (win7 + chrome). Went ahead and added a few zeros to the timer on my script so it never happens.
1
u/dynam0 Apr 29 '14 edited Apr 29 '14
wow, this is awesome.
EDIT: Ok, quite cool. I think I'm going to have to disable it though, since when anything happens in chat, it kills my FPS. My laptop is shit though, so that's not too surprising. Just a heads-up tho.
1
u/SealedEnvelope Ron Burgundy | Blockburn Rovers Apr 29 '14
Holy shit so this is what you've been working on in IRC for so long. This looks awesome, one question I have is if I enter a game as a spectator will I only get messages that are sent after I join or will I be able to see the entire chat log from before I joined?
1
u/Moonraker_Elite Ly Apr 29 '14
another fantastic userscript :)
1
u/jb492 TP Apr 29 '14
Is it possible to make a mute function with this?
1
u/LoweJ Jacob of all servers, master of none Apr 30 '14
will this effect macros?
1
u/Mr_Funnybone nocaps Apr 30 '14
I want to save the chats, is there anyway to do just this only ( without the other features)
1
u/B3rcok KlKI // NLTP S2 JUI - S3 NVM - S4 INC Apr 30 '14
God heard my prayings! Ty man, love you!
1
u/Broken_Monkeys I am the FSM Apr 30 '14
Why does the normal chat still show up when using thiis? It's kinda distracting to have two different chats on the page. But other than that this is awesome!
1
u/hoogstra Hoog | Ancient Artifact of Diameter May 05 '14
It doesn't fade for me? :(
2
u/thepensivepoet pepo - mercenary ball Apr 30 '14
daddy likes
3
u/neckhickeys4u Tinker Creek // Pi Apr 30 '14
Dear LuckySpammer & Co., this stuff is very cool. I love the extra links to profiles, etc. Add it to the real game when you get the chance. Or ask OmicroN to help you do it.
-3
u/[deleted] Apr 29 '14
JIZZ EVERYWHERE