Skip to content

This tool extracts CSS with source files for active styles and save the output to a JSON file

License

Notifications You must be signed in to change notification settings

shashwatsahai/CSSExtractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

CSSExtractor

This tool extracts CSS with source files for active styles and save the output to a JSON file

Please create a Pull Request in case you add/fix a feature so that others can benefit from it

Required - The getC() function starts parsing from $0. Make sure your $0 points to body element. Open devtools and click on the element or pass an element in code
Run getC function with the $0 or element as parameter
It will output the data to the JSON file mentioned in line 2404
Call getC after html has loaded otherwise $0 will not point to anything and there will be no data to parse


Steps to use -
->The $0 must point to your body element of your current page
->Run getC() function with $0 as the parameter ie getC($0)
->Change your JSON filename at line 2404 or where it is written -//Give your filename here
->You can add this file anywhere but function must be called after the html has loaded

About

This tool extracts CSS with source files for active styles and save the output to a JSON file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published