THE_ULTIMATE_Agario_Script (Modification)

'W' is Macro, 'Shift' and '4' is Tricksplit, 'A' is Triplesplit, 'D' is Doublesplit, 'Left Click' is Space, 'Right Click' is Feed/Macro, 'Mouse Click' is Tricksplit. Easily configurable keys in code. Credits to Jack Burch, Tom Burris AND Ali Ahfad Mehdi

当前为 2016-07-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name THE_ULTIMATE_Agario_Script (Modification)
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.16
  5. // @description 'W' is Macro, 'Shift' and '4' is Tricksplit, 'A' is Triplesplit, 'D' is Doublesplit, 'Left Click' is Space, 'Right Click' is Feed/Macro, 'Mouse Click' is Tricksplit. Easily configurable keys in code. Credits to Jack Burch, Tom Burris AND Ali Ahfad Mehdi
  6. // @author
  7. // @match http://agar.io/*
  8. // @match https://agar.io/*
  9. // @grant none
  10. // @run-at document-end
  11. // ==/UserScript==
  12. window.addEventListener('keydown', keydown);
  13. window.addEventListener('keyup', keyup);
  14. var Feed = false;
  15. var Speed = 10; //default = 25
  16. var splits = 1;
  17.  
  18. //Funtions
  19. function split() {
  20. $("body").trigger($.Event("keydown", { keyCode: 32}));
  21. $("body").trigger($.Event("keyup", { keyCode: 32}));
  22. }
  23. function mass() {
  24. if (Feed) {
  25. window.onkeydown({keyCode: 87});
  26. window.onkeyup({keyCode: 87});
  27. setTimeout(mass, Speed);
  28. }
  29. }
  30.  
  31. function keydown(event) {
  32. // Feed Macro
  33. if (event.keyCode == 81 ) // Q
  34. {
  35. Feed = true;
  36. setTimeout(mass, Speed);
  37. }// Center
  38. if (event.keyCode == 83) { // S
  39. X = window.innerWidth/2;
  40. Y = window.innerHeight/2;
  41. $("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y}));
  42. }
  43. // Tricksplit
  44. if (event.keyCode == 16 || event.keyCode == 52) { // Shift and 4
  45. split();
  46. setTimeout(split, Speed);
  47. setTimeout(split, Speed*2);
  48. setTimeout(split, Speed*3);
  49. } // Triplesplit
  50. if (event.keyCode == 65 || event.keyCode == 'yourkey') { // A and Put in Your Key
  51. split();
  52. setTimeout(split, Speed);
  53. setTimeout(split, Speed*2);
  54. } // Doublesplit
  55. if (event.keyCode == 68 || event.keyCode == 'yourkey') { // D and Put in Your Key
  56. split();
  57. setTimeout(split, Speed);
  58. }// Split
  59. if (event.keyCode == 'yourkey' || event.keyCode == 'yourkey2') { // Put in Your Key
  60. split();
  61. }
  62.  
  63. } // When Player Lets Go Of Q, It Stops Feeding
  64. function keyup(event) {
  65. if (event.keyCode == 81) {
  66. Feed = false;
  67. }
  68. }
  69.  
  70. //Mouse Clicks
  71. (function() {
  72. document.getElementById("canvas").addEventListener("mousedown", function(event) {
  73. if (event.which == 1) {
  74. split();
  75. }
  76. else if (event.which == 2) {
  77. split();
  78. setTimeout(split, Speed);
  79. setTimeout(split, Speed*2);
  80. setTimeout(split, Speed*3);
  81. }
  82. else if (event.which == 3) {
  83. Feed = true;
  84. setTimeout(mass, Speed);
  85. }
  86. });
  87.  
  88. document.getElementById("canvas").addEventListener("mouseup", function(event) {
  89. if (event.which == 3) {
  90. Feed = false;
  91. }
  92. });
  93. $('#canvas').bind('contextmenu', function(e) {
  94. e.preventDefault();
  95. });
  96. }());
  97.  
  98.  
  99. //add new instructions about the Script to Agar.io
  100. var exInstructions = document.createElement('span');
  101. var exInstructionsAlign = document.createElement('center');
  102. exInstructions.innerHTML = '<br><u><b>Ultimate Agar.io Script controlls:</b></u><br>Press <b>Q</b> to feed macro<br>Press <b>A</b> to triplesplit<br>Press <b>D</b> to doublesplit<br>Press <b>S</b> to center your cell(s)<br><b>left click</b> to split<br><b>mouse click</b> to tricksplit<br><b>right click</b> to macro feed';
  103. exInstructions.id = 'exInstructions';
  104. exInstructionsAlign.appendChild(exInstructions);
  105. instructions.appendChild(exInstructionsAlign);
  106.  
  107. $('#exInstructions').css({'color':'#777'});
  108. $('#statsContinue').css({'width':'146px'});
  109.  
  110.  
  111. //create a respawn button
  112. var respawn = document.createElement('button');
  113. respawn.type = 'submit';
  114. respawn.innerHTML = 'Respawn';
  115. respawn.addEventListener('click', function(){MC.setNick(document.getElementById('nick').value); return false;});
  116. respawn.id = 'respawnButton';
  117. $(document).ready(function(){
  118. $('#respawnButton').css({'display':'inline-block','padding':'6px 12px','marginBottom':'0','fontSize':'14px','fontWeight':'400','lineHeight':'1.42857143','textAlign':'center','whiteSpace':'mowrap','verticalAlign':'middle','cusor':'pointer','border':'1px solid transparent','borderRadius':'4px','color':'#fff','backgroundColor':'#428bca','borderColor':'#357ebd','position':'absolute','right':'25px','width':'150px','bottom':'15px'});
  119. });
  120.  
  121. //add the respawn button to Agar.io
  122. stats.appendChild(respawn);
  123.  
  124.  
  125. //create a reload button
  126. var reloadButton = document.createElement("button");
  127. var nbstyle = reloadButton.style;
  128. reloadButton.innerHTML = 'Reload';
  129. reloadButton.id = 'reloadButton'
  130. reloadButton.addEventListener('click', function(){
  131. location.reload()
  132. });
  133.  
  134. $(document).ready(function(){
  135. $('#reloadButton').css({'display':'block','float':'right','height':'37px','width':'110px','fontWeight':'700','color':'#fff','backgroundColor':'#354c8c','borderColor':'#354c8c','borderRadius':'5px'});
  136. });
  137.  
  138. //add the reload button to Agario
  139. document.getElementsByClassName("row")[0].appendChild(reloadButton);
  140.  
  141. //makes the continue button smaller
  142. document.getElementsByTagName("button")[6].style.width = '160px';
  143.  
  144.  
  145. /*
  146. Script by Ali Ahfad Mehdi modified by Arnie
  147.  
  148. Changes:
  149. instructions to the start page added
  150. respawn button to the start page added
  151. keys changed (you can get keycodes on http://keycode.info/ ☺)
  152. reload button to the start page added
  153. reload button to the Match Results page added
  154.  
  155. CREDITS TO: JACK BURCH, TOM BURRIS
  156. */

QingJ © 2025

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