Giter Site home page Giter Site logo

jeremie-olivier / css-used-chromeext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from painty/css-used-chromeext

0.0 1.0 0.0 1.05 MB

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

Home Page: https://chrome.google.com/webstore/detail/css-used/cdopjfddjlonogibjahpnmjpoangjfff

License: MIT License

CSS 9.79% JavaScript 84.23% HTML 5.98%

css-used-chromeext's Introduction

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.

FAQ

  1. Permission to read my browsing history

    See https://github.com/painty/CSS-Used-ChromeExt/wiki/Permission-to-read-my-browsing-history%3F

  2. Local 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 to p{...} or giving the <p> a .wrap parent in the final HTML.

  3. 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.

  4. Always says to fresh the page

    First 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 , please create an issue.

Changelog

Go to the Changelog page

Dev

  1. npm install to install all the dependencies
  2. npm run dev watch & gernerate an unminified version of content.js for debug
  3. npm run build gernerate a minified version of content.js
  4. npm run test will start a local http://127.0.0.1:8080 server. Visiting the test page and check the console

css-used-chromeext's People

Contributors

nampnq avatar painty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.