iProxxyyyy

Delta v4 is DOWN

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