Guest User

Untitled

a guest
Dec 2nd, 2025
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. new MutationObserver(() => currentChallenge?.grid?.forEach((r, i) => r.forEach((c, j) => {
  2. if (c.isMine) document.querySelectorAll('#game-grid .cell')[i * currentChallenge.gridSize + j].style.boxShadow = 'inset 0 0 0 3px red'
  3. }))).observe(document.querySelector('#game-grid'), {
  4. childList: true,
  5. subtree: true
  6. }) || currentChallenge.grid.forEach((r, i) => r.forEach((c, j) => {
  7. if (c.isMine) document.querySelectorAll('#game-grid .cell')[i * currentChallenge.gridSize + j].style.boxShadow = 'inset 0 0 0 3px red'
  8. }))
Advertisement
Add Comment
Please, Sign In to add comment