Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. // ==UserScript==
  2. // @name 3RB.BE memo
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  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 YT Mysterious
  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://3rb.be/
  14. // @grant none
  15. // @run-at document-end
  16. // ==/UserScript==
  17. //developed by YT_Mysterious
  18. window.addEventListener('keydown', keydown);
  19.  
  20. window.addEventListener('keyup', keyup);
  21. var Feed = false;
  22. var Dingus = false;
  23. var imlost = 25;
  24. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_e'> Press <b>Q</b> or <b>4</b> to split 4x</span></span></center>";
  25. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>";
  26. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_d'> Press <b>G</b> or <b>2</b> to split 2x</span></span></center>";
  27. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>E</b> for macro feed</span></span></center>";
  28. load();
  29. function load() {
  30. if (document.getElementById("overlays").style.display!="none") {
  31. document.getElementById("settings").style.display = "block";
  32. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  33. document.getElementById('showMass').click();
  34. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  35. document.getElementById('darkTheme').click();
  36. // 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
  37. } else {
  38. setTimeout(load, 100);
  39. }
  40. }
  41. function keydown(event) {
  42. if (event.keyCode == 81) {
  43. Feed = true;
  44. setTimeout(fukherriteindapussie, imlost);
  45. } // Tricksplit
  46. if (event.keyCode == 16 || event.keyCode == 16) { //( ͡° ͜ʖ ͡°)
  47. ilikedick();
  48. setTimeout(ilikedick, imlost);
  49. setTimeout(ilikedick, imlost*2);
  50. setTimeout(ilikedick, imlost*3);
  51. } // Triplesplit
  52. if (event.keyCode == 16 || event.keyCode == 16) {
  53. ilikedick();
  54. setTimeout(ilikedick, imlost);
  55. setTimeout(ilikedick, imlost*2);
  56. } // Doublesplit
  57. if (event.keyCode == 81 || event.keyCode == 81) {
  58. ilikedick();
  59. setTimeout(ilikedick, imlost);
  60. } // Split
  61. if (event.keyCode == 49) {
  62. ilikedick();
  63. }// When Player Lets Go Of Q, It Stops Feeding
  64. if (event.keyCode == 83) { //key S
  65. X = window.innerWidth/2;
  66. Y = window.innerHeight/2;
  67. $("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y}));
  68. }// Freeze
  69. }
  70. function keyup(event) {
  71. if (event.keyCode == 81) {
  72. Feed = false;
  73. }
  74. if (event.keyCode == 79) {
  75. Dingus = false;
  76. }
  77. }
  78. // Feed Macro With E
  79. function fukherriteindapussie() {
  80. if (Feed) {
  81. window.onkeydown({keyCode: 87});
  82. window.onkeyup({keyCode: 87});
  83. setTimeout(fukherriteindapussie, imlost);
  84. }
  85. }
  86. function ilikedick() {
  87. $("body").trigger($.Event("keydown", { keyCode: 32}));
  88. $("body").trigger($.Event("keyup", { keyCode: 32}));
  89. }
  90. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement