Analyze CSS from any webpage - including localhost, authenticated pages, and sites behind firewalls!
- 🔒 Works on authenticated pages - Analyze CSS from logged-in dashboards, admin panels, etc.
- 🏠 Works on localhost - Perfect for analyzing your local development sites
- 🚀 Instant analysis - Extracts all CSS from the current page and sends it to CSS Stats
- 📊 Full stats - Get the complete CSS Stats analysis with all metrics and visualizations
- 🔗 Direct link - Automatically opens the stats page in a new tab
- Clone or download this repo
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
extensiondirectory
You can also install it from the chrome web store
https://chromewebstore.google.com/detail/obfocojecmagfgpdanknkacnedcgjoae?utm_source=item-share-cb
- Navigate to any webpage you want to analyze
- Click the CSS Stats extension icon in your toolbar
- Click "Analyze CSS"
- Wait a few seconds while the CSS is extracted and analyzed
- The stats page will automatically open in a new tab!
The extension:
- Extracts all CSS from the current page (stylesheets + inline styles)
- Sends the CSS to the CSS Stats API at
https://cssstats.com/v1/analyze - The API analyzes the CSS and returns a snapshot ID
- Opens
https://cssstats.com/stats/{snapshotId}in a new tab
- The extension only accesses the current tab when you click "Analyze CSS"
- CSS is sent to cssstats.com for analysis and storage
- The page URL is included for reference but is not required
- No other data from the page is collected or transmitted
- Cross-origin stylesheets: If a page loads CSS from a different domain (e.g., CDN), the browser may block access to those rules. The extension will note these as "(cross-origin)" in the sources list.
- Dynamic CSS: CSS generated by JavaScript after page load may not be captured
- Large files: Very large CSS files (>10MB) may take longer to analyze
The extension consists of:
manifest.json- Extension configurationpopup.html- Extension popup UIpopup.js- Main logic for CSS extraction and API communication
To modify:
- Edit the files
- Go to
chrome://extensions/ - Click the refresh icon on the CSS Stats extension card
Issues? Questions? Open an issue at https://github.com/cssstats/chrome-extension/issues
MIT