Remove Classes from Menu I know that this isn't a really big priority but with the default Drupal menu you get css classes like .first or .last or .active.

.first and .last are being provided by CSS3 and .active only needs to be on the &lt;a&gt; link not on the &lt;li&gt; due to the way my CSS works.

All these classes are unneeded and I'd like to remove them, so I can create a clean and efficient template.

Does anyone have any ideas how to do this (and if possible provide a small code sample)?

Thanks :)
I will get so downvoted for this but are you sure this is the last thing you need to make your site awesome? You are wasting your time on microoptimization.