Kongregate Chat Link Fixer

Fix Kong Chat Name Links

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

יוצר
aspyderwebb
התקנות יומיות
0
סה"כ התקנות
3
דירוגים
0 0 0
גרסה
0.0.1
נוצר
26-03-2016
עודכן
26-03-2016
Size
533 בתים
רישיון
לא זמין
חל על

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.