Add Volume Control Slider

6/10/2024

ئاپتورى
LovingObserver
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
10
باھا نومۇرى
0 0 0
نەشرى
1.0
قۇرۇلغان ۋاقتى
2024-06-13
يېڭىلانغان ۋاقتى
2024-06-13
ئىجازەتنامىسى
GNU GPLv3
قوللايدىغىنى

Description

When on the watch page for a gif, it adds a functional volume control slider to the upper-right corner of the main gif. It is not designed to work on the infinite-scroll pages.

The script will only load if the link initially matches "https://www.redgifs.com/watch/*", otherwise you will have to reload the page. This is so it's not always running to save performance. This works best for me because I just open the gifs in new tabs, where it will always initially match.

The value from the volume slider is stored in RedGif's localStorage for data persistence, so it will hold the volume across page refreshes and over different pages.

Feel free to yoink my code, adapt it how you want to, and then upload it here or anywhere else.