style-pirate

Steal full html and css from the existing web site section


Keywords
css, html, duplicate, fonts, image, clone, copy
License
MIT
Install
npm install style-pirate@0.1.4

Documentation

style-pirate

Steal full html and css from the existing web site section

How To Use It?

Pick an element to steal the html/css

image

Add the script from unpkg.com, or copy/paste it from dist/stylePirate.umd.min.js

> (function(){var el=document.createElement('script');el.src="https://unpkg.com/style-pirate";document.body.appendChild(el); })();

Run command

> var sp = stylePirate.run($0);
> stylePirate.plunker();  // to see it at plunker

image

Limitations

  1. Fonts are not fully reproducible although fonts.css is generated
  2. External css, which is in a different domain, is not reproducible.
  3. Submitting to plunker returns error if the webpage blocks submission.