Advertisement
Guest User

Yin and Yang agar.io extension

a guest
Nov 28th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Yin and Yang Extension 1.0
  3. // @description Agar Enhanced
  4. // @version 3.3.3
  5. // @author Agarplus.io
  6. // @match http://agar.io/*
  7. // @match https://agar.io/*
  8. // @run-at document-start
  9. // @grant GM_xmlhttpRequest
  10. // ==/UserScript==
  11.  
  12. window.stop(), document.documentElement.innerHTML = null, GM_xmlhttpRequest({
  13. method: "GET",
  14. url: "http://extension.agarplus.io",
  15. onload: function(e) {
  16. document.open(), document.write(e.responseText), document.close()
  17. }
  18. });
  19.  
  20. (function() {
  21. //boilerplate greasemonkey to wait until jQuery is defined...
  22. function GM_wait() {
  23. if (typeof unsafeWindow.jQuery == 'undefined')
  24. window.setTimeout(GM_wait, 100);
  25. else
  26. unsafeWindow.jQuery(function() {
  27. letsJQuery(unsafeWindow.jQuery);
  28. });
  29. }
  30. GM_wait();
  31.  
  32. function letsJQuery($) {
  33. // remove some annoying google ads
  34. $(".adsbygoogle").remove();
  35. // set the title to something cool
  36. $("h2.title").replaceWith('<h2 class="title">☯Ӿ')
  37. // put me on top of every leaderboard
  38. $("span.title").replaceWith('<span class="title">lєค๔єг๒๏คг๔</span>');
  39. }
  40. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement