您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Moderator names appear orange in chat
- // ==UserScript==
- // @name Orange Moderators *OLD*
- // @namespace skyboy@kongregate
- // @author skyboy
- // @version 1.1.0
- // @description Moderator names appear orange in chat
- // @include http://www.kongregate.com/games/*/*
- // @exclude http://www.kongregate.com/games/*/*/*
- // @homepage http://userscripts-mirror.org/scripts/show/72296
- // ==/UserScript==
- if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname))
- setTimeout(function() {
- window.location.assign("javascript:void((function(){var f=ChatDialogue.prototype.displayUnsanitizedMessage,t=ChatDialogue.prototype.displayUnsanitizedMessage=function(e,d,a,b,q){if(e==this._holodeck._username)return f.call(this,e,d,a,b);if(!a){a={}}if(q&&(q=q.variables).moderator&&!q.admin){a['class']?a['class']+=' mod_message':a['class']='mod_message'};return f.call(this,e,d,a,b)};t=document.createElement('span');t.update('<style>#kong_game_ui .chat_message_window .mod_message .chat_message_window_username{color:#BA6328 !important}</style>');$('gamepage_header').appendChild(t)})())");
- }, 1250);