Is there a way to modify the Audio object in order to add a stop function? The usual method is as follows:
Audio.prototype.stop = function() {
this.pause();
this.currentTime = 0;
}
However, when trying to implement this within a Chrome Extension content script, the change does not carry over to the other context due to their separation.
I have experimented with using this unsafeWindow
workaround to break out of the isolated environment without success. I also attempted to utilize Object.create and set the constructor
property with no luck.