button for me tetr.JS Enhanced

20-07-22

当前为 2020-08-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name button for me tetr.JS Enhanced
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.99
  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.  
  14. (function() {
  15. window.addEventListener('load', function(){
  16.  
  17. if(typeof trim != "function"){var trim=a=>{a=a.slice(0,-1);a=a.substr(a.indexOf("{")+1);return a}}
  18.  
  19. {p=document.getElementById("touchDrop").style;
  20. p.marginLeft="122px";
  21. p.marginTop="47px";
  22. p.maxWidth="70px";
  23. p.paddingBottom="22px";//⤓
  24. p.backgroundColor="#777";console.log(p)};
  25.  
  26.  
  27. {c=document.getElementById("touchRotRight").style;
  28. c.marginLeft="115px";
  29. c.marginTop="47px";
  30. c.maxWidth="69px";
  31. c.paddingBottom="22px";//↷
  32. c.backgroundColor="#777";console.log(c)};
  33.  
  34.  
  35. {w=document.getElementById("touchRotLeft").style;
  36. w.marginLeft="142px";
  37. w.marginTop="22px";
  38. w.maxWidth="69px";
  39. w.paddingBottom="22px";//↶
  40. w.backgroundColor="#777";console.log(w)};
  41.  
  42.  
  43. {r=document.getElementById("touchRight").style;
  44. r.marginLeft="-181px";
  45. r.marginTop="-20px";
  46. r.maxWidth="69px";
  47. r.paddingBottom="22px";//→
  48. r.backgroundColor="#777";console.log(r)};
  49.  
  50.  
  51. {l=document.getElementById("touchLeft").style;
  52. l.marginLeft="-59px";
  53. l.marginTop="-20px";
  54. l.maxWidth="70px";
  55. l.paddingBottom="22px";//←
  56. l.backgroundColor="#777";console.log(l)};
  57.  
  58.  
  59. {d=document.getElementById("touchDown").style;
  60. d.marginLeft="120px";
  61. d.marginTop="-111px";
  62. d.maxWidth="69px";
  63. d.paddingBottom="22px";//↓
  64. d.backgroundColor="#777";console.log(d)};
  65.  
  66. {h=document.getElementById("touchHold").style;
  67. h.marginLeft="-132px";
  68. h.marginTop="-118px";
  69. h.maxWidth="69px";
  70. h.paddingBottom="22px";//⇄
  71. h.backgroundColor="#777";console.log(h)};
  72.  
  73. {o=document.getElementById("touchRot180").style;
  74. o.marginLeft="-36px";
  75. o.marginTop="-80px";
  76. o.maxWidth="69px";
  77. o.paddingBottom="22px";//⟳
  78. o.backgroundColor="red";console.log(o)};
  79.  
  80. });
  81. })();
  82. //width360 on pc chrome dev tool