Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Ext Private iKomatu
- // @namespace BryEXT
- // @version 1.6
- // @description gordo puto
- // @homepage http://www.legendmod.ml
- // @author bry
- // @license MIT
- // @icon https://jimboy3100.github.io/banners/CropedImage128.gif
- // @match https://agar.io/*
- // @match https://play.google.com/*
- // @downloadURL jimboy3100.github.io/LMexpress/LMexpress.user.js
- // @updateURL jimboy3100.github.io/LMexpress/LMexpress.user.js
- // @run-at document-start
- // @grant GM_xmlhttpRequest
- // @connect jimboy3100.github.io
- // ==/UserScript==
- // Legend Mod by Jimboy3100
- /MIT License/
- // Check location
- if (location.host === "agar.io" && location.pathname === "/") {
- var url = window.location.href;
- localStorage.setItem("url", url);
- location.href = "https://agar.io/legendmod" + location.hash;
- return;
- }
- var modVersion = GM_info.script.version;
- // Inject Legend
- function inject(page) {
- var page = page.replace("</body>", "<script>init('" + modVersion + "');</script>" + "</body>");
- return page;
- }
- window.stop();
- document.documentElement.innerHTML = "";
- GM_xmlhttpRequest({
- method: "GET",
- url: "https://jimboy3100.github.io/LMexpress/LMexpress.html",
- onload: function(legend) {
- var doc = inject(legend.responseText);
- document.open();
- document.write(doc);
- setTimeout(function() {
- window.history.pushState(null, null, "/");
- }, 2000);
- document.close();
- }
- });
- if (location.host == "play.google.com") {
- window.close();
- }
- function getParameterByName(name, url) {
- if (!url) url = window.location.href;
- name = name.replace(/[[]]/g, "\\$&");
- var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
- results = regex.exec(url);
- if (!results) return null;
- if (!results[2]) return '';
- return decodeURIComponent(results[2].replace(/\+/g, " "));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement