Orange Moderators *OLD*

Moderator names appear orange in chat

  1. // ==UserScript==
  2. // @name Orange Moderators *OLD*
  3. // @namespace skyboy@kongregate
  4. // @author skyboy
  5. // @version 1.1.0
  6. // @description Moderator names appear orange in chat
  7. // @include http://www.kongregate.com/games/*/*
  8. // @exclude http://www.kongregate.com/games/*/*/*
  9. // @homepage http://userscripts-mirror.org/scripts/show/72296
  10. // ==/UserScript==
  11. if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname))
  12. setTimeout(function() {
  13. 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)})())");
  14. }, 1250);