Thanks for this two useful answers :) .

2012/6/5 Sam Larison <[email protected]>

> In looking again it seems like your script is probably running too early,
> you can listen for subtree modified events or *nodeinserted events* and
> try running then, or put your script inside a timeout until it exists,
> depending on what else you have to do.
>
>
It worked :) . Thank you very very much !

Nils


> On Tue, Jun 5, 2012 at 2:19 PM, Sam Larison <[email protected]> wrote:
>
>> My guess is that it's an xpath related problem, you should be able to
>> getElementById() and change it's src no matter when that image is loaded,
>> there could be a problem in your xpath expression unless the wrong tree is
>> being searched.  Start with a simpler page that already has the image
>> loaded and see if you can get it working there.  When you modify with
>> firebug try pasting in your script to the multi-line editor and see if your
>> functions are working as they are.  If they are working except in GM, then
>> perhaps try getting the element using a another method, and what version of
>> FF are you using?  Let us know the results.
>>
>>
>> On Tue, Jun 5, 2012 at 11:09 AM, NLR <[email protected]> wrote:
>>
>>> Hi there,
>>> I would like to replace the "src" attribute of an <img> tag contained
>>> in a webpage, but the original page is loaded by a weird javascript
>>> function : http://snipurl.com/23te563 .
>>>
>>> So when the website is debugged in Firebug, we can see each tag but
>>> greasemonkey can't see them.
>>>
>>> You can find my current (not working) GM script on this page :
>>> http://snipurl.com/23te67l .
>>> The debugged HTML page (that I can modify with firebug but not with
>>> GM) : http://snipurl.com/23te9t2 .
>>>
>>> Any idea ?
>>> Thank you !
>>> NLR
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "greasemonkey-users" group.
>>> To post to this group, send email to [email protected]
>>> .
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/greasemonkey-users?hl=en.
>>>
>>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to