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.9
  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="122px";
  20. p.marginTop="47px";
  21. p.maxWidth="70px";
  22. p.paddingBottom="22px";
  23. p.backgroundColor="#777";console.log(p)};
  24.  
  25.  
  26. {c=document.getElementById("touchRotRight").style;
  27. c.marginLeft="115px";
  28. c.marginTop="47px";
  29. c.maxWidth="69px";
  30. c.paddingBottom="22px";
  31. c.backgroundColor="#777";console.log(c)};
  32.  
  33.  
  34. {w=document.getElementById("touchRotLeft").style;
  35. w.marginLeft="142px";
  36. w.marginTop="22px";
  37. w.maxWidth="69px";
  38. w.paddingBottom="22px";
  39. w.backgroundColor="#777";console.log(w)};
  40.  
  41.  
  42. {r=document.getElementById("touchRight").style;
  43. r.marginLeft="-181px";
  44. r.marginTop="-20px";
  45. r.maxWidth="69px";
  46. r.paddingBottom="22px";
  47. r.backgroundColor="#777";console.log(r)};
  48.  
  49.  
  50. {l=document.getElementById("touchLeft").style;
  51. l.marginLeft="-59px";
  52. l.marginTop="-20px";
  53. l.maxWidth="70px";
  54. l.paddingBottom="22px";
  55. l.backgroundColor="#777";console.log(l)};
  56.  
  57.  
  58. {d=document.getElementById("touchDown").style;
  59. d.marginLeft="120px";
  60. d.marginTop="-111px";
  61. d.maxWidth="69px";
  62. d.paddingBottom="22px";
  63. d.backgroundColor="#777";console.log(d)};
  64.  
  65. {h=document.getElementById("touchHold").style;
  66. h.marginLeft="-132px";
  67. h.marginTop="-118px";
  68. h.maxWidth="69px";
  69. h.paddingBottom="22px";
  70. h.backgroundColor="#777";console.log(h)};
  71.  
  72. {o=document.getElementById("touchRot180").style;
  73. o.marginLeft="-36px";
  74. o.marginTop="-80px";
  75. o.maxWidth="69px";
  76. o.paddingBottom="22px";
  77. o.backgroundColor="red";console.log(o)};
  78.  
  79. });
  80. })();
  81. //width360 on pc chrome dev tool