Playing Field Grid Script

customize playing field grid

  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. (function() {
  16. window.addEventListener('load', function(){
  17.  
  18. bgLayer.style.display="none";
  19. var newItem = document.createElement("table");
  20. newItem.style.width = bgLayer.width-8 + "px";
  21. newItem.style.height = bgLayer.height + "px";
  22. newItem.innerHTML = ("<tr>"+"<td style='border:2px solid white;'></td>".repeat(10)+"</tr>").repeat(20)
  23. stage.insertBefore(newItem, stage.childNodes[0]);
  24.  
  25. });
  26. })();