painty/CSS-Used-ChromeExt
关于
Get all css rules used by the selected DOM and its children.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文CSS-Used

Get all css rules used by the selected DOM and its descendants.
Get it at the Chrome Web Store : CSS Used >>
Overview
Get all css rules used by the selected DOM and its descendants. 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

F12 open the Developer Tools, select the dom and active the "CSS Used" panel. The used CSS rules of the Selected dom and its descendants will be listed.
You can click "Preview" to see the selected part with clean style rules.
FAQ
No result
- Check whether it's Chrome Web Store pages, which is
https://chrome.google.com/webstore/...., which won't allow content script injection. - If it's a normal webpage, check site access permission https://github.com/painty/CSS-Used-ChromeExt/issues/13#issuecomment-687244215
- If it's a local file, chrome won't allow local file access by default. You can turn on the "Allow access to file URLs" in the extension management page.
- Check whether it's Chrome Web Store pages, which is
Preview not right
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 top{...}or giving the<p>a.wrapparent in the final HTML.Not all the CSS is got
- 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.
- CSS custom properties (variables) are partially supported. Not working for declarations defined by $0's ancestor. Thinking it as a inheritable CSS property, as this tool won't handle inherit style.
Changelog
Go to the Changelog page
探索相关项目
加载中…