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")

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);
}