[Greasemonkey] My script kills firefox
Olafur Arason
olafra at gmail.com
Thu Mar 23 23:57:33 EST 2006
This simplyfies my code but it still kills firefox.
Maby the totem plugin can't handle being replaced with
an other, but it's funny that it doesn't happen everytime.
Olafur Arason
On 3/23/06, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 3/23/06, Olafur Arason <olafra at gmail.com> wrote:
> > My script:
> > http://hi.is/~olafura/fixveftivi.user.js
> > I don't know if it is the totem firefox plugin, firefox or
> > greasemonkey or just my stupid script.
> > It's meant to fix a faulty Icelandic webpage that has a questionable
> > object and embedded use, not that I'm a expert, but it shows up blank
> > and I can hear sound but no music. With this script I can watch shows
> > normally but it crashes firefox quite often.
>
> This may not be related, but consider:
> 1) changing the script so that it replaces the embed after the load event
> and:
> 2) uses the DOM's replace method instead of innerHTML.
>
> So, replace writit with something like:
> embed = ...
> embed.setAttribute('foo', 'bar');
> videoContent2 = document.getElementById('videoContent2');
> videoContent2.parentNode.replaceChild(embed, videoContent2);
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list