DolphinsFTW agar.io mod

DOLPHINS

当前为 2016-05-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name DolphinsFTW agar.io mod
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.0
  5. // @description DOLPHINS
  6. // @author You
  7. // @match http://agarioforums.io
  8. // @match http://agarioforums.io/split/
  9. // @match http://agar.io/
  10. // @match http://agar.io
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // Your code here...
  18. })();(function() {
  19. var amount = 20;
  20. var duration = 1; //ms
  21.  
  22. var overwriting = function(evt) {
  23. if (evt.keyCode === 81) { // KEY_Q
  24. for (var i = 0; i < amount; ++i) {
  25. setTimeout(function() {
  26. window.onkeydown({keyCode: 87}); // KEY_W
  27. window.onkeyup({keyCode: 87});
  28. }, i * duration);
  29. }
  30. }
  31. };
  32.  
  33. window.addEventListener('keydown', overwriting);
  34. })();
  35. (function() {
  36. var amount = 6;
  37. var duration = 50; //ms
  38.  
  39. var overwriting = function(evt) {
  40. if (evt.keyCode === 82) { // KEY_R
  41. for (var i = 0; i < amount; ++i) {
  42. setTimeout(function() {
  43. window.onkeydown({keyCode: 32}); // KEY_SPACE
  44. window.onkeyup({keyCode: 32});
  45. }, i * duration);
  46. }
  47. }
  48. };
  49.  
  50. window.addEventListener('keydown', overwriting);
  51. })();
  52. $(
  53. function() {
  54. var feeddown = $.Event("keydown", { keyCode: 87});
  55. var feedup = $.Event("keyup", { keyCode: 87});
  56. var splitdown = $.Event("keydown", { keyCode: 32});
  57. var splitup = $.Event("keyup", { keyCode: 32});
  58. $(document).bind('mousedown', function(e) {
  59. if( (e.which == 3) ){
  60. $("body").trigger(feeddown);
  61. $("body").trigger(feedup);
  62. }
  63. else if( (e.which == 1) ){
  64. $("body").trigger(splitdown);
  65. $("body").trigger(splitup);
  66. }
  67. }).bind('contextmenu', function(e){
  68. e.preventDefault();
  69. });
  70. }
  71. )();
  72.  
  73.  
  74. //Stop the alert box from coming by deleting code from here
  75. //<![CDATA[
  76. setTimeout( function ( ) { alert( "Consider signing up to Agarioforums.net for fun times, a custom server and dedicated and hard working staff. Keys. Q for fast mass W. R for splitting 16 times, (when your teaming or are tricksplitting). You can also split with left click now and shoot some mass with right click :D.You can stop this alert box from coming by looking into the code, insturctions are proided." ); }, 10000 );
  77. //]]>
  78. // all the way to here