commit 2a854d7699794f17ec6403a8209ea457111d6aa6 Author: dasemu Date: Tue May 27 23:12:40 2025 +0200 Se ha creado el script diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/PlayerHidder.js b/PlayerHidder.js new file mode 100644 index 0000000..5936b5a --- /dev/null +++ b/PlayerHidder.js @@ -0,0 +1,24 @@ +(function() { + const selector = '#map-container > div > div:nth-child(1)'; + let targetDiv = null; + + function hideDiv() { + targetDiv = document.querySelector(selector); + if (targetDiv) { + targetDiv.style.display = 'none'; + } + } + + function showDiv() { + if (targetDiv) { + targetDiv.style.display = ''; + } + } + + + hideDiv(); + + + window['abrete-sesamo'] = showDiv; + window['cierrate-sesamo'] = hideDiv; +})(); \ No newline at end of file