Recent posts by zatic

Subscribe to Recent posts by zatic 3 posts found

Apr 23, 2008
zatic 3 posts

Topic: Script development / Access elements that have been removed by site's script

Hi guys,

I have the following problem with my script Dilbert.com No Flash :

On dilbert.com, in the original, unaltered HTML as it is transfered there is an image (HTML IMG element) that shows the dilbert comic strip. Immediately after the image there is embedded Javascript code that replaces this image with a Adobe Flash clip that contains the image.

I understand that from the context of a userscript, I can't prevent the site's javascript from running. But is there any other way to access the original IMG element after it has been replaced with the Flash clip? Or is this lost forever after the site's script replaces it?
I just want to access the URI of the IMG element to show the plain image, not embedded in Flash.

Any ideas?

Cheers,
Manuel

 
Jul 7, 2007
zatic 3 posts

Topic: Script development / GM Script + Media player plugin crashes FF

Yes, it works with my script disabled or without the VLC player plugin . Only the combination of both crashes Firefox. And it used to work until Apple changed the layout of their pages (note however that my script still worked, so they didn't change substantial parts 'on the surface'.

My guess is that the crash is caused by the VLC plugin. I don't think that GM and GM scripts are heavy enough to crash the whole browser like that. But that crash must somehow be triggered by my script, maybe because Apple stops serving the trailer video if another request comes in, like you said.

My problem is that guessing is all I can do right now.

Can someone recommend tools to monitor the (low-level) traffic between firefox and a website? Maybe that gets me further.

 
Jul 7, 2007
zatic 3 posts

Topic: Script development / GM Script + Media player plugin crashes FF

Hi community,

I'm having trouble with on of my scripts, Apple Trailer Download: http://userscripts.org/scripts/show/2484

Apple changed their website recently, and since then Firefox crashes when my script is enabled and VLC media player plugin is used.

It seems to go on like this: My script executes, and regardless what action the user takes next (Back button, click on a link, close tab...) Firefox crashes instantly. Without the media player plugin, everything works fine.

Does anyone have a hint how to approach the problem? My usual development or debugging techniques (Error console, DOM inspector etc) can't be used obviously.

Cheers,
Manuel