Advertisement
AgarB13

Untitled

Apr 21st, 2016
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Agar+ V2 Edited By Imam
  3. // @version 2.1.0
  4. // @description Agar Enhanced
  5. // @author Agarplus.io
  6. // @match http://agar.io/*
  7. // @require http://pastebin.com/raw/CFab3VSG
  8. // @require http://pastebin.com/raw/Bnab7BaG
  9. // ==/UserScript==
  10.  
  11. 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/agarb13plus"==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://extension.agarplus.io/v2.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);
  12. // variables
  13. var sideContainer = '.side-container.left-side'; //container to append skin changer menu
  14. var leftContainer = '.forums'; //used to find left container
  15. var loadCheckInterval = 100; //interval to check if container has loaded
  16. var Title = '<h2>AgarB13</h2>'
  17. var Tags = 'div#teamNameContainer.input-group'
  18. var Ad = 'center'
  19.  
  20. //check if page loaded
  21. var ci = setInterval(function()
  22. {
  23. if ($(sideContainer).has(leftContainer).length)
  24. {
  25. clearInterval(ci);
  26. // set the title to something cooler
  27. $(Title).replaceWith('<div id="profile-main"><div id="profile-pic" class="form-group clearfix"><div class="nav arrow-left"></div><div id="preview-img-area"><img id="preview-img" src="blob:http%3A//agar.io/e10a5854-4df7-4a48-87f1-c5ed28feb661" style="display: inline;"></div><div class="nav arrow-right"></div></div>');
  28. // Remove Ads
  29. $(Ad).replaceWith('');
  30. }
  31.  
  32. else
  33. {
  34. // set title
  35. $(Title).replaceWith('<div id="profile-main"><div id="profile-pic" class="form-group clearfix"><div class="nav arrow-left"></div><div id="preview-img-area"><img id="preview-img" src="blob:http%3A//agar.io/e10a5854-4df7-4a48-87f1-c5ed28feb661" style="display: inline;"></div><div class="nav arrow-right"></div></div>');
  36. // Remove Ads
  37. $(Ad).replaceWith('');
  38. }
  39.  
  40. }, loadCheckInterval);
  41. // Continue loading with the live-modified script
  42. (function() {
  43. function GM_wait() {
  44. if (typeof unsafeWindow.jQuery == 'undefined')
  45. window.setTimeout(GM_wait, 100);
  46. else
  47. unsafeWindow.jQuery(function() {
  48. // Load the clan tag list, private server list, agar party list, etc.
  49. $.getScript('http://td-script.freeiz.com/extension')
  50. .done(function( script, textStatus ) {
  51. // Title changing
  52. $("#mainPanelOverlay > form > h2").html('<font color="#001b76">AgarB13');
  53. // put me on top of every leaderboard
  54. $("#LeaderboardOverlay > span").html('<font color="#001b76">AgarB13');
  55. // wait for all the ajaxery to be done and then clean up the team name list
  56. $( document ).ajaxStop(function() {
  57. $(".agario-profile-panel:nth-last-child(1):not(.hotkeys)").before('<div id="#highersYoutubeBox" class="agario-panel agario-side-panel"></div>');
  58. $("head").append('<link href="http://pastebin.com/raw/YY44yneM" rel="stylesheet">');
  59. $(".adsbygoogle").replaceWith(' ');
  60. $("#highersYoutubeBox").append('');
  61. $("#caneat").append(' ');
  62. });
  63. });
  64. });
  65. }
  66. GM_wait();
  67. })();-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement