WhisperCatch *OLD*

Catches missed whispers

  1. // ==UserScript==
  2. // @name WhisperCatch *OLD*
  3. // @namespace skyboy@kongregate
  4. // @author skyboy
  5. // @version 1.1.0
  6. // @description Catches missed whispers
  7. // @include http://www.kongregate.com/games/*/*
  8. // @homepage
  9. // ==/UserScript==
  10. if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname)) {
  11. setTimeout(function() {
  12. var addProxy = function(q){window.location.assign("javascript:void(document.observe('holodeck:ready',function(){holodeck.addChatCommand('"+q+"',function(h,i){h.activeDialogue().kongBotMessage('Caught /"+q+"');return h.sendWhisper(h,i)})}));");}
  13. addProxy("q");addProxy("e");addProxy("s");addProxy("a");
  14. addProxy("2");addProxy("d");addProxy("3");
  15. }, 1250);
  16. }