Agar.io Mods

Awesome script to optimize your agar.io webpage

目前为 2016-09-18 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Agar.io Mods
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.3
  5. // @description Awesome script to optimize your agar.io webpage
  6. // @author Myth
  7. // @match http://abs0rb.me/*
  8. // @match http://agar.io/*
  9. // @match http://agarabi.com/*
  10. // @match http://agarly.com/*
  11. // @match http://en.agar.bio/*
  12. // @match http://agar.pro/*
  13. // @match http://agar.biz/*
  14. // @grant none
  15. // @run-at document-end
  16. // ==/UserScript==
  17.  
  18. //replaces title
  19. //h2 selects all h2 elements
  20. $("h2").replaceWith('<h1>Myth.io</h1>');
  21.  
  22. window.addEventListener('keydown', keydown);
  23. window.addEventListener('keyup', keyup);
  24. var Feed = false;
  25. var Dingus = false;
  26. var imlost = 25;
  27. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_e'> Press <b>E</b> or <b>4</b> to split 4x</span></span></center>";
  28. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>";
  29. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_d'> Press <b>D</b> or <b>2</b> to split 2x</span></span></center>";
  30. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>Q</b> for macro feed</span></span></center>";
  31. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_lol'> <h2><b><i>Skype: doge_is_cool<i><b></h2> </span></span></center>";
  32. load();
  33. function load() {
  34. if (document.getElementById("overlays").style.display!="none") {
  35. document.getElementById("settings").style.display = "block";
  36. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  37. document.getElementById('showMass').click();
  38. // I changed the above because now agario 'remembers' your preferences, but doesn't actually work, so if they're already set to be true, you need to undo it, then re click to true
  39. } else {
  40. setTimeout(load, 100);
  41. }
  42. }
  43. function keydown(event) {
  44. if (event.keyCode == 81) {
  45. Feed = true;
  46. setTimeout(fukherriteindapussie, imlost);
  47. } // Tricksplit
  48. if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  49. ilikedick();
  50. setTimeout(ilikedick, imlost);
  51. setTimeout(ilikedick, imlost*2);
  52. setTimeout(ilikedick, imlost*3);
  53. } // Triplesplit
  54. if (event.keyCode == 51 || event.keyCode == 65) {
  55. ilikedick();
  56. setTimeout(ilikedick, imlost);
  57. setTimeout(ilikedick, imlost*2);
  58. } // Doublesplit
  59. if (event.keyCode == 68 || event.keyCode == 50) {
  60. ilikedick();
  61. setTimeout(ilikedick, imlost);
  62. } // Split
  63. if (event.keyCode == 49) {
  64. ilikedick();
  65. }
  66. } // When Player Lets Go Of Q, It Stops Feeding
  67. function keyup(event) {
  68. if (event.keyCode == 81) {
  69. Feed = false;
  70. }
  71. if (event.keyCode == 79) {
  72. Dingus = false;
  73. }
  74. }
  75. // Feed Macro With Q
  76. function fukherriteindapussie() {
  77. if (Feed) {
  78. window.onkeydown({keyCode: 87});
  79. window.onkeyup({keyCode: 87});
  80. setTimeout(fukherriteindapussie, imlost);
  81. }
  82. }
  83. function ilikedick() {
  84. $("body").trigger($.Event("keydown", { keyCode: 32}));
  85. $("body").trigger($.Event("keyup", { keyCode: 32}));
  86. }
  87. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)