[Greasemonkey] How can I play a local soundfile?

vaesel at poczta.onet.pl vaesel at poczta.onet.pl
Sun Mar 5 18:56:35 EST 2006


> In a Webpage I have to define a embed tag with "name...=" and "src=..." 
> and access it with document.embeds["name"].play(). But how I can play 
> with greasemonkey a local sound file?
> 
> I have only found a way to play sound files from http, with inject the 
> embed object in the body of the loaded page. But with local files I have 
> a Security error...

try to put your sound files in instalation folder (C:\Program 
Files\Mozilla Firefox\res\ if your platform is windows) and address it 
as resource - resource://


More information about the Greasemonkey mailing list