返回首頁 

Greasy Fork is available in English.

drawaria custom-range mod

drawaria custom-range mod!


Installer ce script?
Auteur
YouTubeDrawaria
Installations quotidiennes
0
Installations (total)
11
Notes
000
Version
1.0
Créé
26/12/2024
Mis à jour
26/12/2024
Taille
2,12 ko
Licence
MIT
S'applique à

Craziest Mod I made Lol !!

The script is designed to modify the range slider control in the Drawaria online game to ensure that its `min`, `max`, and `value` attributes are always set to -1999. This is achieved by:

1. **Setting Initial Values**: Immediately setting the slider's attributes to -1999 when the page loads.
2. **Monitoring DOM Changes**: Using a `MutationObserver` to watch for any changes in the DOM and ensure the values remain at -1999.
3. **Overriding `setAttribute`**: Overriding the `setAttribute` method to force any attempts to change the slider's attributes to -1999.

This ensures that the slider control always maintains its values at -1999, regardless of any game mechanics that might try to alter them.