Advertisement
LIJI95

MOUSE FEED SCRIPT 2017

Jan 20th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Agar.io Mouse Script by Titan
  3. // @namespace   Awesome!
  4. // @version      0.1
  5. // @description  Agar.io mouse control: Left mouse splits, Right mouse feeds
  6. // @author       Titan
  7. // @match        http://agar.io
  8. // @grant        none
  9. // @license      Titan bros Youtube
  10. // ==/UserScript==
  11.  
  12. $("#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>');
  13.  
  14. // values in --> window.agar
  15. $(
  16.     function() {
  17.         var feeddown = $.Event("keydown", { keyCode: 87}); //w button
  18.         var feedup = $.Event("keyup", { keyCode: 87}); //w button
  19.         var splitdown = $.Event("keydown", { keyCode: 32}); //space button
  20.         var splitup = $.Event("keyup", { keyCode: 32}); //space button
  21.         $(document).bind('mousedown', function(e) {
  22.             if( (e.which == 3) ){
  23.                 $("body").trigger(feeddown);
  24.                 $("body").trigger(feedup);
  25.                 //console.log("feed");
  26.             }
  27.             else if( (e.which == 1) ){
  28.                 $("body").trigger(splitdown);
  29.                 $("body").trigger(splitup);
  30.                 //console.log("split");
  31.             }
  32.         }).bind('contextmenu', function(e){
  33.             e.preventDefault();
  34.         });
  35.         //alert("mouse enabled");
  36.     }
  37. )();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement