Code Monkey home page Code Monkey logo

web-design-pirate's Introduction

Web Design Pirate

Chrome DevTools Extension โ›ต ๐Ÿ‘ป โš“
Fast and easy way to copy full HTML widgets, components, and parts of web design.

Web Design Pirate - Chrome extension

Motivation & Description

It is hard to look at a website and copy only a small part of it (widget/component/element). One could copy the full HTML and all CSS files and then try to filter out things we don't need, but that would take too much time...

Web Design Pirate is a DevTools extension that allows you to select an HTML node, and then gives you only the CSS styles that you need to render the full component. Optionally, for copying wrapper-style components it also allows you to specify the level of inner HTML content that can be thrown away (to further reduce the number of needed CSS styles).

Examples

For instance I like Facebook's Create a Post widget. I select it using Chrome Developer Tools Inspector, switch to my Web Design Pirate tab, and copy the result.

TODO

  • It's painfully slow (devtools freeze) for large chunks of HTML (e.g. expedia html body) - maybe remove deep level innerHTML already in content scripts (assume interest in wrapper element)
  • Add option to add CSS prefixes e.g. _abc123 in front of all to isolate component and allow complete copy paste - check how react does it
  • Do they want to copy any of the stylesheets? E.g. bootstrap --- Allow show/hide all CSS from that source + rerender
  • Slider to remove inner levels of HTML - show how many CSS lines it produces + rerender result + cache uncss calls
  • maybe perform repeated uncss requests with reduced css (from previous calls) and only first call with all stylesheets
  • Publish: https://developer.chrome.com/webstore/get_started_simple

Screenshots

Web Design Pirate - Work in Progress Web Design Pirate - Work in Progress 2

web-design-pirate's People

Contributors

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