Git Product home page Git Product logo

Comments (3)

gildas-lormeau avatar gildas-lormeau commented on June 29, 2024

This is possible by opening the index.html file in the browser after extracting the zip file and save the page again with SingleFile. If you use Chrome, you need to enable "Allow access to file URLs" in the extension page, i.e. chrome://extensions/?id=mpiodijhokgodhhofbcjdecpffjipkle. Otherwise I would recommend to run a HTTP server and open the index.html through it (e.g. http://localhost:8080/saved-page/index.html).

Alternatively, you can use SingleFile CLI to re-save the page, see https://github.com/gildas-lormeau/single-file-cli.

from singlefile.

eugenesvk avatar eugenesvk commented on June 29, 2024

That's the workaround I mentioned and use, but you lose profile (maybe you originally saved a zip which includes searchable text, but then on resaving used a different profile)

And even when using the same profile the saved file is slightly different, has a different number of files (besides those you delete, of course). Though maybe the 2nd part doesn't matter, it's just some js chunking and such that's performed differently

Is there maybe a way to "split" the saved file into pure zip and SingleFile's metadata so you could edit the zip as you like and later combine it with the metadata into your cool universal format?

from singlefile.

gildas-lormeau avatar gildas-lormeau commented on June 29, 2024

Right now, I agree that today manipulating a self-extracting file is very complicated, if not impossible (for universal files) with existing tools. It's technically possible to implement such a tool, but it requires a bit of work.

from singlefile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.