ReplyEnhancement

When you type /r or /reply it gets replace with /w name message. This version doesn't replace /reload like ventero's.

  1. // ==UserScript==
  2. // @name ReplyEnhancement
  3. // @namespace skyboy@kongregate
  4. // @author skyboy
  5. // @version 1.1.0
  6. // @description When you type /r or /reply it gets replace with /w name message. This version doesn't replace /reload like ventero's.
  7. // @include http://www.kongregate.com/games/*/*
  8. // @homepage http://userscripts.org/scripts/show/75416
  9. // ==/UserScript==
  10. if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname))
  11. setTimeout(function() {
  12. javascript:void(window.location.assign("javascript:void(document.observe('holodeck:ready',function(){var p=ChatDialogue.prototype,Q=p.initialize,q=p.receivedPrivateMessage,d=function(){var b=this._input_node.value,c=/^\\/r(?:eply)?(\\s+[\s\S]*)/i;c.test(b)?this.setInput(b.replace(c, (this.lastWhisper?'/w '+this.lastWhisper:'/w')+'$1') ):0;};holodeck.chatWindow()._rooms.values().each(function(T){(T=T._chat_dialogue)._input_node.observe('keyup',d.bind(T));T._input_node.observe('focus',d.bind(T))});p.initialize=function(){ Q.apply(this,arguments);this._input_node.observe('keyup',d.bind(this));this._input_node.observe('focus',d.bind(this))};p.receivedPrivateMessage=function(a){if(a.data.success){this.lastWhisper=a.data.from};q.apply(this,arguments)}}));"));
  13. }, 1250);

QingJ © 2025

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