Advertisement
RednathYT

myidck

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