[Greasemonkey] Greasemonkey and GMail

Mark Pilgrim pilgrim at gmail.com
Thu Aug 18 16:00:30 EDT 2005


On 8/18/05, dmccunney <dennis.mccunney at gmail.com> wrote:
> I don't offhand
> see a way the remote server would know it was being altered after
> receipt but before display.

I must not be making myself clear.

http://diveintogreasemonkey.org/experiments/detect-page-modification.html

Run it with Greasemonkey disabled or uninstalled, and it will display
"No modifications detected."  Run it with Greasemonkey enabled and a
linkify script installed (thus changing the unlinked hyperlink), and
it will display "Modification detected!" and display the initial and
final CRCs.

The page script can then use XMLHttpRequest or any number of other
methods (insert an <img> with special query parameters, load a URL in
a hidden <iframe>, etc.) to report this modification to the server.

-- 
Cheers,
-Mark


More information about the Greasemonkey mailing list