Random Avatar Changer by YoutubeDrawaria!

Change your avatar to a random player's avatar and download your current avatar.

作者
YouTubeDrawaria
日安装量
0
总安装量
136
评分
0 0 0
版本
1.0
创建于
2024-05-30
更新于
2024-05-30
大小
10.8 KB
许可证
MIT
适用于

🚀 Random Avatar Changer by YoutubeDrawaria!

🎯 What does this script do? / ¿Qué hace este script?

English: This script adds utility buttons to the Drawaria profile interface, allowing users to easily change their displayed avatar to a random one from a predefined list, download their current avatar, and open it in a new tab. It aims to provide quick access to avatar management features and personalization options for users on the Drawaria platform. The script also includes basic language translation for the button texts.

Español: Este script añade botones de utilidad a la interfaz de perfil de Drawaria, permitiendo a los usuarios cambiar fácilmente su avatar mostrado a uno aleatorio de una lista predefinida, descargar su avatar actual y abrirlo en una nueva pestaña. Su objetivo es proporcionar acceso rápido a funciones de gestión de avatares y opciones de personalización para los usuarios en la plataforma Drawaria. El script también incluye traducción básica para los textos de los botones.

✨ Features / Características

Avatar Management Utilities
  • 🔧 Random Avatar Changer - Allows users to cycle through a list of predefined avatar URLs.
  • ⚡ Download Current Avatar - Provides a button to download the currently displayed avatar image.
  • 🎨 Open Avatar in New Tab - Enables viewing the current avatar in a separate browser tab.
  • 🚀 UI Integration - Adds buttons near the language selector on the Drawaria profile page.
  • 💡 Language Translation - Translates button texts for "Avatar Randomizer," "Download Avatar," and "Open in New Tab" based on the game's language setting.
  • 🔒 Predefined Avatar List - Utilizes a hardcoded list of avatar URLs for random selection.

Español:

  • 🔧 Cambiador de Avatar Aleatorio - Permite a los usuarios navegar por una lista de URLs de avatar predefinidas.
  • ⚡ Descargar Avatar Actual - Proporciona un botón para descargar la imagen del avatar que se muestra actualmente.
  • 🎨 Abrir Avatar en Nueva Pestaña - Permite ver el avatar actual en una pestaña separada del navegador.
  • 🚀 Integración de UI - Añade botones cerca del selector de idioma en la página de perfil de Drawaria.
  • 💡 Traducción de Idiomas - Traduce los textos de los botones para "Avatar Randomizer", "Download Avatar" y "Open in New Tab" según la configuración de idioma del juego.
  • 🔒 Lista de Avatares Predefinida - Utiliza una lista codificada de URLs de avatar para la selección aleatoria.

📥 Installation / Instalación

🇺🇸 English Instructions 🇪🇸 Instrucciones en Español
  1. Install the Tampermonkey extension (or a similar userscript manager) in your browser.
  2. Create a new userscript and paste the provided code into the editor.
  3. Save the script.
  4. Navigate to the Drawaria website, preferably to a profile page or the main page where avatars are displayed.
  5. You should see new buttons ("Avatar Randomizer", "Download Avatar", "Open in New Tab") near the language selector.
  1. Instala la extensión Tampermonkey (o un gestor de userscripts similar) en tu navegador.
  2. Crea un nuevo userscript y pega el código proporcionado en el editor.
  3. Guarda el script.
  4. Navega al sitio web de Drawaria, preferiblemente a una página de perfil o a la página principal donde se muestren los avatares.
  5. Deberías ver nuevos botones ("Avatar Randomizer", "Download Avatar", "Open in New Tab") cerca del selector de idioma.

🎮 How to Use / Cómo Usar

  • 🔵 Step 1: Go to the Drawaria website, preferably where your avatar is visible.
    Paso 1: Ve al sitio web de Drawaria, preferiblemente donde tu avatar sea visible.
  • 🟢 Step 2: Click the "Avatar Randomizer" button to change your avatar to a random one from the list.
    Paso 2: Haz clic en el botón "Avatar Randomizer" para cambiar tu avatar a uno aleatorio de la lista.
  • 🟣 Step 3: Click "Download Avatar" to save the currently displayed avatar image to your device.
    Paso 3: Haz clic en "Download Avatar" para guardar la imagen del avatar que se muestra actualmente en tu dispositivo.
  • 🟠 Step 4: Click "Open in New Tab" to view your current avatar in a new browser window.
    Paso 4: Haz clic en "Open in New Tab" para ver tu avatar actual en una nueva ventana del navegador.

🛠️ Technical Details / Detalles Técnicos

Feature / Característica Details / Detalles
DOM Manipulation Adds buttons and manipulates existing elements on the Drawaria page using JavaScript.
Random Selection Selects a random avatar URL from a predefined array using `Math.random()`.
File Download Creates a temporary anchor element (``) to trigger file downloads.
Localization Translates button texts based on the language selected in the game's UI (`#langselector`).

