button for me tetr.JS Enhanced

21-06-21

当前为 2021-06-24 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name button for me tetr.JS Enhanced
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.6
  5. // @author ore100
  6. // @description 21-06-21
  7. // @include */tetr.js*
  8. // @match http://farter*/t*
  9. // @match http*://*/tetr.js
  10. // @match https://doktorocelot.com/tetr.js/
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14.  
  15. (function() {
  16. window.addEventListener('load', function(){
  17. //time.style.position = "absolute";time.style.left="1.4in";time.style.bottom="3in";time.style.transform="scale(2,2)";a.style.bottom="-70px";b.style.bottom="-1in";c.style.bottom="-0.8in";
  18. //* color:The following *//
  19.  
  20.  
  21. document.getElementById("touchDrop").style.backgroundColor="blue";document.getElementById("touchRotRight").style.backgroundColor="blue";document.getElementById("touchRotLeft").style.backgroundColor="blue";document.getElementById("touchRight").style.backgroundColor="blue";document.getElementById("touchLeft").style.backgroundColor="blue";document.getElementById("touchDown").style.backgroundColor="#222";document.getElementById("touchHold").style.backgroundColor="#222";document.getElementById("touchRot180").style.backgroundColor="#222";
  22. //* x:position*//
  23. document.getElementById("touchDrop").style.marginLeft="119px";document.getElementById("touchRotRight").style.marginLeft="113px";document.getElementById("touchRotLeft").style.marginLeft="141px";document.getElementById("touchRight").style.marginLeft="-181px";document.getElementById("touchLeft").style.marginLeft="-65px";document.getElementById("touchDown").style.marginLeft="98px";document.getElementById("touchHold").style.marginLeft="-150px";document.getElementById("touchRot180").style.marginLeft="-60px";
  24. //* y:position*//
  25. document.getElementById("touchDrop").style.marginTop="49px";document.getElementById("touchRotRight").style.marginTop="50px";document.getElementById("touchRotLeft").style.marginTop="40px";document.getElementById("touchRight").style.marginTop="-20px";document.getElementById("touchLeft").style.marginTop="-19px";document.getElementById("touchDown").style.marginTop="-89px";document.getElementById("touchHold").style.marginTop="-100px";document.getElementById("touchRot180").style.marginTop="-100px";
  26. //* width *//
  27. document.getElementById("touchDrop").style.maxWidth="76px";document.getElementById("touchRotRight").style.maxWidth="68px";document.getElementById("touchRotLeft").style.maxWidth="68px";document.getElementById("touchRight").style.maxWidth="68px";document.getElementById("touchLeft").style.maxWidth="76px";
  28. //* length *//
  29. document.getElementById("touchDrop").style.paddingBottom="22px";document.getElementById("touchRotRight").style.paddingBottom="22px";document.getElementById("touchRotLeft").style.paddingBottom="22px";document.getElementById("touchRight").style.paddingBottom="22px";document.getElementById("touchLeft").style.paddingBottom="22px";
  30. });
  31. })();
  32. //width360 on pc chrome dev tool