Skip to content

codeshif/CSS-Used-ChromeExt

 
 

Repository files navigation

CSS-Used

CSS Used

Get all css rules used by the selected DOM and its children.

Get it at the Chrome Web Store : CSS Used >>

Overview

Get all css rules used by the selected DOM and its children. Used to extrac only the used CSS. So the unused css will be left out.

If the selected DOM is the body, the result will be all the used css by the whole page curently.

Usage

CSS-Used

F12 open the Developer Tools, select the dom and active the "CSS Used" pannel. The used CSS rules of the Selected dom and its children's will be listed in the right textare.

You can click "Preview" to see the selected part with clean style rules.

Known Limit

  1. As for the CSS rule like .wrap p{...}, if only <p> is selected, the result .wrap p{...} may not apply directly to <p>.

    Either changing this rule's selector to p{...} or giving the <p> a .wrap parent in the final HTML.

  2. The result is generated based on the CURRENT HTML DOM. If a div doesn't exist in the document unless a specific user interaction, the result may miss out the style rules for the newly born div.

  3. Won't work on Chrome Web Store pages, which is https://chrome.google.com/webstore/....

Changelog

Go to the Changelog page

To Do

--

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Other 0.6%