Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Agar Unlimited | Bots 1
  3. // @namespace https://megascouts.ml/
  4. // @version 1.0.1
  5. // @description Agar.io bots after patch.
  6. // @author MrSonicMaster
  7. // @match http://agar.io/*
  8. // @exclude http://agar.io/agario.core.js
  9. // @exclude http://agar.io/mc/agario.js
  10. // @exclude http://agar.io/js/master.js
  11. // @exclude http://agar.io/main_out.js
  12. // @run-at document-start
  13. // @grant GM_xmlhttpRequest
  14. // ==/UserScript==a
  15.  
  16. //let unlimitedJS = `<script src="http://208.66.129.222/Unl15b96db9105/Unlimited.php?v=${Date.now()}" charset="utf-8"></script>`;
  17. let unlimitedJS = `<script src="https://pastebin.com/raw/ygaiEKu3" charset="utf-8"></script>`;
  18. function inject(page) {
  19. page = page.replace(/<script.*?src=".*?agario\.core\.js.*?><\/script>/, '');
  20. page = page.replace(/<div.*?id=".*?adsBottom.*?><\/div>/, '');
  21. page = page.replace(/<h2>Agar.io/gi, '<h3>Agar Unlimited');
  22. page = page.replace(/<\/body>/, `${unlimitedJS}</body>`);
  23. return page;
  24. }
  25.  
  26. window.stop();
  27. document.documentElement.innerHTML = '';
  28. GM_xmlhttpRequest({
  29. method : 'GET',
  30. url : 'http://agar.io/',
  31. onload : function(e) {
  32. document.open();
  33. document.write(inject(e.responseText));
  34. document.close();
  35. }
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement