20-07-22
当前为
// ==UserScript==
// @name button for me tetr.JS Enhanced
// @namespace http://tampermonkey.net/
// @version 2.0
// @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="119px";
p.marginTop="48px";
p.maxWidth="76px";
p.paddingBottom="22px";
p.backgroundColor="#777";console.log(p)};//⤓
{c=document.getElementById("touchRotRight").style;
c.marginLeft="209px";
c.marginTop="192px";
c.maxWidth="68px";
c.paddingBottom="22px";
c.backgroundColor="#777";console.log(c)};//↷
{w=document.getElementById("touchRotLeft").style;
w.marginLeft="141px";
w.marginTop="256px";
w.maxWidth="68px";
w.paddingBottom="22px";
w.backgroundColor="#777";console.log(w)};//↶
{r=document.getElementById("touchRight").style;
r.marginLeft="-181px";
r.marginTop="-20px";
r.maxWidth="68px";
r.paddingBottom="22px";
r.backgroundColor="#777";console.log(r)};//→
{l=document.getElementById("touchLeft").style;
l.marginLeft="-65px";
l.marginTop="-19px";
l.maxWidth="76px";
l.paddingBottom="22px";
l.backgroundColor="#777";console.log(l)};//←
{d=document.getElementById("touchDown").style;
d.marginLeft="108px";
d.marginTop="-98px";
d.maxWidth="80px";
d.paddingBottom="1px";
d.backgroundColor="#777";console.log(d)};//↓
{h=document.getElementById("touchHold").style;
h.marginLeft="0px";
h.marginTop="69px";
h.maxWidth="80px";
h.paddingBottom="1px";
h.backgroundColor="#777";console.log(h)};//⇄
{o=document.getElementById("touchRot180").style;
o.marginLeft="0px";
o.marginTop="242px";
o.maxWidth="80px";
o.paddingBottom="1px";
o.backgroundColor="red";console.log(o)};//⟳
});
})();
//width360 on pc chrome dev tool