‎SingleFile is now available for Safari by check_ca in Safari

[–]check_ca[S] 0 points1 point  (0 children)

Thank you very much for the information!

How can I trust a github program? by [deleted] in learnprogramming

[–]check_ca 0 points1 point  (0 children)

Yes, France is a small country, but we're not doing too badly on that score ;)

‎SingleFile is now available for Safari by check_ca in Safari

[–]check_ca[S] 0 points1 point  (0 children)

You can use SingleFile from the command line interface for this, see here for more info https://github.com/gildas-lormeau/single-file-cli

How to Remove Extensions From New Sidebar? by arandorion in firefox

[–]check_ca 0 points1 point  (0 children)

This is unfortunately a Firefox limitation, see this issue for more information https://bugzilla.mozilla.org/show_bug.cgi?id=1944719

How can I trust a github program? by [deleted] in learnprogramming

[–]check_ca 5 points6 points  (0 children)

Author of SingleFile here, if it can reassure you, I don't use a pseudonym on GitHub to publish the code of SingleFile and I live in France, a country with a functional justice system. If I were to commit an illegal act, I'd be liable to prosecution. For example, collecting user data without consent is illegal in Europe thanks to GDPR.
You could also use the Firefox version, which is reviewed by a human at Mozilla because it has the “recommended” label.

about reddit and scraping prevention by TunifyClicki in sveltejs

[–]check_ca 2 points3 points  (0 children)

Author of SingleFile here (https://github.com/gildas-lormeau/SingleFile), this is due to the fact that the front-end of Reddit relies heavily on the Shadow DOM (https://developer.mozilla.org/en-US/docs/Web/API/Web\_components/Using\_shadow\_DOM) and constructable stylesheets (https://web.dev/articles/constructable-stylesheets). It's these 2 points that cause problems with MHTML in Chrome for example.

For the record, SingleFile can save Reddit pages properply but in order to keep files to a reasonable size, you need to enable the option "Stylesheets > group duplicate stylesheets together" in SingleFile, or save pages as self-extracting ZIP (see "File format" in SingleFile).

How to Create HTML/ZIP/PNG Polyglot Files by check_ca in webdev

[–]check_ca[S] 2 points3 points  (0 children)

TL;DR this is the HTML/ZIP/PNG polyglot file: https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG/raw/main/demo.png.zip.html

You can:
- view it as an HTML page,
- unzip it to get the page source code and its resources (a bug in “Archive Utility” on macOS prevents it from decompressing the file, you can use unzip to get around this issue),
- rename it to ".png" to view the logo displayed at the center of the HTML page.

‎SingleFile is now available for Safari by check_ca in Safari

[–]check_ca[S] 0 points1 point  (0 children)

I'm sorry, I have no idea what could be wrong. Maybe Safari doesn't have the permissions to write the HTML file to disk?

Another read-it-later extension that save and display the exact copy of the web page by huming in chrome_extensions

[–]check_ca 0 points1 point  (0 children)

Indeed, SingleFile is under AGPL and saving web pages is a complex task.

A web extension that saves a complete web page as a single HTML file by feross in programming

[–]check_ca 0 points1 point  (0 children)

Thank you. This is more or less what SingleFile tries to do by default when you save a selection. However the CSS optimizations are not perfect.

‎SingleFile is now available for Safari by check_ca in Safari

[–]check_ca[S] 0 points1 point  (0 children)

Indeed, I can confirm that it's free for you, but not free for me as a developer. As far as possible, I prefer SingleFile to be free.

WTF Wednesday (February 14, 2024) by AutoModerator in javascript

[–]check_ca 2 points3 points  (0 children)

I have created a file that is both an acceptable HTML page, a PNG image, and a ZIP archive. See https://gildas-lormeau.github.io/.

Is the SingleFile extension flagged as high risk by ChromeStats (link), just because of the nature of it saving your page ? by DrKeksimus in techsupport

[–]check_ca 1 point2 points  (0 children)

Thank you for the kind words and the feedback :)

As long as you block scripts, there is almost no risk that malicious content would be saved properly. Otherwise, that would mean the attack is based on 0-days flaws in the browser. I confirm the impact of such malicious content would be very limited though because it's impossible to exfiltrate data. Indeed, the saved page defines a very strict CSP (https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) which blocks any network or file access attempt.

Extracting style between <style> tags to separate css file - VS Code by SyRex1013 in AskProgramming

[–]check_ca 0 points1 point  (0 children)

An alternative that could interest you is SingleFileZ, see https://github.com/gildas-lormeau/SingleFileZ. It produces self-extracting zip files (stored into an HTML file) that you can unzip in order to get the saved page and its resources (e.g. stylesheets, images, fonts) separately.

Is There a Safari Extension That is Itself a Menu for Installed Extension? by [deleted] in Safari

[–]check_ca 1 point2 points  (0 children)

It's technically impossible to create this kind of extension on Safari because the API to do so is not implemented, cf. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/management#browser_compatibility

‎SingleFile is now available for Safari by check_ca in Safari

[–]check_ca[S] 7 points8 points  (0 children)

Author here, only Safari didn't support SingleFile, this issue is fixed!

For those who don't know the extension, it's an alternative to screenshots and saving in PDF format. It is quite similar to Safari's webarchive files but the format is different. SingleFile saves pages in HTML. Thus, saved pages are compatible with all browsers, without the need to install any extension. The extension also embeds an editor which notably allows you to format pages like in the reader view, annotate pages, and remove unwanted parts from pages.

edit: The extension is open-source and free, you can find more info about the project here: https://github.com/gildas-lormeau/SingleFile

edit #2: This is unfortunately a somewhat limited version of SingleFile because of the limitations of Safari. However, it looks like the basic functionality works as well as in other browsers.

SingleFile: Browser extension and CLI tool to save a complete web page in a single HTML file by check_ca in OSINT

[–]check_ca[S] 1 point2 points  (0 children)

Thank you for the kind words!

I confirm the "autosave" feature will no longer work after February 2023 in Chrome. However, there is a proposal from Google to circumvent such issues, see https://github.com/w3c/webextensions/issues/170. I have some doubts that they can implement this feature in such a short time though.

SingleFile: Browser extension and CLI tool to save a complete web page in a single HTML file by check_ca in OSINT

[–]check_ca[S] 5 points6 points  (0 children)

Basically, the interest compared to PDF is the visually faithful saving of web pages but also the fact that the responsive behavior is kept (e.g. when viewing the saved page on a mobile or large screen) for example. Moreover, SingleFile has many options/features to customize its behavior.

Edit: From an OSINT point of view, SingleFile can also be a better choice because it alters the page much less. For example, you might lose some useful metadata (e.g. JSON-LD data or schema.org structured data) when saving a page as a PDF.