Uh oh — I may have started a new addiction…
I’m a subscriber to O’Reilly’s Safari Bookshelf service, which I’ve discussed before. Tonight, I was doing some heavy reading into Microsoft Sharepoint, and I was getting annoyed at the interface. Reading books online is never fun, but I usually just put up with it.
However, for some reason I was suddenly inspired to spend five minutes with Mark Pilgrim’s utterly fantastic “Dive Into Greasemonkey” online book (use the HTML version — the formatting is excellent). I found a script called “Ain’t It Readable,” hacked it up a bit, and quickly had a user script which changed the styles for every page with a “safari.oreilly.com” domain.
Safari is kind enough to be very consistent and well-thought out with their CSS, and so it took just a few style rules to:
- Narrow the content section to 500-pixels
- Change the font face and size
- Insert copious amounts of line height
- Underline the headers
- Put a background and border on the code samples
- Set the opacity on the left menu to 40% so it wasn’t so noticable
I’m so happy I could spit angels. This book is so well-written that it’s taken me three times as long to write this post as it did to effectively change the formatting of every single book on Safari. Mark Pilgrim (and whomever wrote Greasemonkey in the first place), I love you.
(When I get this Safari script dialed in, I’ll post it. If you’re a Safari subscriber, I promise you it’ll make stuff way, way easier to read on that service.)