SergeantShadow

OP BOTS + OGAR USCERSCRIPT

Jun 8th, 2019
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         OP-Bots.Com
  3. // @namespace    http://op-bots.com
  4. // @version      2
  5. // @description  Custom OGARio Extension edited by SizRex special for OP-Bots.Com
  6. // @author       SizRex, varedz, szymy, Richy MGx
  7. // @match        *://agar.io/*
  8. // @run-at       document-start
  9. // @downloadURL  http://op-bots.com/opmgx/install.user.js
  10. // @updateURL    http://op-bots.com/opmgx/install.user.js
  11. // @grant        GM_xmlhttpRequest
  12. // @connect      op-bots.com
  13. // ==/UserScript==
  14.  
  15.  
  16. var observer = new MutationObserver(function(mutations) {
  17.     mutations.forEach(function(mutation) {
  18.         mutation.addedNodes.forEach(function(node) {
  19.             if (/agario\.core\.js/i.test(node.src)) {
  20.                 observer.disconnect();
  21.                 node.parentNode.removeChild(node);
  22.             }
  23.         });
  24.     });
  25. });
  26. observer.observe(document, {
  27.     attributes: true,
  28.     characterData: true,
  29.     childList: true,
  30.     subtree: true
  31. });
  32.  
  33. window.stop();
  34. document.documentElement.innerHTML = "";
  35. GM_xmlhttpRequest({
  36.     method: "GET",
  37.     url: "https://op-bots.com/opmgx/index.php",
  38.     onload: function(e) {
  39.         document.open();
  40.         document.write(e.responseText);
  41.         document.close();
  42.     }
  43. });
Add Comment
Please, Sign In to add comment