Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Bry extension
- // @version 5.0
- // @description 9999999 in 1
- // @author soft
- // @match *://agar.io/*
- // @run-at document-start
- // @connect cdn.ogario.ovh
- // @connect ogar.io
- // @connect deltav4.glitch.me
- // @connect hslo.io
- // @connect [URL]www.agartool.io[/URL]
- // @connect imasters.org.ru
- // @connect legendmod.ml
- // @connect ogar.ovh
- // @grant GM.xmlHttpRequest
- // ==/UserScript==
- [URL]//window.stop()[/URL]
- var mode = location.pathname.slice(1)
- var url;
- [URL]//if(mode=='none')[/URL] throw false;
- switch(mode){
- case 'generator':url = 'https://deltav4.glitch.me/generator.html'
- break;
- case 'delta': url = 'https://deltav4.glitch.me/v4/index.html'
- break;
- case 'remade-delta': url = 'https://deltav4.glitch.me/remade-delta/index.html'
- break;
- case 'dev': url = 'http://ogar.ovh/v4/index.html'
- break;
- case 'dev2': url = 'http://ogar.ovh/v4/index2.html'
- break;
- case 'local':
- case 'latest/mc':case 'latest/mc/':
- url = 'http://ogar.io/v4/beta/index.html'
- location.protocol=='https:'&&(location.href='http://agar.io/latest/mc',url=null)
- break;
- case 'hslo':
- window.stop();
- document.documentElement.innerHTML = "";
- url = null
- GM.xmlHttpRequest({
- method : "GET",
- url : 'https://hslo.io/install.user.js',
- onload : function(e) {
- new Function(['GM_info, GM_xmlhttpRequest'],e.responseText)(GM.info, GM.xmlHttpRequest)
- }
- });
- break;
- case 'at':case 'at/':case 'agartool':case 'agartool/':
- window.stop();
- document.documentElement.innerHTML = "";
- url = null
- GM.xmlHttpRequest({
- method : "GET",
- url : 'https://www.agartool.io/agartool.user.js',
- onload : function(e) {
- new Function(e.responseText)()
- }
- });
- break;
- case 'va':case 'vanilla':case 'va/':case 'vanilla/':
- window.stop();
- document.documentElement.innerHTML = "";
- url = null
- GM.xmlHttpRequest({
- method : "GET",
- url : 'http://imasters.org.ru/agar/js/vanilla.user.js',
- onload : function(e) {
- new Function(e.responseText)()
- }
- });
- break;
- case 'legendmod':
- case 'lm':
- window.stop();
- document.documentElement.innerHTML = "";
- url = null
- GM.xmlHttpRequest({
- method : "GET",
- url : 'https://legendmod.ml/LMexpress/LMexpress.user.js',
- onload : function(e) {
- new Function(['GM_info, GM_xmlhttpRequest'],e.responseText)(GM.info, GM.xmlHttpRequest)
- }
- });
- break;
- default: url = 'https://cdn.ogario.ovh/v4/beta/'
- console.log(mode)
- }
- console.log('mode',mode,url)
- document.documentElement.innerHTML = "Loading";
- if(mode=='none'){
- document.open();
- document.write('Hello');
- document.close();
- }else{
- GM.xmlHttpRequest({
- method: "GET",
- url: url,
- onload: function(e) {
- var D = window.document;
- var newDoc = D.implementation.createHTMLDocument ();
- D.replaceChild (
- D.importNode (newDoc.documentElement, true),
- D.documentElement
- );
- document.open();
- document.write(e.response);
- document.close();
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement