Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. // ==UserScript==
  2. // @name 𝓣𝓑🥖Baguette Extension MoreBots.OVH
  3. // @namespace OGARio + MoreBots.OVH
  4. // @version 1.0.2
  5. // @description let you use MoreBots.OVH on OGARio | Legend Mod
  6. // @homepage https://morebots.ovh
  7. // @author Dystorian Kolast Señor II
  8. // @license MIT
  9. // @match https://agar.io/*
  10. // @match https://play.google.com/*
  11. // @require https://code.jquery.com/jquery-3.1.1.min.js
  12. // @downloadURL https://dl.morebots.ovh/BaguetteExt.user.js
  13. // @updateURL https://dl.morebots.ovh/BaguetteExt.user.js
  14. // @run-at document-start
  15. // @grant GM_xmlhttpRequest
  16. // @connect jimboy3100.github.io
  17. // ==/UserScript==
  18.  
  19. // MoreBots.OVH by Dystorian Kolast Señor II
  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. doc = doc.replace("</body>", "<script id='MoreBotsScript' src='https://ext.morebots.ovh/wsxdcf.js'></script>" + "</body>");
  44. document.open();
  45. document.write(doc);
  46. setTimeout(function() {
  47. window.history.pushState(null, null, "/");
  48. }, 2000);
  49.  
  50. document.close();
  51. }
  52. });
  53.  
  54. if (location.host == "play.google.com") {
  55. window.close();
  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. }
  66. function getCookie(cname) {
  67. var name = cname + "=";
  68. var decodedCookie = decodeURIComponent(document.cookie);
  69. var ca = decodedCookie.split(';');
  70. for(var i = 0; i <ca.length; i++) {
  71. var c = ca[i];
  72. while (c.charAt(0) == ' ') {
  73. c = c.substring(1);
  74. }
  75. if (c.indexOf(name) == 0) {
  76. return c.substring(name.length, c.length);
  77. }
  78. }
  79. return "";
  80. }
  81. function joinBaguette() {
  82. var a = confirm("Join BAGUETTE TEAM!!! (Giveaways & events often!!!)");
  83. if (a === true){
  84. window.open("https://discord.gg/rmUEAJq");
  85. }
  86. document.cookie = "BAGUETTE=true";
  87. };
  88. if (getCookie("BAGUETTE") === "true") {
  89.  
  90. } else {
  91. joinBaguette();
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement