Kongregate Chat Link Fixer

Fix Kong Chat Name Links

Author
aspyderwebb
Daily installs
0
Total installs
3
Ratings
0 0 0
Version
0.0.1
Created
2016-03-26
Updated
2016-03-26
License
N/A
Applies to

Kongregate's latest update broke clicking on names in chat to quickly view people's profiles.

This userscript does NOT fix that by itself.

All this userscript does is re-underline people's names after you apply the fix. (It also makes the padding around each chat a more manageable 1x2 px down from 4x6 px.

To apply the fix, after you have loaded a chat window, go to the javascript console in your browser and enter the following:

ChatDialogue.MESSAGE_TEMPLATE = new Template('<p class="#{classNames}"><span class="timestamp">#{timestamp}</span><span username="#{username}" class="username #{userClassNames}" >#{prefix}#{username}</span>: <span class="message hyphenate">#{message}</span></p>')

Then press enter.

if you've done it right, it should say something like this:

object { template: "<p class="#{classNames}"><span clas…", pattern: /(^|.|\r|\n)(#\{(.*?)\})/ }

your message may be different depending on your browser.

If you're not sure how to bring up the console in your browser, this may help:

http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers

You will have to do this each time you load a new chat window, thus this fix is most appropriate for moderators or others who keep chat open a lot.