Skip to content

Pull a whole element with css styles from the front page.

License

Notifications You must be signed in to change notification settings

xstude/FeSpider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FeSpider

Pull a whole element with css styles from the front page.

Usage

FeSpider provides a chrome devtool extension, namely a .crx file, and a server-side (Nodejs) script. With the extension installed, a side panel named "FeSpider" in the "Elements" panel is ready.

Just inspect the element to be pulled out, select some options, and run it.

inspect

pull

review

That's it.

Advance

If you want to analyze css file contents to extract information such as @font-face, please set conf.fetchFont: true. Then start the server as below to listen to file url fetching requests on port 3663 by default.

node server.js

or in the project root directory:

npm start

Benefit

Css styles would be optimized. Every tag has just one class name. Tags having the same styles would be the same class.

You say "the class names make no sense"? Well, nobody cares elements' class names inside a UI component, even you as a developer.

License

MIT

Copyright (c) 2017-present, shenfe

About

Pull a whole element with css styles from the front page.

Resources

License

Stars

Watchers

Forks

Packages

No packages published