-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling Unmuted Autoplay on Specific Websites In Firefox #456
Comments
This javascript should work for most websites. You can add a URL rule that loads it on relevant sites. Let me know if there's any problems setting it up.
window.addEventListener('volumechange', e => {
e.target.muted = false
e.defaultMuted = false
}, true)
setTimeout(() => {
document.querySelectorAll('video').forEach(v => {
v.muted = false
v.defaultMuted = false
})
}, 1000) |
Thank you for reaching out this quickly but sadly this doesn't work. |
Maybe this. window.addEventListener('playing', e => {
e.target.muted = false
e.defaultMuted = false
}, true)
setTimeout(() => {
document.querySelectorAll('video').forEach(v => {
v.muted = false
v.defaultMuted = false
})
}, 1000) |
Awesome, this works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Firefox, certain sites like aniwave.to automatically mute the audio when videos autoplay. It would be great if Global Speed could include an option to consistently unmute videos on specific websites when the extension is enabled.
Now, i can get around this by toggling mute with a shortcut but its a little tedious to do it everytime i visit a new page. Is there a way to force the video to unmute every time the page loads when the extension is turned on? Or, could there be a sound preset for unmute, similar to the speed presets? which acts globally instead of having to unmute each site individually.
The current issue in Firefox is that when the page is reloaded, the browser tends to mute the video, forgetting the user's previous unmute action. This behavior is not observed in Chrome where it seems to remember even if i reload the page with or without the extension.
The text was updated successfully, but these errors were encountered: