Alfa

/// Press Left Mouse Button >>> 1x Split // Press Scroll To Give a Mass // Press Right Mouse Button >>> Full Split x8, 2x Click = x16 split ///

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         Alfa
// @namespace    LokowanyTM ---FMC--- Full Mouse Control 
// @version      1.0
// @icon         https://s17.postimg.org/8ekofml9r/logo.png
// @description  /// Press Left Mouse Button >>> 1x Split // Press Scroll To Give a Mass // Press Right Mouse Button >>> Full Split x8, 2x Click = x16 split ///
// @description  /// Wciśnij Lewy aby wykonać >>> 1x Split // Wciśnij Scroll Aby Dać Masę // Wciśnij Prawy Przycisk Myszy Aby wykonać >>> Full Split x8 2x = x16 Split ///

// Change Log / Lista Zmian //
// ~ Bug Fixed ~ \\
// ~ Add Footer Info ~ \\
// ~ Remove Instructions Info ~ \\
// ~ Full Split Fix ~ \\

// @author       <<< LokowanyTM >>>
// @match        http://bubble.am/*
// @match        http://agar.io/*
// @match        http://ogar.pw/*
// @match        http://agarz.com/*
// @match        http://agarly.com/*
// @grant        none
// @noframes
// ==/UserScript==

(function() {
var j=0;
var k=0;
var mousestop;

function autoplay(){
if(document.getElementById('overlays').style.display=='none'){return false;}
if(document.getElementById("respawn").checked == false){
localStorage.setItem("respawn", "1");
if(document.getElementById('overlays').style.display=='none'){k=1;}
if(j==0 && document.getElementById('stats').style.display=='block' && document.getElementById('overlays').style.display=='block'){
j=1;
document.getElementById('statsContinue').click();
}
if((j==1 && document.getElementById('leftPanel').style.opacity >0) || (k==1 && document.getElementById('overlays').style.display=='block')){
j=0;k=0;
document.getElementsByClassName('btn btn-play btn-primary btn-needs-server')[0].click();
document.getElementById('overlays').style.display='none';	

}
}
else{
localStorage.setItem("respawn", "0");
}
if(document.getElementById('mainPanel').style.display=='none'	){
document.getElementById('openfl-overlay').style.display='none';
document.getElementById('openfl-content').style.display='none';	
}
}
function load(url, success) {
    var script = document.createElement("script");
    script.setAttribute("src", url);

    script.addEventListener("load", function () {
        var callback = document.createElement("script");
        callback.textContent = "(" + success + ")();";
        document.body.appendChild(callback);
    });

    document.body.appendChild(script);
}
function bind_mouse_buttons() {
var interval;
var switchy = false;
    $(document).on("contextmenu", function (event) {
        event.preventDefault();
    });
    $(document).on('mousedown',function(event){
        function key(type, char) {
            return $.Event(type, { keyCode: char.charCodeAt(0) });
        }

        switch (event.which) {
            case 1: // Lewy przycisk Myszy
                $("body").trigger(key("keydown", " "));
                $("body").trigger(key("keyup", " "));
                break;
            case 2: // Scroll
				  if(switchy){
				 return;
				  }
				  //var a= 0;
				  switchy = true;
				  interval = setInterval(function() {
				  $("body").trigger($.Event("keydown", { keyCode: 87}));
				  $("body").trigger($.Event("keyup", { keyCode: 87}));
				  //a++;
				  //if(a>7){clearInterval(interval);}
				  }, 3);
               break;				
case 3: // Prawy Przycisk Myszy
				  if(switchy){
				 return;
				  }
				  switchy = false;
				  interval = setInterval(function() {
				  $("body").trigger($.Event("keydown", { keyCode: 32}));
				  if(!document.URL.match(/gota\.io/g)){
				  $("body").trigger($.Event("keyup", { keyCode: 32}));
				  }
				  }, 3);
               break;
        }
    });
// Scroll
var sm=false;
$(document).on('mouseup',function(e){switchy = false;if(document.URL.match(/gota\.io/g)){$("body").trigger($.Event("keyup", { keyCode: 87}));}clearInterval(interval);return;})
document.getElementById("canvas").addEventListener("mousewheel", function(event) {
if(sm==false){
}});}
var c=0;
function countClick(){
if(c==0){load("https://code.jquery.com/ui/1.12.0/jquery-ui.js", bind_mouse_buttons);}
c++;
}
if(document.getElementsByClassName('btn btn-play-guest btn-success btn-needs-server')[0] && document.URL.match(/agar\.io/g)){
document.getElementsByClassName('btn btn-play-guest btn-success btn-needs-server')[0].addEventListener("click",countClick , false);
}
if(document.getElementsByClassName('btn btn-play btn-primary btn-needs-server')[0]  && document.URL.match(/agar\.io/g)){
document.getElementsByClassName('btn btn-play btn-primary btn-needs-server')[0].addEventListener("click",countClick , false);
}
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))){
document.getElementById('playBtn').addEventListener("click",countClick , false);
}
if(document.getElementById('btn-play') && document.URL.match(/gota\.io/g)){
document.getElementById('btn-play').addEventListener("click",countClick , false);
}

