How to access ajax feeds?

91 views
Skip to first unread message

Enkidu

unread,
Jun 20, 2011, 5:28:45 PM6/20/11
to greasemonkey-users
Hi,

I am quite new to geasemonkey. I found http://wiki.greasespot.net/Waiting_With_Polling
that could solve my problem: I want to access all feeds of a page to
that I can modify the output.The page consists of a some static
content and I easily can access all elements. E.g. var links =
document.getElementsByTagName("a");

But I do not understand how to access the feeds fetched/refreshed by
ajax calls.

Maybe someone can give me an example how to use
http://wiki.greasespot.net/Waiting_With_Polling or how to get all ajax-
feeds from a page?

Javascript itself is not a problem for me. But I never used ajax...


Tnx in advance,
Enkidu

Anthony Lieuallen

unread,
Jun 23, 2011, 9:14:38 AM6/23/11
to greasemon...@googlegroups.com
On 06/20/11 17:28, Enkidu wrote:
> But I do not understand how to access the feeds fetched/refreshed by
> ajax calls.

If what you want is to monitor when the page changes because its script
has done something, you're looking for DOM mutation events.

https://developer.mozilla.org/en/XUL/Events#Mutation_DOM_events

Probably node inserted. I do this for e.g. my linkify script.

http://arantius.com/misc/greasemonkey/linkify-plus.user.js#

Reply all
Reply to author
Forward
0 new messages