NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name SunLegendario // @namespace http://tampermonkey.net/ // @version 0.2 // @description try to take over the world! // @author You // @match https://blockfarm.club/farm/mapview/sun-map* // @match https://blockfarm.club/farm/mapview/world-map* // @match https://blockfarm.club/farm/mapview/moon-map* // @icon https://www.google.com/s2/favicons?domain=blockfarm.club // @grant unsafe // @downloadURL https://openuserjs.org/install/osatien/SunLegendario.user.js // @updateURL https://openuserjs.org/meta/osatien/SunLegendario.meta.js // @license LGPL-2.0-or-later // ==/UserScript== var enMapas = function () { unsafeWindow.closeModalAlter = function (text) { console.log("a") //alert("aaa") const modal = document.getElementById("modal") modal.classList.remove("scale-100"); statusAboutModalAlter("Starting Action DELETED..."); }; var script = document.createElement('script'); script.type = "text/javascript"; script.innerHTML = (<><![CDATA[ var Queue = function () { var previous = new $.Deferred().resolve(); return function (fn, fail) { if (typeof fn !== 'function') { throw 'must be a function'; } return previous = previous.then(fn, fail || fn); }; }; var colita = Queue(); var cola = $({}) $('.border-pink-900').click(function () { alert("llamando") openModalAlter = function () { console.log("modalAlter") } statusAboutModalAlter = function (data) { console.log("dd" + data); setTimeout(function () { cola.dequeue("cola"); }, 1000); } $('.bg-blue-600:contains(Interact)').each(function () { console.log("cola.queue('cola',function(){" + $(this).attr("onclick") + "})") eval("cola.queue('cola',function(){" + $(this).attr("onclick") + "})") }) cola.dequeue('cola') }); ]]></>).toString(); document.getElementsByTagName('head')[0].appendChild(script); } console.log("oscar") var camino = window.location.pathname console.log(camino) if (camino.startsWith("/farm/mapview/world-map/")) { console.log("estoy en planeta"); enMapas() } else if (camino.startsWith("/farm/mapview/moon-map/")) { console.log("estoy en planeta"); enMapas() } else if (camino.startsWith("/farm/mapview/sun-map/")) { console.log("estoy en planeta"); enMapas() } else { (function () { 'use strict'; $('.border-pink-900').click(function () { $('*:contains("Legendar")').each(function () { if ($(this).children().length < 1) $(this).parent().parent().parent().parent().parent().find('img').attr('class', 'h-16 w-16') }); }); // Your code here... })(); }