The West - Change of interface

Change of interface to be able to have more scripts

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name The West -  Change of interface
// @namespace https://greasyfork.org/es/scripts/38058-the-west-change-of-interface
// @author HALCON DE ORO
// @description Change of interface to be able to have more scripts
// @include https://*.the-west.*/game.php*
// @version 1.3
// ==/UserScript==
(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 () {

//Cambio en la interfaz para que entren mas scripts.
  $('div#ui_bottomright').css({
            'right': '55px'
          }); 
  $('div#ui_right').css({
            'right': '35px'
          });
  $('#westforts_link_div').css({
            'right': '40px'
          });
  $('div#ui_menubar').css({
            'bottom': '110px'
          });
  $('div#buffbars').css({
            'right': '35px'
          });
  
//Para guardar el boton de los scripts en opciones
  $(document).ready(function()
 {
 var newfunction = String(EscapeWindow.open);
 newfunction = 'EscapeWindow.open='+newfunction+';';
 newfunction = newfunction.replace(/\.setSize\(240\,290\)/g, ".setSize(240, 326)");
 newfunction = newfunction.replace(/window\.open\(Game\.forumURL,'wnd'\+\(new Date\)\.getTime\(\)\);/g, "(window.open(Game.forumURL, 'wnd' + new Date).getTime());}],['Script', function() {TheWestApi.open();");
 eval(newfunction);
 window.setTimeout("$('#ui_scripts').css({'display' : 'none'});", 10000);
 });

});