November 08, 2026, 06:53:40 pm

Author Topic: Script  (Read 81 times)

0 Members and 1 Guest are viewing this topic.

Offline PoxY

  • ●▬▬▬▬-ஜ۩✠۩ஜ-▬▬▬▬●
  • Veteran
  • ***
  • Posts: 515
  • Total likes: 310
  • Great layers are also great magiciens
Script
« on: May 09, 2017, 12:04:37 am »
Script..for.".agar.io"..so..u..can..splite..left..click..on..mouse..and..feed..right..click

// ==UserScript==
// @Name         Agar.io Mouse Script by StavJ
// @Namespace   Awesome!
// @version      0.1
// @description  Agar.io mouse control: Left mouse splits, Right mouse feeds
// @author       aaaaa
// @match        http://agar.io
// @grant        none
// @license      none
// ==/UserScript==
 
$("#instructions").replaceWith('
Agar.io Mouse Script By aaa<center><div id="StavJ" style="text-indent: 0px; margin: 0px; padding: 0px; background: transparent none repeat scroll 0% 0%; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 86px; height: 24px;"><iframe data-gapiattached="true" src="" name="I0_1457893361080" id="I0_1457893361080" vspace="0" tabindex="0" style="position: static; top: 0px; width: 86px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 24px;" scrolling="no" marginwidth="0" marginheight="0" hspace="0" frameborder="0" width="100%"></iframe></div><a href="https://www.youtube.com/c/StavJ" target="_blank"><img alt="Expérience Tuto applications et business" id="Header1_headerimg" src="http://i.imgur.com/Ey17JzU.png" style="display: block" height="100px; " width="100px; "></div>');

// values in --> window.agar
$(
    function() {
        var feeddown = $.Event("keydown", { keyCode: 87}); //w button
        var feedup = $.Event("keyup", { keyCode: 87}); //w button
        var splitdown = $.Event("keydown", { keyCode: 32}); //space button
        var splitup = $.Event("keyup", { keyCode: 32}); //space button
        $(document).bind('mousedown', function(e) {
            if( (e.which == 3) ){
                $("body").trigger(feeddown);
                $("body").trigger(feedup);
                //console.log("feed");
            }
            else if( (e.which == 1) ){
                $("body").trigger(splitdown);
                $("body").trigger(splitup);
                //console.log("split");
            }
        }).bind('contextmenu', function(e){
            e.preventDefault();
        });
        //alert("mouse enabled");
    }
)()
;
« Last Edit: May 09, 2017, 07:29:58 am by PoxY »