Advertisement
Guest User

// ==UserScript== // @name Jaime 2019 OGario V.6 // @namespa

a guest
May 26th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Jaime 2019 OGario V.6
  3. // @namespace Jaime Express Agario Mod
  4. // @version 1.6
  5. // @description Agario Mod - Legend,Ogario,Kitty,Old Skins,Animated Skins,Language Packs,Manual User Scripts,Chat,60++ Macros/Hotkeys(Tricksplit,Doublesplit,Quick Feeding,Popsplit,Auto Coins,Freeze Cell Macro,Auto respawn)
  6. // @homepage http://www.legendmod.ml
  7. // @author Jaime
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement