Agario Mass - Q

Very fast macro to enhance gameplay!

目前为 2016-01-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Agario Mass - Q
  3. // @namespace Macro!
  4. // @version 0.5
  5. // @description Very fast macro to enhance gameplay!
  6. // @author Unknown
  7. // @match http://agario.link/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var interval;
  12. var switchy = false;
  13. $(document).on('keydown',function(e){
  14.  
  15. if(e.keyCode == 69){
  16.  
  17. if(switchy){
  18. return;
  19. }
  20. switchy = true;
  21. interval = setInterval(function() {
  22.  
  23. $("body").trigger($.Event("keydown", { keyCode: 87}));
  24. $("body").trigger($.Event("keyup", { keyCode: 87}));
  25. }, 3);//increase this number to make it fire them out slower
  26. }
  27. })
  28.  
  29. $(document).on('keyup',function(e){
  30.  
  31. if(e.keyCode == 69){
  32.  
  33. switchy = false;
  34. clearInterval(interval);
  35. return;
  36. }
  37. })
  38.  
  39. var f5 = setInterval(chat,100);
  40.  
  41. function chat(){
  42.  
  43. document.getElementById("chat_textbox").onkeyup = function() {
  44. if (this.value == "1") {
  45. this.value = "Virus him!";
  46. }
  47. if (this.value == "2") {
  48. this.value = "Load me!";
  49. }
  50. if (this.value == "3") {
  51. this.value = "Split him!";
  52. }
  53. }
  54. }
  55.  
  56.