neclear12345

Sets show mass and dark theme to true, provides a tricksplit with E or 4, triplesplit with 3, doublesplit with D or 2, faster feeding with Q, and split with 1

目前为 2016-07-14 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name neclear12345
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.9
  5. // @description Sets show mass and dark theme to true, provides a tricksplit with E or 4, triplesplit with 3, doublesplit with D or 2, faster feeding with Q, and split with 1
  6. // @author Jack Burch + Tom Burris
  7. // @match http://abs0rb.me/*
  8. // @match http://http://www.blobs.co.il/
  9. // @match http://http://www.blobs.co.il/#tab2
  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. window.addEventListener('keydown', keydown);
  18. window.addEventListener('keyup', keyup);
  19. var Feed = false;
  20. var Dingus = false;
  21. var imlost = 25;
  22. 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>";
  23. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>";
  24. 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>";
  25. 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>";
  26. load();
  27. function load() {
  28. if (document.getElementById("overlays").style.display!="none") {
  29. document.getElementById("settings").style.display = "block";
  30. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  31. document.getElementById('showMass').click();
  32. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  33. document.getElementById('darkTheme').click();
  34. // 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
  35. } else {
  36. setTimeout(load, 100);
  37. }
  38. }
  39. function keydown(event) {
  40. if (event.keyCode == 81) {
  41. Feed = true;
  42. setTimeout(fukherriteindapussie, imlost);
  43. } // Tricksplit
  44. if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  45. ilikedick();
  46. setTimeout(ilikedick, imlost);
  47. setTimeout(ilikedick, imlost*2);
  48. setTimeout(ilikedick, imlost*3);
  49. } // Triplesplit
  50. if (event.keyCode == 51 || event.keyCode == 65) {
  51. ilikedick();
  52. setTimeout(ilikedick, imlost);
  53. setTimeout(ilikedick, imlost*2);
  54. } // Doublesplit
  55. if (event.keyCode == 68 || event.keyCode == 50) {
  56. ilikedick();
  57. setTimeout(ilikedick, imlost);
  58. } // Split
  59. if (event.keyCode == 49) {
  60. ilikedick();
  61. }
  62. } // When Player Lets Go Of Q, It Stops Feeding
  63. function keyup(event) {
  64. if (event.keyCode == 81) {
  65. Feed = false;
  66. }
  67. if (event.keyCode == 79) {
  68. Dingus = false;
  69. }
  70. }
  71. // Feed Macro With Q
  72. function fukherriteindapussie() {
  73. if (Feed) {
  74. window.onkeydown({keyCode: 87});
  75. window.onkeyup({keyCode: 87});
  76. setTimeout(fukherriteindapussie, imlost);
  77. }
  78. }
  79. function ilikedick() {
  80. $("body").trigger($.Event("keydown", { keyCode: 32}));
  81. $("body").trigger($.Event("keyup", { keyCode: 32}));
  82. }
  83. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)