Last active
January 8, 2023 10:10
-
-
Save JLCareglio/813dfb4d030db8ad02e71c0086b2d36a to your computer and use it in GitHub Desktop.
Script para esconder las barras y HUD de newworld-map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 👀 Ejemplo de que hace este script 🤯: | |
| https://drive.google.com/file/d/1tPW2HUgYu0mec17YJhq-NFIfdk73q2A8/view?usp=sharing | |
| 👋 Hola ¿usas https://www.newworld-map.com/ ? | |
| ¿Quieres GANAR espacio quitando sus barras, botones y banners? | |
| Entonces este es tu Script 😄, acá podrás: | |
| - Esconder: barras superiores y laterales, botones de redes, etiqueta de copyright y coordenadas (opcional). | |
| - Dejar: el mapa con sus iconos y marcas configurado y funcional. | |
| ========================= | |
| |-----Instrucciones-----| | |
| ========================= | |
| 1- Copia todo este código. | |
| 2- Abre https://www.newworld-map.com/ y configura los filtros como te gustarían que queden. | |
| 3- Abre el inspector de tu navegador pulsando CTRL+Shift+I o de esta otra forma: | |
| a- realiza un clic derecho en cualquier parte de la página | |
| b- se desplegará un menú, pulsa en Inspeccionar | |
| 4- Busca y presiona la pestaña que dice "Console". | |
| 5- Pega todo el texto que copiaste anteriormente y presiona Enter. | |
| 🎉 Listo! 🎉 ahora tienes una interfaz super limpia 👏 | |
| Nota: para revertir los cambios solo recarga la página o ejecuta en la consola EsconderMostrar(). | |
| ¿Como mostrar coordenadas? | |
| 1- Busca más abajo esta línea de código (renglón 50): | |
| document.querySelector("#position_cursor").style.display = "none" | |
| 2- ¿La encontraste? Bueno, ahora agrega 2 barras laterales (//) al comienzo del renglon | |
| 3- y por último repite los pasos de las instrucciones del 1 al 5. | |
| */ | |
| // Variables | |
| let barraSup_S = document.getElementsByTagName("header")[0].style | |
| let barraLat_S = document.getElementsByTagName("aside")[0].style | |
| let botonSocial1_S = document.querySelector("#main > div.v-application--wrap > main > div > button:nth-child(3)").style | |
| let botonSocial2_S = document.querySelector("#main > div.v-application--wrap > main > div > button.pa-0.v-btn.v-btn--absolute.v-btn--right.v-btn--text.theme--light.v-size--default").style | |
| let copyright_S = document.querySelector("#main_card").style | |
| let coordenadas_S = document.querySelector("#position_cursor").style | |
| function EsconderMostrar(){ | |
| // Esconder/Mostrar barar lateral y superior | |
| barraSup_S.display = barraSup_S.display == "none" ? "" : "none" | |
| barraLat_S.display = barraLat_S.display == "none" ? "" : "none" | |
| // Esconder/Mostrar botones de redes | |
| botonSocial1_S.display = botonSocial1_S.display == "none" ? "" : "none" | |
| botonSocial2_S.display = botonSocial2_S.display == "none" ? "" : "none" | |
| // Esconder/Mostrar Copyright, CookieSettings y Politicas de privacidad | |
| copyright_S.display = copyright_S.display == "none" ? "" : "none" | |
| // Esconder/Mostrar Coordenadas (agrega "//" al comienzo de la siguiente linea para mostrar) | |
| document.querySelector("#position_cursor").style.display = "none" | |
| } | |
| EsconderMostrar() | |
| /* | |
| |---❤️---| | |
| https://www.paypal.com/paypalme/my/profile | |
| https://platzi.com/r/JLCareglio/ | |
| https://steamcommunity.com/id/LautaReglio | |
| https://steamcommunity.com/tradeoffer/new/?partner=120203770&token=RRIULqVV | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment