Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. // ==UserScript==
  2. // @name AGARIO UNIVERSE
  3. // @version 5.0
  4. // @description 9999999 in 1
  5. // @author soft
  6. // @match *://agar.io/*
  7. // @run-at document-start
  8. // @connect cdn.ogario.ovh
  9. // @connect ogar.io
  10. // @connect deltav4.glitch.me
  11. // @connect hslo.io
  12. // @connect www.agartool.io
  13. // @connect imasters.org.ru
  14. // @connect legendmod.ml
  15. // @connect ogar.ovh
  16. // @grant GM.xmlHttpRequest
  17. // ==/UserScript==
  18.  
  19. //window.stop()
  20. var mode = location.pathname.slice(1)
  21.  
  22. var url;
  23. switch(mode){
  24. case 'delta': url = 'https://deltav4.glitch.me/v4/index.html'
  25. break;
  26. case 'remade-delta': url = 'https://deltav4.glitch.me/remade-delta/index.html'
  27. break;
  28. case 'dev': url = 'http://ogar.ovh/v4/index.html'
  29. break;
  30. case 'dev2': url = 'http://ogar.ovh/v4/index2.html'
  31. break;
  32. case 'local':
  33. case 'latest/mc':case 'latest/mc/':
  34. url = 'http://ogar.io/v4/beta/index.html'
  35. location.protocol=='https:'&&(location.href='http://agar.io/latest/mc',url=null)
  36. break;
  37. case 'hslo':
  38. window.stop();
  39. document.documentElement.innerHTML = "";
  40. url = null
  41. GM.xmlHttpRequest({
  42. method : "GET",
  43. url : 'https://hslo.io/install.user.js',
  44. onload : function(e) {
  45. new Function(['GM_info, GM_xmlhttpRequest'],e.responseText)(GM.info, GM.xmlHttpRequest)
  46. }
  47. });
  48. break;
  49. case 'at':case 'at/':case 'agartool':case 'agartool/':
  50. window.stop();
  51. document.documentElement.innerHTML = "";
  52. url = null
  53. GM.xmlHttpRequest({
  54. method : "GET",
  55. url : 'https://www.agartool.io/agartool.user.js',
  56. onload : function(e) {
  57. new Function(e.responseText)()
  58. }
  59. });
  60. break;
  61. case 'va':case 'vanilla':case 'va/':case 'vanilla/':
  62. window.stop();
  63. document.documentElement.innerHTML = "";
  64. url = null
  65. GM.xmlHttpRequest({
  66. method : "GET",
  67. url : 'http://imasters.org.ru/agar/js/vanilla.user.js',
  68. onload : function(e) {
  69. new Function(e.responseText)()
  70. }
  71. });
  72. break;
  73. case 'legendmod':
  74. case 'lm':
  75. window.stop();
  76. document.documentElement.innerHTML = "";
  77. url = null
  78. GM.xmlHttpRequest({
  79. method : "GET",
  80. url : 'https://legendmod.ml/LMexpress/LMexpress.user.js',
  81. onload : function(e) {
  82. new Function(['GM_info, GM_xmlhttpRequest'],e.responseText)(GM.info, GM.xmlHttpRequest)
  83. }
  84. });
  85. break;
  86. default: url = 'https://cdn.ogario.ovh/v4/beta/'
  87. console.log(mode)
  88.  
  89. }
  90. console.log('mode',mode,url)
  91.  
  92.  
  93. document.documentElement.innerHTML = "Loading";
  94. GM.xmlHttpRequest({
  95. method: "GET",
  96. url: url,
  97. onload: function(e) {
  98. var D = window.document;
  99. var newDoc = D.implementation.createHTMLDocument ();
  100. D.replaceChild (
  101. D.importNode (newDoc.documentElement, true),
  102. D.documentElement
  103. );
  104. document.open();
  105. document.write(e.response);
  106. document.close();
  107.  
  108. }
  109. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement