Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Agar.io Mouse Script by Titan
- // @namespace Awesome!
- // @version 0.1
- // @description Agar.io mouse control: Left mouse splits, Right mouse feeds
- // @author Titan
- // @match http://agar.io
- // @grant none
- // @license Titan bros Youtube
- // ==/UserScript==
- $("#instructions").replaceWith('<br><b>Agar.io Mouse Script By Titan<b><center><div id="Titan" 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/channel/UCmy0Ya102P9uTMmMNFOEqYQ"><img alt="ExpÈrience Tuto applications et business" id="Header1_headerimg" src="http://i.imgur.com/ZYSiciA.jpg" 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");
- }
- )();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement