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
unpkg.com
, or copy/paste it from dist/stylePirate.umd.min.js
Add the script from > (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
Limitations
- Fonts are not fully reproducible although
fonts.css
is generated - External css, which is in a different domain, is not reproducible.
- Submitting to plunker returns error if the webpage blocks submission.