[Greasemonkey] insert comment top html document

Jim Roberts jimmyroberts at gmail.com
Fri Feb 10 04:56:51 EST 2006


On 2/10/06, Jim Roberts <jimmyroberts at gmail.com> wrote:

>
> var
> html = document.getElementsByTagName('html')[0],
> comment = document.createComment(' source = '+ location.href + ' ');
>
> html.parentNode.insertBefore(comment, html);
>

I think I spoke too soon. That only seems to work when I save as "Web
Page, complete".


More information about the Greasemonkey mailing list