HOME
ABOUT US
TECHNOLOGY
PORTFOLIO
CONTACT COMMUNITY

New Script: CSS Extractor 1.0

What does it do?
The CSS extractor scours your html pages for the string class="", extracts all the classes from your existing stylesheet and puts them all in a new stylesheet.

Why do I need it?
Maybe you want to get rid of styles that are no longer being used in your website. Or maybe you want to give a certain directory in your website its own separate stylesheet.

What doesn't it do?
The CSS Extractor will not copy over classes that are being accessed with id="". It also won't copy over classes that are used but not specified -- classes that control standard html elements like body, td, etc. Those will have to be moved over manually. Sorry. See future versions note below.

How do I use it?
You will need perl installed on your computer. Perl is free and you can download it from ActiveState. With Perl installed just type perl cssExtractor.pl from the command line and follow the instructions.

Will it break my computer, delete my website or steal my wife?
I guess it's possible but it seems pretty unlikely. In any case I make no guarantees or warrantees about this script and I cannot be held responsible for what it does.

Will there be future versions?
If anyone shows any interest in this program and writes me a message on this message board I promise I will make a better version of this script.
 
Download it! 

AttachmentSize
cssExtractor.pl.txt3.44 KB

User login

Navigation