Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
flatroze
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
flatroze
7y ago
That dependency is now gone, thank you for the review
2.
▲
by
flatroze
7y ago
Everything has its limits
3.
▲
by
flatroze
7y ago
Could you please open issue on github providing the output that you get in the terminal?
4.
▲
by
flatroze
7y ago
It sounds like a great add-on, I have to check it out to see what it does to remote assets and how it works with asynchronously loaded assets.
5.
▲
by
flatroze
7y ago
I'd say since monolith produces a plaintext document it lets you edit things easier if needed. JS can be removed from the final document using the -j flag. HTML Files can also be grepped for content, unlike PDFs.
6.
▲
by
flatroze
7y ago
The compile time is rather long as well, I'm looking into ways of reducing the amount of dependencies.
7.
▲
by
flatroze
7y ago
Thank you for the kind words. It will evolve into a reliable tool in a couple weeks and it should eventually work for embedding everything, including things like web fonts and @url()'s within CSS. If anything doesn't work, please
8.
▲
by
flatroze
7y ago
Which license would you recommend to release this software under to reach the broad adoption yet permissive terms, if not the Unlicense?
9.
▲
by
flatroze
7y ago
It is done, option -i in the latest version (2.0.3) now replaces all src="..." attributes with src="<data URL for a transparent PNG pixel>" within IMG tags.
10.
▲
by
flatroze
7y ago
CSS imports are covered by converting .css files into data URLs, later I will parse those and embed resources found within stylesheets as well.
11.
▲
by
flatroze
7y ago
It's a valid question. It seems to me users tend to trust things which have certain level of popularity and reputation associated with them. I personally prefer to hope for the worst. This way when nothing happens I feel extra lucky, a
12.
▲
by
flatroze
7y ago
Thank you for the heads up, I'll test it and enhance to preserve styles better.
13.
▲
by
flatroze
7y ago
Thanks, I'll look into making it work with pipes or some other way to interact with headless browsers.
14.
▲
by
flatroze
7y ago
Thank you for reminding me, I need to set action="" to be an absolute path when the page is saved. upd: Done, now forms get their action="/submit" converted into action=" https://website.com/subm
15.
▲
by
flatroze
7y ago
Well, at least it's not called iSuck.
16.
▲
by
flatroze
7y ago
Thanks! Pictures should work, I'll check more tags first thing tomorrow when I start working on improving it. I use youtube-dl for youtube and other popular web services myself. Embedding a video source as a data URL could in theory wo
17.
▲
by
flatroze
7y ago
That's it in the nutshell! It seems to work for basic pages quite well, I think that lazy load will work for most pages as long as the JavaScript is embedded (no -j flag provided) and the Internet connection is on. It saves what's
18.
▲
by
flatroze
7y ago
Uh, I'm sorry. Please feel free to open PRs to that repo if you have anything to add or improve.
19.
▲
by
flatroze
7y ago
It for sure would help with those SPA websites that get their DOM fully generated by JS. A web extension that saves the current DOM tree as HTML would perhaps do a better job, especially when it comes to resources which require some web-bas
20.
▲
by
flatroze
7y ago
Ah, I remember using something like that. I thought that tool was saving it into one .html file, but data URLs didn't exist back then, so creating directories alongside with HTML files was the only option to "replicate" a web
21.
▲
by
flatroze
7y ago
This could also be an interesting alternative to PDF, especially with web fonts embedded as data URLs.
22.
▲
by
flatroze
7y ago
We'll bring it back, don't you worry!
23.
▲
by
flatroze
7y ago
The idea is almost identical, yet saving as .webarchive is only supported by Safari, and it's also not a plaintext format, hence can't be edited as easily.
24.
▲
by
flatroze
7y ago
Oh, thank you kindly. That's an interesting question. I think it depends on how the given modal is implemented, but closing them should technically work (unless the page is saved with JavaScript code removed [-j flag]). Those notificat
25.
▲
by
flatroze
7y ago
I think there's an issue with opening a tar file, e.g. if sent to someone who needs to view the document but isn't techy. It seems to me that having one file that any browser can easily open (and not require Internet connection to
26.
▲
by
flatroze
7y ago
Good points, thank you for the review. I'll work on enhancing the readme file to be more informative.
27.
▲
by
flatroze
7y ago
Apparently everybody knew about MHTML but me Ü I'm going to look into that format and see if I could enhance monolith to output proper MHTML, among other additions and improvements. Thank you for the info!
28.
▲
by
flatroze
7y ago
Thank you! It's pretty straight-forward: this program just retrieves assets and converts them into data-URLs (data:...), then replaces the original href/src attribute value, so in case with the same image being linked multiple tim
29.
▲
by
flatroze
7y ago
Thank you! I'll add it as an issue, since it could definitely be useful for "archiving" certain resources more than 1 level deep. Do you remember the name of that tool by any chance?
30.
▲
Show HN: CLI tool for saving web pages as a single file
(github.com)
640 points
by
flatroze
7y ago
|
209 comments
More ›