button for me tetr.js Enhanced

20-07-22

当前为 2020-07-23 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name button for me tetr.js Enhanced
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.5
  5. // @author ore100
  6. // @description 20-07-22
  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").style;
  19. p.marginLeft="136px";
  20. p.marginTop="47px";
  21. p.maxWidth="80px";
  22. p.paddingBottom="22px";
  23. p.backgroundColor="#777";console.log(p)};
  24.  
  25.  
  26. {l=document.getElementById("touchLeft").style;
  27. l.marginLeft="136px";
  28. l.marginTop="47px";
  29. l.maxWidth="80px";
  30. l.paddingBottom="22px";
  31. l.backgroundColor="#777";console.log(l)};
  32.  
  33.  
  34. {r=document.getElementById("touchRight").style;
  35. r.marginLeft="136px";
  36. r.marginTop="47px";
  37. r.maxWidth="80px";
  38. r.paddingBottom="22px";
  39. r.backgroundColor="#777";console.log(r)};
  40.  
  41.  
  42. {w=document.getElementById("touchRotLeft").style;
  43. w.marginLeft="122px";
  44. w.marginTop="22px";
  45. w.maxWidth="66px";
  46. w.paddingBottom="22px";
  47. w.backgroundColor="#777";console.log(w)};
  48.  
  49.  
  50. {c=document.getElementById("touchRotRight").style;
  51. c.marginLeft="92px";
  52. c.marginTop="47px";
  53. c.maxWidth="66px";
  54. c.paddingBottom="22px";
  55. c.backgroundColor="red";console.log(c)};
  56.  
  57.  
  58. {d=document.getElementById("touchDown").style;
  59. d.marginLeft="-122px";
  60. d.marginTop="-111px";
  61. d.maxWidth="90px";
  62. d.paddingBottom="22px";
  63. d.backgroundColor="red";console.log(d)};
  64.  
  65.  
  66. {h=document.getElementById("touchHold").style;
  67. h.marginLeft="-170px";
  68. h.marginTop="-122px";
  69. h.maxWidth="90px";
  70. h.paddingBottom="22px";
  71. h.backgroundColor="red";console.log(h)};
  72.  
  73.  
  74. {o=document.getElementById("touchRot180").style;
  75. o.marginLeft="-70px";
  76. o.marginTop="-88px";
  77. o.maxWidth="90px";
  78. o.paddingBottom="22px";
  79. o.backgroundColor="red";console.log(o)};
  80.  
  81.  
  82. });
  83. })();
  84. //width360 on browser dev tool