-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not file:/// URLs? #7
Comments
I would find this useful also, I have a bunch of pages I saved in the conventional way, some of which are no longer available, and want to use this extension to archive them in a neater fashion. |
Thumbs up for this feature request! |
Actually it's not a security reason. It's because SingleFile relies on XMLHttpRequest API to get embedded external resources (stylesheets, images...) data. There is an issue with this API on Chrome: it does not work on file:// URLs so SingleFile cannot process the page. |
It's clear. |
So it cannot, and will not be done? Or will it work when the Chrome API works? |
It will work when the Chrome API will work but I'm not sure this Chrome bug will be fixed soon (the bug was opened 2 years ago)... SingleFile will also need a new permission for file:// URL access which will have to be approved by Google. |
Single File will save a http://localhost url, so if you set up IIS (http://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/) and put your html page + folder in C:\inetpub\wwwroot, you can save the webpage with Single File (enter http://localhost/your-html-file.html in Chrome) |
Thanks @marsupilam1, that's the exact workaround I have now. It's a pain to get (and keep) IIS working though. I've been tempted to install Apache instead. |
@marsupilam1 @kenahoo You're right, that's the only workaround I know to solve this issue. I should have documented it somewhere... |
@kenahoo I have not had any problems with keeping IIS working, but I found that in some programs - like evernote - I could not save to wwwroot because of lack of administrative rights. A solution to this problem can be found here: http://www.alltechtalk.net/forum/thread-bypass-windows-8-uac-while-keeping-metro . Finally I can clip with Evernote, export compilations of snippets to wwwroot, and save it as a single html file with Chrome :) |
@kenahoo So what happened if you set allowing to access file directory at chrome://extensions page? |
So, the convenient workaround is:
|
upd Former-commit-id: 7073f1f
Included reference to gildas-lormeau#7 (comment) which is a convenient workaround for the issue that one cannot otherwise use SingleFile properly on local html files.
The suggested workaround is considerably useful.
|
@Antiwhore You need to rewrite absolute URLs found in the page into relative URLs. |
I just tried it out. Worked like a charm. Steps:
Firefox version 109.0.1 |
@Antiwhore I apologize for trying to help you and for providing you with a tool that does not suit you. |
Come on, if you really want help be constructive and actually provide information. Just being rude won't solve your issue. |
I don't think you can host WebArchive files on Mac with the HTTP server (they just download). What I've done is use https://github.com/gonejack/webarchive-to-html to convert them to HTML, then locally host the HTML using |
Hello. |
Updated Chinese translation
I see in the Known Issues for SingleFile that
file:///
URLs cannot be processed for security reasons. I'm curious about those reasons - how would it give me access to things I wouldn't already have access to?I was hoping to use SingleFile to make periodic local archives of some web pages created with Org Mode, but they don't exist on a server anywhere.
The text was updated successfully, but these errors were encountered: