tanksmith.io adblock play button fix (also remves ads)

fix play button not working when using adblock (side effect when not using adblocker: removes ads)

Stan na 27-03-2021. Zobacz najnowsza wersja.

// ==UserScript==
// @name        tanksmith.io adblock play button fix (also remves ads)
// @namespace   http://bzzzzdzzzz.blogspot.com/
// @description fix play button not working when using adblock (side effect when not using adblocker: removes ads)
// @author      BZZZZ
// @include     /^https?\:\/\/tanksmith\.io\/([?#]|$)/
// @version     0.3
// @grant       none
// @run-at      document-start
// ==/UserScript==
 
{
const a=window.document.createElement("div");
a.setAttribute("onclick","window.Object.defineProperty(window,'aiptag',{get:()=>({cmd:{display:{push:()=>{}},player:{push:()=>window.continueToPlay()}}}),set:()=>{}});");
a.click();
}