Greasy Fork 支持简体中文。

Playing Field Grid Script

customize playing field grid

目前為 2019-06-11 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Playing Field Grid Script
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description customize playing field grid
  6. // @author Oki
  7. // @match https://*.jstris.jezevec10.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. /**************************
  12. Playing Field Grid Script
  13. **************************/
  14.  
  15. bgLayer.style.display="none";
  16. var newItem = document.createElement("table");
  17. newItem.style.width = bgLayer.width-8 + "px";
  18. newItem.style.height = bgLayer.height + "px";
  19. newItem.innerHTML = ("<tr>"+"<td style='border:2px solid white;'></td>".repeat(10)+"</tr>").repeat(20)
  20. stage.insertBefore(newItem, stage.childNodes[0]);