Coder Social home page Coder Social logo

dalimil / web-design-pirate Goto Github PK

View Code? Open in Web Editor NEW
95.0 6.0 13.0 5.39 MB

DevTools Extension for Chrome and Firefox - Fast and easy way to copy full HTML widgets, components, and parts of web design. :boat: :ghost: :anchor:

HTML 1.36% JavaScript 94.70% CSS 3.89% Shell 0.05%
chrome-extension chrome-devtools web-design chrome

web-design-pirate's Introduction

Web Design Pirate Donate

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

Chrome Web Store: https://chrome.google.com/webstore/detail/web-design-pirate/pdplijceapgnjafgenmlijejmjgplbhm
Firefox Add-on: https://addons.mozilla.org/en-CA/firefox/addon/web-design-pirate-for-devtools/

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). We 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 MDN's header navigation widget. I select it using Developer Tools Inspector, switch to my Web Design Pirate tab, tweak the settings, and finally copy the result.

Screenshots

Current state:

Web Design Pirate - Screenshot Web-Design-Pirate Screenshot - Dalimil Web-Design-Pirate Extension - Dalimil

Web Design Pirate User Flow

Outdated (but still demonstrates the basic idea):

Web Design Pirate - Outdated screenshot

Dev

Pull requests welcome

TODO

  • For large chunks of HTML (e.g. Expedia html body) it is too slow (devtools freeze) - maybe remove deep level innerHTML already in content scripts (assume user interest in the wrapper element)
  • Replace UnCSS online api with a custom offline script using jQuery selectors from parsed CSS AST

web-design-pirate's People

Contributors

dalimil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

web-design-pirate's Issues

issue with firefox

thanks for the extension.
it works well on chrome but not firefox 57.0.2

Responsive layouts don't give correct rendering

Go to any RWD website: https://digg.com

Select the top nav bar class, the one that contains header with breadcrumb.

The preview window doesn't show the mobile version of the nav-bar, it shows the desktop version.

Setting the user-agent for mobile kinda works, though the layout is still messy and not as clean as desktop version.

Not working on particular site.

Hey,

Have the following "CSS input" error:

{"isException":true,"value":"DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules\n at slice.call.map (:2:65)\n at Array.map ()\n at getStyleSheets (:2:48)\n at :8:5"}

for the following site:
http://spirit.com.au/

Will try my best to see if I can create a PR, if you could give me a hint in the meantime that would be sweet.

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.