if(document.URL.match(/agar\.io/g)){
setInterval(function(){ autoplay();}, 100);
}
if(document.getElementById('agarYoutube')){
document.getElementById('agarYoutube').innerHTML='<div class="g-ytsubscribe" data-channelid="UCyb-fAwBV3CqN2yPt6NJImA" data-layout="default" data-count="default"></div>';
}
if(document.getElementsByClassName('form-group clearfix')[0] && document.URL.match(/agar\.io/g)){
var ftbtn='';
if(!document.getElementsByClassName('form-group clearfix')[0].innerHTML.match(/(.*?)ftbtn(.*?)/)){ftbtn='<br/><br/>';}

document.getElementsByClassName('form-group clearfix')[0].innerHTML+=ftbtn+'<divr><br/><font</font></b>';
}
if(localStorage.getItem("")==1){document.getElementById('').checked=true;}

if(document.getElementsByClassName('btn btn-info btn-settings')[1]){
document.getElementsByClassName('btn btn-info btn-settings')[1].addEventListener("click",function(){document.getElementById('u2h').style.display='none';} , false);
}
document.body.style.cursor="url(''), auto;";
    document.getElementById("chatlog").innerHTML += "<top><span class='text-muted'><span data-itr='instructions_q'> <span style='color: #686CEE'><b><font size='2'></font></b></span> </span></span></top>";
document.getElementById("footer").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> <span style='color: #686CEE'><b><font size='4'><u></u></font></b></span> </span></span></center><br></br>";
document.getElementById("footer").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> <span style='color: #FDC944'><b><font size='4'><u>InyongIya :</u></font></b></span> </span></span></center><br></br>";
document.getElementById("footer").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> <span style='color: #5b7ace'><b><u>Lewoklik</u></b></b> Aby wykonać <b>Zwykły Split (x1)<b></span></span></center>";
document.getElementById("footer").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> <span style='color: #5b7ace'><b><u>Scroll</u></b></b> Aby <b>Dać Masę (Szybciej niż normalnie)<b></span></span></center>";
document.getElementById("footer").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_d'> <span style='color: #5b7ace'><b><u>Prawoklik</u></b></b> Aby wykonać <b>Full Split (x8)<b></span></span></center>";
    document.getElementById("footer").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> <span style='color: #686CEE'><b><font size='4'><u></u></font></b></span> </span></span></center><br></br>";
    document.getElementById("footer").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_d'> <span style='color: #f60101'><b>Alfa.</b></span></span></center>";
document.getElementById("instructions").remove();
document.getElementById("formSt").remove();
})();