Fix Mutik

Turn autojoin on on load and fix it when stops working

Verze ze dne 14. 11. 2017. Zobrazit nejnovější verzi.

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

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

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==
// @name         Fix Mutik
// @namespace    http://tampermonkey.net/
// @version      0.11
// @description  Turn autojoin on on load and fix it when stops working
// @author       Crowo
// @match        https://www.kongregate.com/games/5thPlanetGames/dawn-of-the-dragons*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var elm = document.createElement("li");
    elm.setAttribute("class", "spritegame");
    elm.style.backgroundPositionY = "-280px";
    elm.style.cursor = "pointer";

    var l = document.createElement("a");
    l.innerText = "Fix Mutik";
    l.onclick = function(){
        DRMng.Raids.isJoining=false;
    };
    elm.appendChild(l);
    document.getElementById("quicklinks").appendChild(elm);

    (function f(){
        if(!DRMng || !DRMng.Raids){
            window.setTimeOut(f, 100);
            return;
        }
        if(!DRMng.isAuto)
            DRMng.Raids.switchAutoJoin();
    })();


})();