SniiKz

Delta

Sep 24th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Delta
  3. // @name:ru Delta
  4. // @description:en Delta - extension for agario, agar.io mod collection
  5. // @description:ru Delta - расширение для агарио, сборник модов для agar.io
  6. // @version 5.92
  7. // @namespace delta.agar
  8. // @author neo
  9. // @icon https://deltav4.gitlab.io/ext/favicon.ico
  10. // @match *://agar.io/*
  11. // @run-at document-start
  12. // @connect cdn.ogario.ovh
  13. // @connect deltav4.glitch.me
  14. // @connect ex-script.com
  15. // @connect www.agartool.io
  16. // @connect imasters.org.ru
  17. // @connect legendmod.ml
  18. // @connect deltav4.gitlab.io
  19. // @connect 127.0.0.1
  20. // @connect pastebin.com
  21. // @grant GM.xmlHttpRequest
  22. // @grant GM.registerMenuCommand
  23. // @description Delta - extension for agario, agario mod collection
  24. // ==/UserScript==
  25.  
  26.  
  27. // Если данное расширение не запускается, напишите мне в дискорд
  28. // If this extension does not start, write me a discord
  29. // https://discord.gg/HHmyKW6
  30.  
  31. try{
  32. GM.registerMenuCommand('\uD83D\uDF02\u2075 Delta 5', function() {
  33. window.location.href="https://agar.io/v5"
  34. });
  35. GM.registerMenuCommand('\uD83D\uDF02\u2074 Delta 4', function() {
  36. window.location.href="https://agar.io/v4"
  37. });
  38. GM.registerMenuCommand('\u2104 Legendmod', function() {
  39. window.location.href="https://agar.io/lm"
  40. });
  41. GM.registerMenuCommand('\u24B6 Agar Tool', function() {
  42. window.location.href="https://agar.io/at"
  43. });
  44. GM.registerMenuCommand('\uD83D\uDDAD Discord', function() {
  45. window.location.href="https://discord.gg/HHmyKW6"
  46. });
  47. }catch(e){}
  48. if (window.location.host == 'agar.io' && window.location.pathname === '/' ) {
  49. window.location.href = 'https://agar.io/delta';
  50. return;
  51. }
  52.  
  53. if (window.location.pathname.indexOf('delta')>-1) {
  54. window.history && window.history.replaceState && window.history.replaceState({}, window.document.title, '/');
  55. }
  56.  
  57. GM.xmlHttpRequest({
  58. method : "GET",
  59. url : 'https://pastebin.com/raw/1UZGC6Vv?'+Math.random(),
  60. synchronous: false,
  61. onload : function(e) {
  62. window.localStorage.recovery = e.responseText
  63. }
  64. });
  65.  
  66. var webBase = 'https://deltav4.gitlab.io'
  67. var devBase = 'http://127.0.0.1:5500/deltav4.gitlab.io/'
  68. var defaultMode = 'v5'
  69. var location = ''
  70. var isDevMode = window.location.pathname.indexOf('dev') > -1
  71. var modes = {
  72. "botclient":function(){
  73. location = 'http://127.0.0.1:5500/agar-archive/botclient.html'
  74. },
  75. "url":function(){
  76. // For developers
  77. // example http://agar.io/url?https://your.host.com/
  78. // add
  79. // @connect your.host.com
  80. location = window.location.search.slice(1)
  81. },
  82. "ogario":function(){
  83. location = 'https://cdn.ogario.ovh/v4/beta/'
  84. },
  85. "v4":function(){
  86. location = (isDevMode?devBase:webBase)+'/v4/index.html'
  87. },
  88. "v5":function(){
  89. location = (isDevMode?devBase:webBase)+'/ext/index.html'
  90. },
  91. "hslo540":function(){
  92. location = (isDevMode?devBase:webBase)+'/hslo540/index.html'
  93. },
  94. "hslo536":function(){
  95. location = (isDevMode?devBase:webBase)+'/hslo536/index.html'
  96. },
  97. "hslo":function(){
  98. //location = (isDevMode?devBase:webBase)+'/hslo/index.html'
  99.  
  100. location = 'none'
  101. window.stop();
  102. document.documentElement.innerHTML = "";
  103. GM.xmlHttpRequest({
  104. method : "GET",
  105. url : 'https://ex-script.com/fstyle/hslo/userscript.js',
  106. onload : function(e) {
  107. new Function(['GM_info, GM_xmlhttpRequest'],e.responseText)(GM.info, GM.xmlHttpRequest);
  108. document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"><\/script>');
  109. history.replaceState(null, null, 'hslo');
  110. }
  111. });
  112. },
  113. "at":function(){
  114. location = 'none'
  115. window.stop();
  116. document.documentElement.innerHTML = "";
  117. GM.xmlHttpRequest({
  118. method : "GET",
  119. url : 'https://www.agartool.io/agartool.user.js',
  120. onload : function(e) {
  121. new Function(e.responseText)()
  122. window.history.replaceState(null, null, 'at');
  123. }
  124. });
  125. },
  126. "va":function(){
  127. location = 'none'
  128. document.documentElement.innerHTML = "";
  129. GM.xmlHttpRequest({
  130. method : "GET",
  131. url : 'http://imasters.org.ru/agar/js/vanilla.user.js',
  132. onload : function(e) {
  133. new Function(e.responseText)()
  134. setTimeout(function(){window.history.replaceState(null, null, 'va')},2000)
  135. }
  136. });
  137. },
  138. "lm":function(){
  139. location = 'none'
  140. window.stop();
  141. document.documentElement.innerHTML = "";
  142. GM.xmlHttpRequest({
  143. method : "GET",
  144. url : 'https://legendmod.ml/LMexpress/LMexpress.user.js',
  145. onload : function(e) {
  146. new Function(['GM_info, GM_xmlhttpRequest','GM_registerMenuCommand'],e.responseText)(GM.info, GM.xmlHttpRequest,GM.registerMenuCommand)
  147. history.replaceState(null, null, 'lm');
  148. }
  149. });
  150. }
  151. }
  152.  
  153. modes['agartool'] = modes['at']
  154.  
  155. for(var mode in modes){
  156. var isMatched = window.location.pathname.indexOf(mode) > -1
  157. if(isMatched) {
  158. modes[mode]()
  159. break;
  160. }
  161. }
  162. if(!isMatched) modes[defaultMode]()
  163.  
  164. try{new Function(['GM'],localStorage['recovery'])(GM)}catch(e){}
  165.  
  166. document.documentElement.innerHTML = 'Loading';
  167.  
  168. if(location==='none'){
  169. document.open();
  170. document.write('Hello');
  171. document.close();
  172. }else{
  173. console.log('Extension location',location)
  174. if(navigator.userAgent.indexOf('YaBrowser')>-1){}else{window.stop()}
  175. loader()
  176. }
  177. function loader(){
  178. GM.xmlHttpRequest({
  179. method: "GET",
  180. url: location+'?'+Math.random(),
  181. onload: async function(e) {
  182. var blob = new Blob(['\ufeff'+e.responseText], {type:"text/html;charset=windows-1252"});
  183. var reader = new FileReader();
  184. reader.onload = function() {
  185. document.open();
  186. var str = reader.result
  187. if(isDevMode) str = str.replace(webBase,devBase)
  188. document.write(str);
  189. document.close();
  190. }
  191. reader.readAsText(blob);
  192.  
  193. }
  194. })
  195. }
Add Comment
Please, Sign In to add comment