button for me tetr.js Enhanced

20-02-20

当前为 2020-02-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name button for me tetr.js Enhanced
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.4
  5. // @author ore100
  6. // @description 20-02-20
  7. // @match http://farter*/t*
  8. // @match http*://*/tetr.js*
  9. // @match https://doktorocelot.com/tetr.js/
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. window.addEventListener('load', function(){
  15.  
  16. if(typeof trim != "function"){var trim=a=>{a=a.slice(0,-1);a=a.substr(a.indexOf("{")+1);return a}}
  17.  
  18. {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)};
  19. {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)};
  20.  
  21.  
  22. {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);}
  23. {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)};
  24. {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)};
  25.  
  26.  
  27. {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)};
  28. {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)};
  29. {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)};
  30.  
  31.  
  32.  
  33.  
  34.  
  35. });
  36. })();
  37. //width360 on browser dev tool