This tool extracts CSS with source files for active styles and save the output to a JSON file
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