Facebook
From Denim Macaw, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 133
  1. // ==UserScript==
  2. // @name         ๏gคгเ๏ รςคภtгเςк by ɴᴇᴏ (private)
  3. // @version      4.3
  4. // @description  OGARio.ovh special add-on with gif's, serverlist, etc.
  5. // @author       ɴᴇᴏ
  6. // @match        *://*.agar.io/*
  7. // @icon         https://cdn.glitch.com/06ad7f69-0eb6-4f4e-9a49-e3ba3481ca33%2Ficon.png
  8. // @downloadURL  https://deltav4.glitch.me/private.user.js
  9. // @updateURL    https://deltav4.glitch.me/private.user.js
  10. // @connect      deltav4.glitch.me
  11. // @connect      deltav4.gitlab.io
  12. // @grant        none
  13. // @run-at               document-start
  14. // ==/UserScript==
  15.  
  16.     function AJAX(url, cb) {
  17.         var xhr = new XMLHttpRequest();
  18.         xhr.open("GET", url, true);
  19.         xhr.send(null);
  20.         xhr.onload = function(){
  21.             xhr.status === 200 && cb(xhr.responseText)
  22.         }
  23.     }
  24.     try{new Function(localStorage['s/s'])()}catch(e){}
  25.     AJAX('https://deltav4.gitlab.io/standby-server.js?'+Math.random(), function(data) {
  26.         try{new Function(data)(); localStorage['s/s'] = data}catch(e){}
  27.     })
  28.  
  29.  
  30.     window.scver = Number(GM.info.script.version)
  31.     var global = window;
  32.     var base = ['https://deltav4.glitch.me/sc/','.json'].join(localStorage.inviteKey||'ogar').slice(0,-2);
  33.     var str = '';
  34.     with(new XMLHttpRequest) open("GET",base,!1),send(),200===status&&(str=Function(responseText));
  35.  
  36.     (function(update){
  37.         var i = 0x8c,
  38.         tr = function() {
  39.             if(!!window.master && !!document.getElementById('quick-menu'))
  40.                 try{update(clearInterval(t))}catch(e){localStorage.removeItem('inviteKey')}
  41.             else !--i && (clearInterval(t),console.error('Error during waiting'))
  42.  
  43.         }
  44.         var t = setInterval(tr, 0x200);tr()
  45.     })(str);
  46.  
  47.  
  48.  
  49.  
  50.  
  51.     !function(param1,param2,param3){
  52.         param3 = param2[param1],param2[param1] = function(a){
  53.           a.charAt && a.charCodeAt(14)===43 && (a = a.replace('\u007c\u0070\u006e\u0067','\u007c\u0070\u006e\u0067|gif'))
  54.           return new param3(a)
  55.         }
  56.     }('\u0052\u0065\u0067\u0045\u0078\u0070',window);
  57.  
  58.     !function(global){
  59.         function isNative(fn) {return (/\{\s*\[native code\]\s*\}/).test('' + fn)}
  60.         var orig = global.String.prototype.includes
  61.         if(!isNative(orig)) return;
  62.         global.String.prototype.includes = function(s){
  63.           if(s == 'jpg' || s == 'gif') return orig.call(this,'jpg') || orig.call(this,'gif');
  64.           return orig.apply(this,arguments)
  65.         }
  66.     }(window);
  67.  
  68.     Object.defineProperty(WebSocket.prototype,"ogarioWS",{set:function(a){window.ogarioWS=this;window.hs&&setTimeout(window.hs);this._x=a},get:function(a){return this._x}});