Se ha creado el script

This commit is contained in:
Dario Sevilla Muñoz 2025-05-27 23:12:40 +02:00
commit 2a854d7699
2 changed files with 24 additions and 0 deletions

0
.gitignore vendored Normal file
View File

24
PlayerHidder.js Normal file
View File

@ -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;
})();