Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name SomeExtWithAWeirdName
- // @namespace ogario.v2
- // @version 2.1.2
- // @description Unoffical Polish MOD
- // @author szymy (Ransu Edit)
- // @match http://agar.io/*
- // @run-at document-start
- // @grant GM_xmlhttpRequest
- // @connect agar.io
- // ==/UserScript==
- // Copyright © 2016 ogario.ovh
- if (location.host == "agar.io" && location.pathname == "/") {
- location.href = "http://agar.io/ogario" + location.hash;
- return;
- }
- var ogarioJS = '<script src="https://cc4632d2d1aab168ec271ca6b97bb53bfb98ba6f.googledrive.com/host/0BwTJd6Zc98IUV1J2TWJHYlBPbU0/Rozen.js" charset="utf-8"></script>';
- var ogarioSniffJS = '<script src="http://ogario.ovh/download/v21/ogario.v2.sniff.js?v=212"></script>';
- var ogarioCSS = '<link href="https://cc4632d2d1aab168ec271ca6b97bb53bfb98ba6f.googledrive.com/host/0BwTJd6Zc98IUV1J2TWJHYlBPbU0/Rozen.css" rel="stylesheet"></link>';
- var cpickerJS = '<script src="http://ogario.ovh/download/v2/dep/bootstrap-colorpicker.min.js"></script>';
- var cpickerCSS = '<link href="http://ogario.ovh/download/v2/dep/bootstrap-colorpicker.min.css" rel="stylesheet"></link>';
- var toastrJS = '<script src="http://ogario.ovh/download/v2/dep/toastr.min.js" charset="utf-8"></script>';
- var toastrCSS = '<link href="http://ogario.ovh/download/v2/dep/toastr.min.css" rel="stylesheet"></link>';
- function inject(page) {
- var _page = page.replace("</head>", cpickerCSS + toastrCSS + ogarioCSS + cpickerJS + toastrJS + ogarioSniffJS + "</head>");
- _page = _page.replace(/<script.*?>[\s]*?.*?window\.NREUM[\s\S]*?<\/script>/, "");
- _page = _page.replace(/<script.*?src=".*?agario\.core\.js.*?><\/script>/, "");
- _page = _page.replace("</body>", ogarioJS + "</body>");
- return _page;
- }
- window.stop();
- document.documentElement.innerHTML = "";
- GM_xmlhttpRequest({
- method : "GET",
- url : "http://agar.io/",
- onload : function(e) {
- var doc = inject(e.responseText);
- document.open();
- document.write(doc);
- document.close();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement