GabLeRoux / ansi-colors-chrome-extension

:earth_africa: ANSI colors in your browser!
https://chrome.google.com/webstore/detail/hpkomngllcnigoocaolicfknnhibnmfi/
MIT License
14 stars 1 forks source link

Find a way to get content of the page as a stream #1

Closed GabLeRoux closed 3 years ago

GabLeRoux commented 8 years ago

This project has been blocked for a while, I couldn't find a way to get content of the page as as stream. This is probably the only step before being able to call ansi-html-stream.

This is the readme section that says:

figure out how to pass data to ansi-html-stream (using a stream? maybe I should find a different solution)

Next step will be to update dom document with other end of the stream!

maxgalbu commented 4 years ago

Hey, you could use https://github.com/rburns/ansi-to-html instead, doesn't require a stream

GabLeRoux commented 4 years ago

Thanks for sharing, I'll definitely give this a try :tada:

maxgalbu commented 4 years ago

Tried and it nearly freezes the tab, scroll and shortcuts become unresponsive... don't know what happens

EDIT: this happens on Chrome with a big file with lots of <span>s, but the content actually loads fine in Firefox, when loaded from a converted html file. Chrome is not able to load it.

EDIT2: confirmed, chrome is not able to load my big file, firefox does it. 💯 I will try to put together a pull request

maxgalbu commented 4 years ago

https://github.com/GabLeRoux/ansi-colors-chrome-extension/pull/9

GabLeRoux commented 3 years ago

Closed with #9 thanks!