⚠️ Important Warnings / Advertencias Importantes

  • 🚨 The random avatar selection relies on a hardcoded list of URLs. If these URLs change or are removed by Drawaria, the randomizer may not function correctly.
  • 🚨 Adding custom avatar URLs to the list requires editing the script directly.
  • 🚨 The "Download Avatar" and "Open in New Tab" features work with the currently displayed avatar. They do not affect the avatar saved on Drawaria's servers.
  • 🚨 Ensure Drawaria's website structure remains consistent, as updates might break button placement or functionality.

Español:

  • 🚨 La selección aleatoria de avatares depende de una lista codificada de URLs. Si estas URLs cambian o son eliminadas por Drawaria, el aleatorizador podría no funcionar correctamente.
  • 🚨 Agregar URLs de avatares personalizados a la lista requiere editar el script directamente.
  • 🚨 Las funciones "Download Avatar" y "Open in New Tab" funcionan con el avatar que se muestra actualmente. No afectan al avatar guardado en los servidores de Drawaria.
  • 🚨 Asegúrate de que la estructura del sitio web de Drawaria permanezca consistente, ya que las actualizaciones podrían afectar la ubicación o funcionalidad de los botones.

🔧 Troubleshooting / Solución de Problemas

✅ The buttons appear correctly, and clicking them performs the intended action (changing avatar, downloading, opening).
✅ Los botones aparecen correctamente y al hacer clic en ellos se realiza la acción deseada (cambiar avatar, descargar, abrir).
⚠️ If the buttons are missing or don't work, ensure Tampermonkey is enabled and the script is correctly installed. Check the browser console for errors.
⚠️ Si los botones faltan o no funcionan, asegúrate de que Tampermonkey esté habilitado y el script esté instalado correctamente. Revisa la consola del navegador en busca de errores.
❌ If the random avatar selection doesn't work, the list of avatar URLs might be outdated or the avatar display element might have changed.
❌ Si la selección aleatoria de avatares no funciona, la lista de URLs de avatares podría estar desactualizada o el elemento de visualización del avatar podría haber cambiado.

📊 Compatibility / Compatibilidad

✅ Compatible Browsers / Navegadores Compatibles ✅ Required Extensions / Extensiones Requeridas
Chrome, Firefox, Edge, Opera
(Browsers supporting userscripts and basic DOM manipulation)
Tampermonkey or similar userscript manager
(Required for script execution)

🔄 How to Disable / Cómo Desactivar

Method 1 - Script Manager:

Open your userscript manager (e.g., Tampermonkey), find "Random Avatar Changer by YoutubeDrawaria!", and disable or delete it.

Método 1 - Gestor de Scripts: Abre tu gestor de userscripts (ej. Tampermonkey), busca "Random Avatar Changer by YoutubeDrawaria!" y desactívalo o elimínalo.

Method 2 - Remove Script Code:

You can edit the script and comment out or remove the code that creates and adds the buttons to the page.

Método 2 - Eliminar Código del Script: Puedes editar el script y comentar o eliminar el código que crea y añade los botones a la página.

💡 Pro Tips / Consejos Profesionales

  • Update Avatar List: Add more avatar URLs to the `avatarUrls` array to expand the selection of random avatars.
  • Custom Avatar Download Naming: Modify the `download` attribute in `downloadCurrentAvatar` to customize the downloaded filename.
  • Add Image Preview: Implement a visual preview of the selected avatar before it's applied, perhaps in a small modal or next to the buttons.
  • Integrate with Avatar Upload: For a more seamless experience, consider integrating the upload functionality with the randomizer, allowing random avatars to be uploaded directly.
  • Profile Specificity: Ensure the script targets the correct avatar element (`#selfavatarimage`) on the profile page to avoid conflicts.

Español:

  • Actualiza Lista de Avatares: Agrega más URLs de avatar al array `avatarUrls` para expandir la selección de avatares aleatorios.
  • Nombres Personalizados para Descarga de Avatar: Modifica el atributo `download` en `downloadCurrentAvatar` para personalizar el nombre del archivo descargado.
  • Añade Vista Previa de Imagen: Implementa una vista previa visual del avatar seleccionado antes de que se aplique, quizás en una pequeña ventana modal o junto a los botones.
  • Integra con Carga de Avatar: Para una experiencia más fluida, considera integrar la funcionalidad de carga con el aleatorizador, permitiendo que los avatares aleatorios se suban directamente.
  • Especificidad del Perfil: Asegúrate de que el script apunte al elemento de avatar correcto (`#selfavatarimage`) en la página de perfil para evitar conflictos.

🎉 Ready to Use! / ¡Listo para Usar!

Easily manage your avatar with random changes, downloads, and previews!

¡Gestiona fácilmente tu avatar con cambios aleatorios, descargas y vistas previas!

🎨 🚀 ✨ 💫 🌟

Author: YouTubeDrawaria | Version: 1.0 | License: MIT
Support: Report issues in the comments below | Additional Info: Provides convenient avatar management tools directly on the Drawaria profile.