Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Delta v4
  3. // @version 5.1
  4. // @description 9999999 in 1
  5. // @namespace delta.agar
  6. // @author neo
  7. // @match *://agar.io/*
  8. // @run-at document-start
  9. // @connect cdn.ogario.ovh
  10. // @connect ogar.io
  11. // @connect deltav4.glitch.me
  12. // @connect hslo.io
  13. // @connect www.agartool.io
  14. // @connect imasters.org.ru
  15. // @connect legendmod.ml
  16. // @connect ogar.ovh
  17. // @grant GM.xmlHttpRequest
  18. // ==/UserScript==
  19.  
  20. if (location.host == 'agar.io' && location.pathname === '/' ) {
  21. location.href = 'https://agar.io/delta';
  22. return;
  23. }
  24.  
  25. var mode = location.pathname.slice(1)
  26. var url;
  27. switch(mode){
  28. case 'generator':
  29. url = 'https://deltav4.glitch.me/generator.html'
  30. break;
  31. case 'ogario':
  32. url = 'https://cdn.ogario.ovh/v4/beta/'
  33. break;
  34. case 'delta':
  35. url = 'https://deltav4.glitch.me/v4/index.html'
  36. break;
  37. case 'remade-delta':
  38. url = 'https://deltav4.glitch.me/remade-delta/index.html'
  39. break;
  40. case 'dev': url = 'http://ogar.ovh/index.html'
  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. document.documentElement.innerHTML = "";
  68. url = null
  69. GM.xmlHttpRequest({
  70. method : "GET",
  71. url : 'http://imasters.org.ru/agar/js/vanilla.user.js',
  72. onload : function(e) {
  73. new Function(e.responseText)()
  74. }
  75. });
  76. break;
  77. case 'legendmod':
  78. case 'lm':
  79. window.stop();
  80. document.documentElement.innerHTML = "";
  81. url = null
  82. GM.xmlHttpRequest({
  83. method : "GET",
  84. url : 'https://legendmod.ml/LMexpress/LMexpress.user.js',
  85. onload : function(e) {
  86. new Function(['GM_info, GM_xmlhttpRequest'],e.responseText)(GM.info, GM.xmlHttpRequest)
  87. }
  88. });
  89. break;
  90. default: url = 'https://deltav4.glitch.me/v4/index.html'
  91. console.log(mode)
  92.  
  93. }
  94.  
  95.  
  96.  
  97. document.documentElement.innerHTML = "Loading";
  98. if(mode=='none'){
  99. document.open();
  100. document.write('Hello');
  101. document.close();
  102. }else{
  103. GM.xmlHttpRequest({
  104. method: "GET",
  105. url: url,
  106. onload: function(e) {
  107. var D = window.document;
  108. var newDoc = D.implementation.createHTMLDocument();
  109. D.replaceChild (
  110. D.importNode (newDoc.documentElement, true),
  111. D.documentElement
  112. );
  113. document.open();
  114. document.write(e.response);
  115. document.close();
  116.  
  117. }
  118. });
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement