button for me tetr.js Enhanced

20-07-22

Version vom 23.07.2020. Aktuellste Version

// ==UserScript==
// @name         button for me tetr.js Enhanced
// @namespace    http://tampermonkey.net/
// @version      1.6
// @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="130px";
p.marginTop="47px";
p.maxWidth="63px";
p.paddingBottom="22px";
p.backgroundColor="#777";console.log(p)};


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

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


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

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


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

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

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


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