Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gildas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
151.
▲
by
gildas
5y ago
Sorry, I was wrong, you have to select "format the page" instead of "edit the page" (first item).
152.
▲
by
gildas
5y ago
I will do it, but it will take me some time to explain it and rather than answering on HN I will integrate it in the FAQ. I created an issue for this here: https://github.com/gildas-lormeau/SingleFile/issues/8
153.
▲
by
gildas
5y ago
It is in fact more or less self-financed by... hmmm... a SaaS that I market but it's in B2B.
154.
▲
by
gildas
5y ago
For technical reasons beyond my control, SingleFile injects a (very small) script when the page loads even if you don't click on the button. It could also send any data to a third party server. Unfortunately, it is therefore impossible
155.
▲
by
gildas
5y ago
It saves what you see (and remove JS by default). There is an option to embed the JS and another one to save the "raw" page but I would not say it is reliable. The cleverness lies more in the ability to produce light pages.
156.
▲
by
gildas
5y ago
I think this issue could be circumvented by manipulating the page (replacing images, frames, css etc.) in the tab itself (SingleFile does it in background with a DOMParser instance). The trick is to avoid HTML parsing.
157.
▲
by
gildas
5y ago
The difference is the output format. I created SingleFile before Chrome supported MHTML files. At that time, to save web pages in a single file, the only technical solution in Chrome was to implement something like SingleFile. The advantage
158.
▲
by
gildas
5y ago
You should be able to use it on Firefox for Android Nightly (which is very stable) by following this procedure: https://blog.mozilla.org/addons/2020/09/29/expanded-extensio... > approx
159.
▲
by
gildas
5y ago
The demo is approximately 2 years old. Things probably changed meanwhile.
160.
▲
by
gildas
5y ago
Sure! See here https://news.ycombinator.com/item?id=30530438
161.
▲
by
gildas
5y ago
You can enable these options for this: - Annotation editor > default mode > edit the page - Annotation editor > annotate the page before saving
162.
▲
by
gildas
5y ago
I guess you're referring to SingleFileZ. This option is not needed because zip files (i.e. what SingleFileZ produces) already provide this feature.
163.
▲
by
gildas
5y ago
It's possible but it's a bit limited. It won't be able for example to save images coming from a different origin.
164.
▲
by
gildas
5y ago
I cannot reproduce your issue, I just did a test on this page and I see the expected `<img src="data:image/jpeg;base64,...` in the saved page.
165.
▲
by
gildas
5y ago
I try to use optional permissions as much as I can. The first permission is required because of assets and frames stored on third-party servers. The second permission should be optional, I don't remember why it's not. I'll tr
166.
▲
by
gildas
5y ago
I used: - ScreenToGif to record video sequences and produce the final GIF: https://www.screentogif.com/ - Macro Recorder to record and replay user navigation: https://www.macrorecorder.com/ - Blender to edi
167.
▲
by
gildas
5y ago
I confirm that you could use a headless browser for this. This is actually what SingleFile CLI does [1]. Here is an example of JS code showing how to configure and inject SingleFile with puppeteer [2]. [1] https://github.com/
168.
▲
by
gildas
5y ago
Thank you Paul! I had read this document some time ago, especially to see how the shadow DOM was serialized.
169.
▲
by
gildas
5y ago
Thanks :)
170.
▲
by
gildas
5y ago
It's interesting! I had started something similar as part of testing but hadn't really finished my work. I will have a look at your project.
171.
▲
by
gildas
5y ago
AFAIK, for the moment Mozilla is aware of the regressions that Manifest V3 causes and shows a good will to try to reduce them as much as possible. You can find some information about this here https://github.com/w3c/web
172.
▲
by
gildas
5y ago
The problem is that it is a proprietary format. The advantage of the format produced by SingleFile (HTML) is that as long as your browser is capable of interpreting HTML, you will be able to read your archives without worries.
173.
▲
by
gildas
5y ago
In fact, you simply do not need an extension to open pages saved with SingleFile (or SingleFile Lite) because they are standard HTML pages. So you don't have to worry about that.
174.
▲
by
gildas
5y ago
Zotero is actually using SingleFile under the hood to save web pages ;)
175.
▲
by
gildas
5y ago
Author here, it makes me really happy to see SIngleFile on the front page of HN. Thank you! I take the opportunity to make you aware of the upcoming impacts of the Manifest V3 [1], and for those who prefer zip files, I recommend you to have
176.
▲
by
gildas
5y ago
Author here, sorry for the GIF file. I created it because people were not happy with the video hosted on Youtube. AFAIK, video files did not work when I did this demo. I'll try to improve this in the future.
177.
▲
by
gildas
5y ago
Images are stored as data URIs [1]. Note that they could also be stored as entries in a zip file too! [2]. [1] https://en.wikipedia.org/wiki/Data_URI_scheme [2] https://github.com/gildas-lormeau/S
178.
▲
Intent to Prototype: Topics API
(groups.google.com)
1 points
by
gildas
5y ago
|
0 comments
179.
▲
by
gildas
5y ago
Thank you! Actually I did some tests recently with SingleFile Lite and was able to save a page weighting 120MB+ so the 43MB limit seems obsolete. There are still some annoying issues though.
180.
▲
by
gildas
5y ago
Thanks for the feedback! It's very timely, I just have an issue that discusses the problem of sideloaded extensions (and profile data).
More ›