1.0 KiB
1.0 KiB
Bluemap Simple Hidder
JavaScript snippet to hide and show the player-icon container in BlueMap's web viewer. On load it hides the container and exposes global helpers to toggle visibility.
How it works
- Uses the CSS selector
#map-container > div > div:nth-child(2)to find the container that renders player icons. - Hides the container as soon as the script runs.
- Exposes two global functions:
close_sesameto hide andopen_sesameto show the icon container.
Quick start
- Open your BlueMap web instance.
- Inject
PlayerHidder.jsinto the page (for example, as an extra script in BlueMap's web folder or by pasting the code into the browser console with the map open). - Player markers will hide automatically. Run
close_sesame()oropen_sesame()in the console to toggle visibility.
Customizing
- If your DOM differs, adjust the
selectorvalue inPlayerHidder.jsto target the correct container.
License
- This project is licensed under the GNU General Public License v3.0. See
LICENSEfor details.