-- NO ROOT --
This script will detect if you have a wired headset connected when you open youtube. If yes, it will automatically mute the video whhen the headset is unplugged (in some devices it will also pause!). When the headset is plugged again, the volume will turn back to 75 or any other volume you have specified manually through the "volume" var.
It will also, when you open youtube, turn the volume to your desired volume (variable "volume" again) if it is very low (0-10)
This is my first posted script, please rate :)
Made by Tomaz
Rate and review within the app in the Community section.