1,462 karma · joined May 2, 2011 (15y ago) · 467 submissions
comment 4mo ago · link · parent
[1] https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG
[2] https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG/raw/...
3.
Aug 31st 2026: All Manifest V2 extensions removed from the Chrome Web Store(developer.chrome.com ↗)
4 points · by gildas · 4mo ago · 1 comment
comment 5mo ago · link · parent
comment 5mo ago · link · parent
- Save the page as a self-extracting ZIP file, see https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG
comment 5mo ago · link · parent
To do this, I "simply" asked the agent, every time it encountered an issue, how to resolve it, using a validation tool or script. I also asked it to code these tools during audits. As a result, I now have over 30+ rules [2] for validating their commits. It's working pretty well now.
[1] https://github.com/gildas-lormeau/rebuild-and-ruin (let the timer expire to see the "demo" mode)
[2] https://github.com/gildas-lormeau/rebuild-and-ruin/blob/a4c3...
comment 9mo ago · link · parent
Edit: I've just implemented the "good enough of my machine fix" aka the "easy fix", https://github.com/gildas-lormeau/single-file-core/commit/a0....
Edit #2: I've just understood that "parent" in "this method cannot interrupt its *parent* document's loading" from the MDN doc probably means the "parent" of the frame (when the script is running into it).
comment 9mo ago · link · parent
I implemented this in the simplest way possible because if the zip file is read from the filesystem, window.stop() must not be called immediately because the file must be parsed entirely. In my case, it would require slightly more complex logic to call window.stop() as early as possible.
Edit: Maybe it's totally useless though, as documented here [1]: "Because of how scripts are executed, this method cannot interrupt its parent document's loading, but it will stop its images, new windows, and other still-loading objects." (you mentioned it in the article)
[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/stop
Edit #2: Since I didn't know that window.call() was most likely useless in my case, I understand your approach much better now. Thank you very much for clarifying that with your question!
comment 9mo ago · link · parent
Edit: Actually, SingleFile already calls window.stop() when displaying a zip/html file from HTTP, see https://github.com/gildas-lormeau/single-file-core/blob/22fc...
comment 9mo ago · link · parent
12.
Gwtar: A static efficient single-file HTML format(gwern.net ↗)
4 points · by gildas · 10mo ago · discuss
comment 12mo ago · link · parent
[1] https://babeljs.io/docs/babel-plugin-transform-async-to-gene...
comment 12mo ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
https://github.com/0x48piraj/gz-bomb/blob/master/gz-bomb-ser...
comment 1y ago · link · parent
comment 1y ago · link · parent
[1] https://gildas-lormeau.github.io/zip.js/api/classes/HttpRang...
[2] https://github.com/gildas-lormeau/zip.js/blob/master/tests/a...
comment 1y ago · link · parent
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ac...
comment 1y ago · link · parent
comment 1y ago · link · parent
EDIT: It might not be possible to flag or downvote comments. So, I recommend you to contact the moderators or your local police. You can find my name and address on my GitHub profile.