button for me tetr.JS Enhanced

21-06-21

当前为 2023-01-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name button for me tetr.JS Enhanced
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.7
  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. (function() {
  15. window.addEventListener('load', function(){
  16.  
  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. let button1 = [touchDrop, touchLeft, touchRight, touchDown, touchRotLeft, touchRotRight, touchHold, touchRot180];
  20.  
  21. button1.forEach(function(button2) {
  22. button2.style.backgroundColor="#87cefa";
  23. button2.style.opacity="0.3";
  24. button2.style.border="3px solid #fff";
  25. console.log(button2);
  26. });
  27. //* x:position*//
  28. 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";
  29. //* y:position*//
  30. 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";
  31. //* width *//
  32. 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";
  33. //* length *//
  34. 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";
  35.  
  36. });
  37. })();
  38. //width360 on pc chrome dev tool