wormate.io anti anti ad blocker

wormate.io anti anti ad blocker (use to bypass "Oops.. Looks like you're using an ad blocker.. Please disable your ad blocker! Ads help us to keep the game active and growing. The game will continue in .. n")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        wormate.io anti anti ad blocker
// @namespace   http://bzzzzdzzzz.blogspot.com/
// @version     0.2
// @description wormate.io anti anti ad blocker (use to bypass "Oops.. Looks like you're using an ad blocker.. Please disable your ad blocker! Ads help us to keep the game active and growing. The game will continue in .. n")
// @author      BZZZZ
// @include     https://wormate.io/
// @include     http://wormate.io/
// @grant       none
// @run-at      document-end
// @inject-into content
// ==/UserScript==

{
    const stl = document.createElement("STYLE");
    stl.textContent = "DIV#mm-action-buttons{display:none!important;}DIV#mm-action-login{width:320px;}INPUT[type=\"button\"].aabi{width:100%;height:60px;font-size:xx-large;}";
    document.getElementsByTagName("HEAD")[0].appendChild(stl);
    const ma = document.getElementById("mm-action-buttons");
    ma.style.display = "none";
    const mp = document.createElement("INPUT");
    mp.type = "button";
    mp.value = "Play";
    mp.setAttribute("onclick", "document.getElementById(\"adbl-continue\").click();");
    mp.classList.add("aabi");
    ma.parentNode.appendChild(mp);
    const ml = document.getElementById("mm-action-login");
    const mlo = document.createElement("INPUT");
    mlo.type = "button";
    mlo.value = "LogIn";
    mlo.classList.add("aabi");
    ml.replaceChild(mlo, ml.children[0]);
    ma.removeChild(ml);
    const mlc = document.createElement("CENTER");
    mlc.appendChild(ml);
    document.getElementById("settings-view").appendChild(mlc);
}