SHARE
TWEET

gordo

a guest May 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Ext Private iKomatu
  3. // @namespace    BryEXT
  4. // @version      1.6
  5. // @description  gordo puto
  6. // @homepage     http://www.legendmod.ml
  7. // @author       bry
  8. // @license      MIT
  9. // @icon         https://jimboy3100.github.io/banners/CropedImage128.gif
  10. // @match        https://agar.io/*
  11. // @match        https://play.google.com/*
  12. // @downloadURL  jimboy3100.github.io/LMexpress/LMexpress.user.js
  13. // @updateURL    jimboy3100.github.io/LMexpress/LMexpress.user.js
  14. // @run-at       document-start
  15. // @grant        GM_xmlhttpRequest
  16. // @connect      jimboy3100.github.io
  17. // ==/UserScript==
  18.  
  19. // Legend Mod by Jimboy3100
  20. /MIT License/
  21.  
  22. // Check location
  23. if (location.host === "agar.io" && location.pathname === "/") {
  24. var url = window.location.href;
  25. localStorage.setItem("url", url);
  26.     location.href = "https://agar.io/legendmod" + location.hash;
  27.     return;
  28. }
  29. var modVersion = GM_info.script.version;
  30. // Inject Legend
  31. function inject(page) {
  32.     var page = page.replace("</body>", "<script>init('" + modVersion + "');</script>" + "</body>");
  33.     return page;
  34. }
  35. window.stop();
  36. document.documentElement.innerHTML = "";
  37.  
  38. GM_xmlhttpRequest({
  39.     method: "GET",
  40.     url: "https://jimboy3100.github.io/LMexpress/LMexpress.html",
  41.     onload: function(legend) {
  42.         var doc = inject(legend.responseText);
  43.         document.open();
  44.         document.write(doc);
  45.         setTimeout(function() {
  46.             window.history.pushState(null, null, "/");
  47.         }, 2000);
  48.  
  49.         document.close();
  50.     }
  51. });
  52.  
  53. if (location.host == "play.google.com") {
  54.     window.close();
  55. }
  56.  
  57. function getParameterByName(name, url) {
  58.     if (!url) url = window.location.href;
  59.     name = name.replace(/[[]]/g, "\\$&");
  60.     var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
  61.         results = regex.exec(url);
  62.     if (!results) return null;
  63.     if (!results[2]) return '';
  64.     return decodeURIComponent(results[2].replace(/\+/g, " "));
  65. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top