x8 split by Anonimowy

Press Right Mouse Button >>> Full Split x8, 2x Click = x16 split

  1. // ==UserScript==
  2. // @name x8 split by Anonimowy
  3. // @namespace LokowanyTM ---FMC--- Full Mouse Control
  4. // @version 1.0
  5. // @icon https://s17.postimg.org/8ekofml9r/logo.png
  6. // @description Press Right Mouse Button >>> Full Split x8, 2x Click = x16 split
  7. // @description Wciśnij Prawy Przycisk Myszy Aby wykonać >>> Full Split x8 2x = x16 Split
  8.  
  9. // Change Log / Lista Zmian //
  10. // ~ Bug Fixed ~ \\
  11. // ~ Add Footer Info ~ \\
  12. // ~ Remove Instructions Info ~ \\
  13. // ~ Full Split Fix ~ \\
  14.  
  15. // @author Anonimowy Sciek
  16. // @match http://bubble.am/*
  17. // @match http://agar.io/*
  18. // @match http://ogar.pw/*
  19. // @match http://agarz.com/*
  20. // @match http://agarly.com/*
  21. // @grant none
  22. // @noframes
  23. // ==/UserScript==
  24.  
  25. (function() {
  26. var j=0;
  27. var k=0;
  28. var mousestop;
  29.  
  30. function autoplay(){
  31. if(document.getElementById('overlays').style.display=='none'){return false;}
  32. if(document.getElementById("respawn").checked == false){
  33. localStorage.setItem("respawn", "1");
  34. if(document.getElementById('overlays').style.display=='none'){k=1;}
  35. if(j==0 && document.getElementById('stats').style.display=='block' && document.getElementById('overlays').style.display=='block'){
  36. j=1;
  37. document.getElementById('statsContinue').click();
  38. }
  39. if((j==1 && document.getElementById('leftPanel').style.opacity >0) || (k==1 && document.getElementById('overlays').style.display=='block')){
  40. j=0;k=0;
  41. document.getElementsByClassName('btn btn-play btn-primary btn-needs-server')[0].click();
  42. document.getElementById('overlays').style.display='none';
  43.  
  44. }
  45. }
  46. else{
  47. localStorage.setItem("respawn", "0");
  48. }
  49. if(document.getElementById('mainPanel').style.display=='none' ){
  50. document.getElementById('openfl-overlay').style.display='none';
  51. document.getElementById('openfl-content').style.display='none';
  52. }
  53. }
  54. function load(url, success) {
  55. var script = document.createElement("script");
  56. script.setAttribute("src", url);
  57.  
  58. script.addEventListener("load", function () {
  59. var callback = document.createElement("script");
  60. callback.textContent = "(" + success + ")();";
  61. document.body.appendChild(callback);
  62. });
  63.  
  64. document.body.appendChild(script);
  65. }
  66. function bind_mouse_buttons() {
  67. var interval;
  68. var switchy = false;
  69. $(document).on("contextmenu", function (event) {
  70. event.preventDefault();
  71. });
  72. $(document).on('mousedown',function(event){
  73. function key(type, char) {
  74. return $.Event(type, { keyCode: char.charCodeAt(0) });
  75. }
  76.  
  77. switch (event.which) {
  78.  
  79. case 3: // Prawy Przycisk Myszy
  80. if(switchy){
  81. return;
  82. }
  83. switchy = false;
  84. interval = setInterval(function() {
  85. $("body").trigger($.Event("keydown", { keyCode: 32}));
  86. if(!document.URL.match(/gota\.io/g)){
  87. $("body").trigger($.Event("keyup", { keyCode: 32}));
  88. }
  89. }, 3);
  90. break;
  91. }
  92. });
  93. // Scroll
  94. var sm=false;
  95. $(document).on('mouseup',function(e){switchy = false;if(document.URL.match(/gota\.io/g)){$("body").trigger($.Event("keyup", { keyCode: 87}));}clearInterval(interval);return;})
  96. document.getElementById("canvas").addEventListener("mousewheel", function(event) {
  97. if(sm==false){
  98. }});}
  99. var c=0;
  100. function countClick(){
  101. if(c==0){load("https://code.jquery.com/ui/1.12.0/jquery-ui.js", bind_mouse_buttons);}
  102. c++;
  103. }
  104. if(document.getElementsByClassName('btn btn-play-guest btn-success btn-needs-server')[0] && document.URL.match(/agar\.io/g)){
  105. document.getElementsByClassName('btn btn-play-guest btn-success btn-needs-server')[0].addEventListener("click",countClick , false);
  106. }
  107. if(document.getElementsByClassName('btn btn-play btn-primary btn-needs-server')[0] && document.URL.match(/agar\.io/g)){
  108. document.getElementsByClassName('btn btn-play btn-primary btn-needs-server')[0].addEventListener("click",countClick , false);
  109. }
  110. if(document.getElementById('playBtn') && (document.URL.match(/petridish\.pw/g) ||document.URL.match(/bubble\.am/g) ||document.URL.match(/agarz\.com/g)|| document.URL.match(/gota\.io/g)|| document.URL.match(/agariot\.com/g)|| document.URL.match(/agar\.bio/g) || document.URL.match(/nogar\.io/g))){
  111. document.getElementById('playBtn').addEventListener("click",countClick , false);
  112. }
  113. if(document.getElementById('btn-play') && document.URL.match(/gota\.io/g)){
  114. document.getElementById('btn-play').addEventListener("click",countClick , false);
  115. }
  116.  
  117. if(document.URL.match(/agar\.io/g)){
  118. setInterval(function(){ autoplay();}, 100);
  119. }
  120. if(document.getElementById('agarYoutube')){
  121. document.getElementById('agarYoutube').innerHTML='<div class="g-ytsubscribe" data-channelid="UCyb-fAwBV3CqN2yPt6NJImA" data-layout="default" data-count="default"></div>';
  122. }
  123. if(document.getElementsByClassName('form-group clearfix')[0] && document.URL.match(/agar\.io/g)){
  124. var ftbtn='';
  125. if(!document.getElementsByClassName('form-group clearfix')[0].innerHTML.match(/(.*?)ftbtn(.*?)/)){ftbtn='<br/><br/>';}
  126.  
  127. document.getElementsByClassName('form-group clearfix')[0].innerHTML+=ftbtn+'<divr><br/><font</font></b>';
  128. }
  129. if(localStorage.getItem("")==1){document.getElementById('').checked=true;}
  130.  
  131. if(document.getElementsByClassName('btn btn-info btn-settings')[1]){
  132. document.getElementsByClassName('btn btn-info btn-settings')[1].addEventListener("click",function(){document.getElementById('u2h').style.display='none';} , false);
  133. }
  134. document.body.style.cursor="url(''), auto;";
  135.  
  136. document.getElementById("formSt").remove();
  137. })();