Turn autojoin on on load and fix it when stops working
ของเมื่อวันที่
// ==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();
})();
})();