Kongregate Chat Link Fixer

Fix Kong Chat Name Links

Autor
aspyderwebb
Instalaciones diarias
0
Instalaciones totales
3
Calificaciones
0 0 0
Versión
0.0.1
Creado
26/03/2016
Actualizado
26/03/2016
Tamaño
533 Bytes
Licencia
Desconocida
Funciona en

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.

长期地址
遇到问题?请前往 GitHub 提 Issues。