Kongregate Chat Link Fixer

Fix Kong Chat Name Links

作者
aspyderwebb
今日安裝
0
安裝總數
3
評價
0 0 0
版本
0.0.1
建立日期
2016-03-26
更新日期
2016-03-26
尺寸
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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址