Giter VIP home page Giter VIP logo

gimme-style's Introduction

GimmeStyle

Tool for developers.

Effortlessly investigate the CSS styles of any hovered element on any site (I want to believe) with GimmeStyle. Additionally, you can copy the CSS, along with CSS of the children elements and HTML code, with just one click.

demo

Why?

Browser DevTools can be tricky to use, especially when you need to quickly find all the styles of a selected element or copy the markup and styles (including those of nested elements) of a complex site component.

While this isn't a common task, it can be necessary at times. GimmeStyle is designed precisely for these situations.

Usage

Just drag GimmeStyle button from the Demo page to the bookmarks panel of your browser.

Click on this bookmark will activate GimmeStyle script on any page.

The second click on the bookmark (esc or button with a cross) will close GimmeStyle script.

Features

  • Nothing to install, just simple bookmarklet
  • Zero dependencies. Made via JavaScript
  • It merges rules for the same selector
  • It merges rules for the same selector in same @media
  • It adds inline styles
  • Easy way to copy interesting styles (including children styles) and HTML

Known issues

  • Popup adds horizontal scrollbar in some cases
  • Used 'scrollend' event, which is not supported in Safari
  • Can't copy styles and HTML to clipboard for http (not secure) sites
  • It does not work for local pages because of security rules (JavaScript in the browser doesn't have access to local files). Please restart your browser with the flag "--allow-file-access-from-files" to fix such issue.
  • May not work for sites with third-party styles, especially for sites with insecure (HTTP) connection (or depending on the server security settings). A workaround may have used a proxy service, but such cases are not currently supported.

License

MIT © 2024 Sergey Vaitehovich Version Badge

gimme-style's People

Contributors

github-actions[bot] avatar sw999 avatar

Watchers

 avatar

Forkers

williamjess

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.