// ==UserScript== // @name MuteList // @namespace skyboy@kongregate // @author skyboy // @version 1.0.1 // @description Adds a /mutelist command to chat. can be anything, and the script will attempt to find matches -> "/mutelist ^duck" will look to see if you've muted anyone who's name starts with duck // @include http://www.kongregate.com/games/*/* // @exclude http://www.kongregate.com/games/*/*/* // @homepage http://userscripts.org/scripts/show/73254 // @downloadURL none // ==/UserScript== if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname)) setTimeout(function() { window.location.assign("javascript:holodeck.addChatCommand(\"mutelist\", function(h,d){d=d.match(/^\\/mutelist\\s*(\\S+)?/i)[1];var a=0,b=holodeck._chat_window._mutings,s=\"\",p,o=[];if(!!d){for(p in b){if(b[p]&&p.match(d)){o.push(p)}}a=o.length+' matching users muted:\\xa0 '+o.join(', \\xa0')}else{for(p in b){s+=p+', \\xa0';++a};a=a+' users muted:\\xa0 '+s.substr(0,s.length-3);}h.activeDialogue().kongBotMessage(a);return false});void(0)"); }, 1250);