HTML & Text Bookmarklets For FireFox

I’ve noticed that the bookmarklets for HTML and text don’t work in firefox. As I’m always tight on disc space I’ve come up with the following solution:

HTML for Firefox:


documentElement.innerHTML doesn’t capture the surrounding tags, so I’ve added them manually.

I’ve had less luck with text for Firefox:


This does capture the body text but eliminates many line feeds. Any suggestions on that?

Be aware that my knowledge of DT is even less than the little I have of Javascript :slight_smile: . But the HTML bookmarklet works for me.