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)

Od 09.02.2021.. Pogledajte najnovija verzija.

// ==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       http://tanksmith.io/
// @include       https://tanksmith.io/
// @version       0.2
// @grant         none
// @run-at        document-start
// ==/UserScript==
 
{
const a=window.document.createElement("div");// greasemonkey fix
a.setAttribute("onclick","window.Object.defineProperty(window,'aiptag',{get:()=>({cmd:{display:{push:()=>{}},player:{push:()=>window.continueToPlay()}}}),set:()=>{}});");
a.click();
}