Dust-Me Selectors

Finds unused CSS selectors

The "View selectors" dialog Dust-Me Selectors is a Firefox add-on that finds unused CSS selectors. It's compatible with Firefox 1.5 or later, and Flock 0.5 or later. Dust-Me Selectors works by extracting all the selectors from all the stylesheets on the page you're viewing, then analyzing 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. You can test pages individually, or spider an entire site, and you'll end up with a profile of selectors that are not used anywhere!

Main features

  • Supports local and remote stylesheets included using <link> elements, <?xml-stylesheet?> processing instructions, and @import statements. (Note: rules inside <style> blocks that are not @import statements, and inline style attributes, are not included.)
  • Supports <link> stylesheets inside IE Conditional Comments.
  • Check a single page, or an entire site.
  • Understands all CSS1 selectors, and most CSS2 and CSS3 selectors (courtesy of Dean Edwards' wonderful base2).
  • Caters for common CSS hacks — for example, "* html #foo" will be treated as "html #foo".

Find out more

Tools


In this area

Main areas


[brothercake] shouldering the standing of giants