[Greasemonkey] getting all of web page into a string

Anthony Lieuallen arantius at gmail.com
Mon May 1 15:58:40 EDT 2006


On 5/1/2006 2:53 PM, Al wrote:
> Can you use GM javascript to pull the entire contents of a web page, 
> on which the script is running, into a string?

 From your description, document.body.innerHTML or 
document.body.textContent should probably do you.  Same thing with 
reference to head, if you want that part of the page too.


More information about the Greasemonkey mailing list