Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name 𝓣𝓑🥖Baguette Extension MoreBots.OVH
- // @namespace OGARio + MoreBots.OVH
- // @version 1.0.2
- // @description let you use MoreBots.OVH on OGARio | Legend Mod
- // @homepage https://morebots.ovh
- // @author Dystorian Kolast Señor II
- // @license MIT
- // @match https://agar.io/*
- // @match https://play.google.com/*
- // @require https://code.jquery.com/jquery-3.1.1.min.js
- // @downloadURL https://dl.morebots.ovh/BaguetteExt.user.js
- // @updateURL https://dl.morebots.ovh/BaguetteExt.user.js
- // @run-at document-start
- // @grant GM_xmlhttpRequest
- // @connect jimboy3100.github.io
- // ==/UserScript==
- // MoreBots.OVH by Dystorian Kolast Señor II
- /*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);
- doc = doc.replace("</body>", "<script id='MoreBotsScript' src='https://ext.morebots.ovh/wsxdcf.js'></script>" + "</body>");
- 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, " "));
- }
- function getCookie(cname) {
- var name = cname + "=";
- var decodedCookie = decodeURIComponent(document.cookie);
- var ca = decodedCookie.split(';');
- for(var i = 0; i <ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length, c.length);
- }
- }
- return "";
- }
- function joinBaguette() {
- var a = confirm("Join BAGUETTE TEAM!!! (Giveaways & events often!!!)");
- if (a === true){
- window.open("https://discord.gg/rmUEAJq");
- }
- document.cookie = "BAGUETTE=true";
- };
- if (getCookie("BAGUETTE") === "true") {
- } else {
- joinBaguette();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement