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.0
// @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="100px";p.style.marginTop="52px";p.style.paddingBottom="22px";p.style.maxWidth="80px";p.style.backgroundColor="red";console.log(p)};
{l=document.getElementById("touchLeft");l.style.marginLeft="-80px";l.style.marginTop="-15px";l.style.paddingBottom="22px";l.style.maxWidth="80px";l.style.backgroundColor="red";console.log(l)};


{r=document.getElementById("touchRight");r.style.marginLeft="00px";r.style.marginTop="00px";r.style.paddingBottom="22px";r.style.backgroundColor="red";console.log(r);}
//{r=document.getElementById("touchRight");r.style.marginLeft="0px";r.style.marginTop="00px";r.style.paddingBottom="22px";r.style.maxWidth="66px";r.style.backgroundColor="red";console.log(r);}
//{w=document.getElementById("touchRotLeft");w.style.marginLeft="0px";w.style.marginTop="0px";w.style.paddingBottom="22px";w.style.maxWidth="65px";w.style.backgroundColor="red";console.log(w)};
//{w=document.getElementById("touchRotLeft");w.style.marginLeft="0px";w.style.marginTop="0px";w.style.paddingBottom="22px";w.style.backgroundColor="red";console.log(w)};


{c=document.getElementById("touchRotRight");c.style.marginLeft="100px";c.style.marginTop="0px";c.style.paddingBottom="22px";c.style.maxWidth="66px";c.style.backgroundColor="red";console.log(c)};
{d=document.getElementById("touchDown");d.style.marginLeft="100px";d.style.marginTop="-122px";d.style.paddingBottom="22px";d.style.maxWidth="90px";d.style.backgroundColor="red";console.log(d)};
{h=document.getElementById("touchHold");h.style.marginLeft="-122px";h.style.marginTop="-222px";h.style.paddingBottom="22px";h.style.maxWidth="90px";h.style.backgroundColor="red";console.log(h)};
{o=document.getElementById("touchRot180");o.style.marginLeft="0px";o.style.marginTop="-300px";o.style.paddingBottom="22px";o.style.maxWidth="90px";o.style.backgroundColor="red";console.log(o)};


    });
})();