button for me tetr.js Enhanced

20-07-22

As of 2020-07-23. See the latest version.

// ==UserScript==
// @name         button for me tetr.js Enhanced
// @namespace    http://tampermonkey.net/
// @version      1.7
// @author       ore100
// @description  20-07-22
// @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").style;
p.marginLeft="124px";
p.marginTop="47px";
p.maxWidth="71px";
p.paddingBottom="22px";
p.backgroundColor="#777";console.log(p)};


{c=document.getElementById("touchRotRight").style;
c.marginLeft="116px";
c.marginTop="47px";
c.maxWidth="70px";
c.paddingBottom="22px";
c.backgroundColor="#777";console.log(c)};


{w=document.getElementById("touchRotLeft").style;
w.marginLeft="142px";
w.marginTop="22px";
w.maxWidth="70px";
w.paddingBottom="22px";
w.backgroundColor="#777";console.log(w)};


{r=document.getElementById("touchRight").style;
r.marginLeft="-182px";
r.marginTop="-20px";
r.maxWidth="70px";
r.paddingBottom="22px";
r.backgroundColor="#777";console.log(r)};


{l=document.getElementById("touchLeft").style;
l.marginLeft="-61px";
l.marginTop="-20px";
l.maxWidth="71px";
l.paddingBottom="22px";
l.backgroundColor="#777";console.log(l)};


{d=document.getElementById("touchDown").style;
d.marginLeft="120px";
d.marginTop="-111px";
d.maxWidth="70px";
d.paddingBottom="22px";
d.backgroundColor="#777";console.log(d)};

{h=document.getElementById("touchHold").style;
h.marginLeft="-132px";
h.marginTop="-118px";
h.maxWidth="70px";
h.paddingBottom="22px";
h.backgroundColor="#777";console.log(h)};

{o=document.getElementById("touchRot180").style;
o.marginLeft="-36px";
o.marginTop="-80px";
o.maxWidth="70px";
o.paddingBottom="22px";
o.backgroundColor="red";console.log(o)};


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