Kongregate Chat Link Fixer

Fix Kong Chat Name Links

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
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.