The West - Connection booster

A utility for boost connection

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @namespace		https://greasyfork.org/users/8637
// @name        	The West - Connection booster
// @author      	neversleep1911
// @description		A utility for boost connection
// @include     	http://*.the-west.*/game.php*
// @include     	https://*.the-west.*/game.php*
// @grant       	none
// @version     	1.0
// @copyright		Copyright (c) 2015 neversleep1911
// @license			MIT (http://opensource.org/licenses/MIT)
// ==/UserScript==

(function(func) {
    var script;
    script = document.createElement("script");
    script.setAttribute("type", "text/javascript");
    script.textContent = "(" + func.toString() + ")();";
    document.body.appendChild(script);
    document.body.removeChild(script);
})(function() {
    var Booster;
    Booster = function() {
        function Booster() {
            this.timer = setInterval(Chat.Request.Nop, this.INTERVAL);
        }
        Booster.ID = "tw_booster";
        Booster.NAME = "Booster";
        Booster.AUTHOR = "neversleep1911";
        Booster.WEB_SITE = "https://greasyfork.org/scripts/9007";
        Booster.MIN_GAME_VERSION = "2.21";
        Booster.MAX_GAME_VERSION = Game.version.toString();
        Booster.prototype.INTERVAL = 2e4;
        return Booster;
    }();
    $(document).ready(function() {
        var api;
        api = TheWestApi.register(Booster.ID, Booster.NAME, Booster.MIN_GAME_VERSION, Booster.MAX_GAME_VERSION, Booster.AUTHOR, Booster.WEB_SITE);
        api.setGui("Copyrights, changelog and other details see <a href='" + Booster.WEB_SITE + "' target='_blank'>here</a>.");
        new Booster;
        return true;
    });
});