Removes unused selectors from all stylesheets on a page and combines the result into a single stylesheet that can be downloaded

Latest Version

Version
0.2.0.2
Update
February 3, 2014
Size
270KiB
Developer
Category
Users
6,000+
Rating
2.27826 ★
Manifest Version
2
Web Store Status
Languages Support
English (UK)
See more
Permissions
Tabs
Http://*/*
Https://*/*
See more

CSS remove and combine Extension

This extension removes unused CSS rules on a page by creating a new CSS stylesheet containing only those selectors in use. This not only tidies and optimizes your stylesheets but combines them into a single file which can then be downloaded. The approach used by the extension is based on eliminating all ID and class based selectors that reference IDs and classes not on the page. There is also a quick view dialog that will give the user information on a page about the number of used and unused selectors. There is also now a report on the unused selectors which can be used to verify that the extension is working as described.

There is an issue reported in a review that the extension opens links to other websites. I can't see how this can be possible. The extension gets a list of stylesheets. This list is a property of the webpage document object. It then trys to open each stylesheet. If the stylesheet is on another domain, then nothing will be returned. In this way the extension cannot open any page on another domain. There is development code to get around this problem, but it is not yet active.

The \"WebKitBlobBuilder\" issue has now been solved. This rendered the extension unusable - thus all the negative feedback. Sorry that I couldn't fix the problem earlier as I was unfortunately sick for a long while. The \"WebKitBlobBuilder\" error was due to a change (quite reasonable) in chrome to remove support for the \"WebKitBlobBuilder\" property in favour of the standard \"BlobBuilder\".

Please let me know if the extension is working as advertised. You can contact me through the normal extension feedback system or at [email protected]

0.2.0.0: Added Unused Selector Report
0.1.2.0: Multiple window issue fixed
0.1.1.0: 'WebKitBlobBuilder' issue fixed

Issues:
1: Stylesheets on a different domain report no selectors. Message will print out saying no selectors found. Under development.
2: Ajax or JavaScript added elements not accounted for. Under development
3: Media queries not respected.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "CSS remove and combine", "short_name": "CSS remove", "version": "0.2.0.2", "browser_action": { "default_icon": "file_CSS.png", "default_popup": "popup.html" }, "background": { "scripts": ["background.js"] }, "description": "Removes unused selectors from all stylesheets on a page and combines the result into a single stylesheet that can be downloaded", "icons": { "128": "images/icon128.png", "16": "images/icon16.png", "32": "images/icon32.png", "48": "images/icon48.png" }, "permissions": [ "tabs", "http://*/*", "https://*/*" ], "manifest_version":2}
Read more

How to download and manually install CSS remove and combine extension for Chrome

Looking for a way to install CSS remove and combine extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install CSS remove and combine extensions manually, this article outlines two simple methods to effortlessly install CSS remove and combine extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download CSS remove and combine extension and manually install through Drag &Drop

If you ever need to manually install a CSS remove and combine extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the CSS remove and combine Extension by clicking the "Download CRX" button on the website.

Look for the CSS remove and combine extension you wish to install. Go to the website and download the CSS remove and combine extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for CSS remove and combine extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the CSS remove and combine extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download CSS remove and combine extension for Chrome and install in Developer Mode

This is another method to install CSS remove and combine extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the CSS remove and combine extension file

Select and download the CSS remove and combine extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the CSS remove and combine extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your CSS remove and combine extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the CSS remove and combine extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install CSS remove and combine extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

CSS Used Extension · Developer Tools 6,000+ 184 ★ 164KiB

icon

Unused CSS Tracker Extension · Developer Tools 6,000+ 11 ★ 24.94KiB

icon

CSS-Block Extension · Developer Tools 6,000+ 12 ★ 89.78KiB

icon

CSSViewer Extension · Developer Tools 6,000+ 371 ★ 301KiB

icon

Live editor for CSS, Less & Sass - Magic CSS Extension · Developer Tools 6,000+ 266 ★ 2.15MiB

icon

Xdebug helper Extension · Developer Tools 6,000+ 429 ★ 70.13KiB

icon

Drag Design Extension · Developer Tools 6,000+ 17 ★ 137KiB

icon

Save CSS Extension · Developer Tools 6,000+ 29 ★ 23.44KiB

icon

CSSSteal Extension · Developer Tools 6,000+ 46 ★ 557KiB

icon

LiveReload Extension · Developer Tools 6,000+ 808 ★ 60.78KiB

icon

User CSS Extension · Developer Tools 6,000+ 264 ★ 298KiB

icon

Live CSS Editor Extension · Developer Tools 6,000+ 182 ★ 24.38KiB

icon

Validity Extension · Developer Tools 6,000+ 210 ★ 108KiB

icon

eXtract Snippet Extension · Developer Tools 6,000+ 38 ★ 297KiB

icon

PageSpeed Insights (MV3) Extension · Developer Tools 6,000+ 77 ★ 524KiB

icon

CSS Shapes Editor Extension · Developer Tools 6,000+ 101 ★ 84.76KiB

icon

Web Developer Checklist Extension · Developer Tools 6,000+ 54 ★ 32.65KiB

icon

SnipCSS Extension · Developer Tools 6,000+ 32 ★ 13.12MiB

icon

Emmet LiveStyle Extension · Developer Tools 6,000+ 351 ★ 356KiB

icon

jQuery Debugger Extension · Developer Tools 6,000+ 110 ★ 88.52KiB

icon

Code Cola Extension · Developer Tools 6,000+ 188 ★ 189KiB

icon

AMP Validator Extension · Developer Tools 6,000+ 97 ★ 2.51MiB

icon

Emmet Re:view Extension · Developer Tools 6,000+ 162 ★ 74.65KiB

icon

Stylebot Extension · Accessibility 6,000+ 1603 ★ 10.27MiB

User reviews

icon

Vladan Colovic (ID: 000000d3b7df6713) Voted 1 ★ - Updated 05/17/2023 Not working

icon

Jason C (ID: 0000005a2c0f9629) Voted 1 ★ - Updated 06/07/2022 does not work download button is a no-op; show unused throws some error about a null title.

icon

Hao Wang (ID: 000000aeec75fc45) Voted 2 ★ - Updated 05/23/2022 这插件没人维护了?老是报错: SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules各位有没有同类型插件推荐?

icon

Ilya Zhulin (ID: 0000002e770e3a87) Voted 2 ★ - Updated 10/22/2020 Выдает alert с ошибкой. Не работает.

icon

Глеб Михайлов (Глебушка) (ID: 000000b9f2837f72) Voted 2 ★ - Updated 03/07/2020 Не работает. Нужно доработать.