Post Archive

› March 27, 2002

View Style Sheets Bookmarklet v2

  • Reported by Nate

With Leorean's permission I'm providing an alternate link to her latest bookmarklet:

View Stylesheets Sources

The code has been upgraded and the features are invaluable. To use it, simply bookmark the link (ie 6 and moz) above and activate it on any page you wish to view the css for. The bookmarklet supports multiple stylesheets and various linkage types, it provides access to the code of each style sheet (toggle on/off the viewing even!), the linkage method, a link to the css file itself, and the header codes are all available. All of this information is contained in an easy to use popup window [screenshot].

Comments

1. March 27, 2002 10:49 AM

Quote this comment

Joshua Kaufman Posted…

This is the sh**! Superb bookmarklet Leorean!

2. March 27, 2002 12:55 PM

Quote this comment

Ryan Schroeder Posted…

It doesn't appear to work in IE5/Mac. Anyone willing to make it compatible?

3. March 27, 2002 03:21 PM

Quote this comment

Liorean Posted…

The name is Liorean, really. He spelled it right the first time. Ryan, IE for Mac so far lacks any http request component, so that makes it hard. The functionality could be emulated through iframes, but that's some heavy coding to do, it'll add heaps of bytes to an already quite big script (2.8 K as of speaking), and it'll still never be able to output the anything more than the script source. (And I think the great thing about this is the http headers - you can see size, date last changed, content type and more.)

4. March 27, 2002 09:29 PM

Quote this comment

Nate Posted…

Liorean! I'm so sorry, that was a sloppy mistake on my part. I guess I was very excited about posting the news and forgot to take a second to review the spelling.

5. April 1, 2002 07:52 AM

Quote this comment

Simon Willison Posted…

Anyone got or seen an equivalent bookmarklet for viewing javascript sources? The CSS one is absolutely fantastic, and a JS one would complement it very nicely indeed.

6. April 1, 2002 11:16 AM

Quote this comment

Liorean Posted…

I've not seen any that displays the source instead of just plainly links to it, but I think to create one would be quite easy. There are multiple that links to all the JS source files though.