4 ms·
I copy the images in my clipboard and save them in an HTML file to have single-file galleries: https://gist.github.com/egeozcan/b27e11a7e776972d18603222fa523ed
by egeozcan 2y ago
I copy the images in my clipboard and save them in an HTML file to have single-file galleries:
https://gist.github.com/egeozcan/b27e11a7e776972d18603222fa523ed4 https://gist.github.com/egeozcan/b27e11a7e776972d18603222fa5...
Live:
https://gistpreview.github.io/?b27e11a7e776972d18603222fa523ed4 https://gistpreview.github.io/?b27e11a7e776972d18603222fa523...
Selecting via file-picker works too. Dragging usually does not. When all works, images are inserted inline as blobs.
After adding images, if you save the page (literally file->save), the blobs are saved together. don't want a part when saving (for example, removing images)? inspect element, remove, save page.
throw the page on some server or just double click on your computer/mobile.
- joncfoo 2y agoThat is slick. Offline first in the truest sense.
- freetonik 2y agoThis is very cool, thank you for sharing.
- mikae1 2y agoLove it! True to the original vision of the WWW. Tim Berners-Lee's WorldWideWeb browser was also an editor. https://github.com/cadars/john-doe https://github.com/cadars/john-doe gives me the same feels.
- _giorgio_ 2y agoLOL
- thatcat 2y agoVery cool design! note if you can't get it to work, make sure you set file type to complete webpage when saving.
- simonw 2y agoThat's really neat! You could add a "Download this page" button on the page which does some tricks to produce an HTML file with the images baked in that the user can download, which could work on mobile. Here's a quick prototype: https://gistpreview.github.io/?14a2c3ef508839f26377707dbf5dd329 https://gistpreview.github.io/?14a2c3ef508839f26377707dbf5dd... - code here: https://gist.github.com/simonw/14a2c3ef508839f26377707dbf5dd329 https://gist.github.com/simonw/14a2c3ef508839f26377707dbf5dd...
- egeozcan 2y agoThank you! Great idea, I'll give it a try :)
- DemocracyFTW2 2y agoCan also recommend Single File browser extension https://github.com/gildas-lormeau/SingleFile-MV3 https://github.com/gildas-lormeau/SingleFile-MV3
- dmje 2y agoThanks for sharing! Mind: expanded