When you modify a page with javascript the source doesn't change, so if
things are being loaded via ajax you won't see the source or URL change
necessarily, however you can examine the live node tree using firebug for
firefox or otherwise right click and inspect element to see the up to the
moment source for what you're looking at, as opposed to what
was originally downloaded.

What you'll probably have to do is put your script in a function and then
run it again when the page content changes.  You could add a listener for
nodeInserted and run your script every time things change although that
would probably run too much, or you could simply run it after some delay
after the user clicks a link, or some delay after you detect a whole bunch
of nodes being inserted.

On Fri, Feb 12, 2010 at 7:44 PM, Seven <[email protected]> wrote:

> I'm trying to use Greasemonkey on Second Life's new forums, and hit a
> snag.  If you look at this page:
>
> https://blogs.secondlife.com/community/forums/general?view=overview
>
> it's the first page of a list of topics.   My script works fine on
> that page, but when I go to the next page, it doesn't.
>
> So I took a look at the source of the two pages, to see whether
> something changed.
>
> I was surprised to discover that the source code for the second page
> (and all the subsequent pages) was the same as for page one.  If you
> look yourself, you'll see.
>
> I'm wondering whether this has something to do with the fact that the
> pages are JSPs.
>
> But I can't understand why I'm seeing one thing in the browser, and
> another when I do "View Source".
>
> Can anyone help?
>
> --
> 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]<greasemonkey-users%[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