// ==UserScript== // @name The West - Selector de buffs // @namespace HALCON DE ORO // @description Selector de Tipos de buffs // @include http://*.the-west.*/game.php* // @version 2.11.p // @grant none // @downloadURL none // ==/UserScript== /*jgdgfgdsvgpivgigviwsgv*/ (function(func) { var script = document.createElement("script"); script.setAttribute("type", "application/javascript"); script.textContent = "(" + func.toString() + ")();"; document.body.appendChild(script); document.body.removeChild(script); }(function() { var TW_Widgets = new Object(); window.TW_Widgets = { script: TheWestApi.register('TW_Widgets', 'The West-Selector de buffs', '2.15', '3.00', 'HALCON DE ORO', 'https://greasyfork.org/es/scripts/6314-the-west-selector-de-buffs'), setGui: function () { this.script.setGui('

BUenas para cualquier cosa, avisenme HALCON DE ORO :)


\ Se aceptan sugerencias de mejoras..\ '); }, init: function () { this.setGui(); } }; function CheckForUpdate() { var lastupdatecheck = GM_getValue('muUpdateParam_133', 'never'); var updateURL = 'https://greasyfork.org/scripts/6314-the-west-selector-de-buffs/code/The%20West%20-%20Selector%20de%20buffs.user.js'; var today = new Date(); var one_day = 24 * 60 * 60 * 1000; /*Un dia en milisegundos*/ if (lastupdatecheck != 'never') { today = today.getTime(); /*Obtener fecha de hoy*/ var lastupdatecheck = new Date(lastupdatecheck).getTime(); var interval = (today - lastupdatecheck) / one_day; /*Averigüe cuántos días han pasado - Si ha pasado un dia desde la última comprobación de actualización , compruebe si hay una nueva versión disponible*/ if (interval >= 1) { update(updateURL); } else { } } else { update(updateURL); } } TW_Widgets.MenuButton = function(image, title, onclick) { var self = this; this.isHovered = false; this.onClick = onclick; var clicked = function(e) { if (self.onClick) self.onClick(self, e); } var repaint = function() { var x = !self.isHovered ? 0 : -25; self.obj.css("background-position", x + "px 0px"); } var mouseIn = function() { self.isHovered = true; repaint(); } var mouseOut = function() { self.isHovered = false; repaint(); } this.obj = $("