Muted users

Check if you have still muted somebody.

  1. // ==UserScript==
  2. // @name Muted users
  3. // @namespace arreloco
  4. // @description Check if you have still muted somebody.
  5. // @include http://www.kongregate.com/games/*
  6. // @version 0.0.1.20160306133130
  7. // ==/UserScript==
  8. function init()
  9. {
  10. var dom;
  11.  
  12. try{
  13. if(unsafeWindow){
  14. dom = unsafeWindow;
  15. } else {
  16. dom = this;
  17. }
  18. }catch(e){
  19. dom = this;
  20. }
  21.  
  22. var holodeck = dom.holodeck;
  23. //Credit goes partially to Ventero for this command
  24. holodeck.addChatCommand("get_muted", function(l,n){
  25. var matchArr1 = n.match(/^\/\S+\s+(\d+)/),
  26. roomDetails = l.chatWindow(),
  27. countArr = [];
  28. var muted_people = roomDetails._mutings;
  29. var mutedArr = new Array();
  30.  
  31. for(var i in muted_people){
  32. mutedArr.push("<a target='_blank' href='http://www.kongregate.com/accounts/"+[i]+"'>"+[i]+"</a>");
  33. }
  34.  
  35. var txt = mutedArr.toString();
  36. for(var i in muted_people){
  37. txt = txt.replace(","," - ");
  38. }
  39. l.activeDialogue().displayUnsanitizedMessage("Muted Users", (txt?txt:"You have no one muted."), {"class":"whisper received_whisper"}, {non_user: true});
  40. return false;
  41. })
  42. holodeck._chat_commands.muted = holodeck._chat_commands.get_muted;
  43. }//end init()
  44.  
  45. setTimeout(init,0);

QingJ © 2025

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