[Greasemonkey] Challenge: improving "inline mp3 player" script with data: url or literal strings

Julien Couvreur julien.couvreur at gmail.com
Fri Apr 22 16:41:58 EDT 2005


On 4/22/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> ... for amusement
> value, here's Simon's self-contained data URI kitchen:
> http://simon.incutio.com/archive/2003/08/11/selfContained

One thing that would be super geeky: have that self-contained page
prefill the textarea on load, with the innerHTML of the current page
(ie. itself). Then if you press Generate, the generated url should be
the same that had in the first place.
But "document.documentElement.innerHTML" doesn't return the doctype
declaration and <body> tag, which makes things less nice (you need to
copy the doctype+body declarations in a javascript string)...

Cheers,
Julien


More information about the Greasemonkey mailing list