Dust-me selectors
// January 24th, 2008 // No Comments » // cool tool
I came across this cool firefox extension called Dust-me selectors. One word – impressed.
Here’s what it does (as mentioned in Sitepoint) :
Dust-Me Selectors is a Firefox extension (for v1.5 or later) that finds unused CSS selectors.
It extracts all the selectors from all the stylesheets on the page you’re viewing, then analyzes that page to see which of those selectors are not used. The data is then stored so that when testing subsequent pages, selectors can be crossed off the list as they’re encountered.
Here’s are a few screen shots
A cute icon sits on the right corner of your status bar.

Click on that icon and it scans the stylesheet(s) associated with the site and within a few seconds it gives you a list of all the stylesheets and the selectors that are unused in each one of them. As you can see in the screenshot below, morethan2cents.com has 2 stylesheets and the first one has zero selectors that are unused. And the second one, has 146 selectors that are unused. (So then, why have i not cleaned ‘em up? Cuz I’m a lazy bum. That’s why.)

Immensely useful tool that can keep your stylesheets clean and light weight since they don’t carry any unnecessary styles that are not used in the site.
More than 2 cents Verdict: That’s Hot!



