Skip to content
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

Enable on temporal audio instances #21

Open
knoajp opened this issue Dec 21, 2022 · 0 comments
Open

Enable on temporal audio instances #21

knoajp opened this issue Dec 21, 2022 · 0 comments

Comments

@knoajp
Copy link

knoajp commented Dec 21, 2022

Some websites don't create media(video/audio) elements on their HTML tree. They create temporal audio elements on click events.
https://soundcloud.com/
https://www.myinstants.com/

Does this code help?
(It works on both sites above)

Audio.prototype.originalPlay = Audio.prototype.play;
Audio.prototype.play = function(){
  this.volume = 0.1;
  this.originalPlay.apply(this, arguments);
}

But I couldn't figure out how to change the volume on this site:
https://poki.jp/g/drive-mad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant