3 ms·
Show HN: Chrome extension that extracts HTML+CSS from an element to inline style
Hi there. I spent the last couple months building this chrome extension to scratch my own itch. It allows you to extract a snippet of HTML along with its styles and export to inline styles or JSX. It’s not perfect and doesn’t work on every site. There is class support but I am still working on it along with some other cool features. Feedback is appreciated.
- graderjs 4y agoGood work, this is a hard problem and a worthwhile pursuit! Well done. Are you using any of these APIs: https://chromedevtools.github.io/devtools-protocol/tot/DOMSnapshot/#type-NodeTreeSnapshot https://chromedevtools.github.io/devtools-protocol/tot/DOMSn... ? You may be able to access via: https://developer.chrome.com/docs/extensions/reference/debugger/#method-sendCommand https://developer.chrome.com/docs/extensions/reference/debug... Thanks! Wonderful to see this here! Well done!!! :p :) xx ;p
- develast 4y agoI initially tried to use the chrome debugger CSS API but realized my extension couldn’t get access to those commands. I haven’t tried any other debugger APIs but I will take a look. It’s a much harder problem to solve without those. Thank you