button for me tetr.js Enhanced

20-02-20

目前为 2020-02-20 提交的版本。查看 最新版本

// ==UserScript==
// @name         button for me tetr.js Enhanced
// @namespace    http://tampermonkey.net/
// @version      1.4
// @author       ore100
// @description  20-02-20
// @match        http://farter*/t*
// @match        http*://*/tetr.js*
// @match        https://doktorocelot.com/tetr.js/
// @grant        none
// ==/UserScript==

(function() {
    window.addEventListener('load', function(){

if(typeof trim != "function"){var trim=a=>{a=a.slice(0,-1);a=a.substr(a.indexOf("{")+1);return a}}

{p=document.getElementById("touchDrop");p.style.marginLeft="116px";p.style.marginTop="47px";p.style.paddingBottom="22px";p.style.maxWidth="80px";p.style.backgroundColor="#aaa";console.log(p)};
{l=document.getElementById("touchLeft");l.style.marginLeft="-66px";l.style.marginTop="-20px";l.style.paddingBottom="22px";l.style.maxWidth="80px";l.style.backgroundColor="#aaa";console.log(l)};


{r=document.getElementById("touchRight");r.style.marginLeft="-178px";r.style.marginTop="-20px";r.style.paddingBottom="22px";r.style.maxWidth="66px";r.style.backgroundColor="red";console.log(r);}
{w=document.getElementById("touchRotLeft");w.style.marginLeft="142px";w.style.marginTop="47px";w.style.paddingBottom="22px";w.style.maxWidth="66px";w.style.backgroundColor="red";console.log(w)};
{c=document.getElementById("touchRotRight");c.style.marginLeft="112px";c.style.marginTop="47px";c.style.paddingBottom="22px";c.style.maxWidth="66px";c.style.backgroundColor="red";console.log(c)};


{d=document.getElementById("touchDown");d.style.marginLeft="109px";d.style.marginTop="-109px";d.style.paddingBottom="22px";d.style.maxWidth="90px";d.style.backgroundColor="#aaa";console.log(d)};
{h=document.getElementById("touchHold");h.style.marginLeft="-150px";h.style.marginTop="-111px";h.style.paddingBottom="22px";h.style.maxWidth="90px";h.style.backgroundColor="#aaa";console.log(h)};
{o=document.getElementById("touchRot180");o.style.marginLeft="-50px";o.style.marginTop="-66px";o.style.paddingBottom="22px";o.style.maxWidth="90px";o.style.backgroundColor="red";console.log(o)};





    });
})();
//width360 on browser dev tool