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
Able to autosave on tab discard, then close the discarded tab, then open the file saved by singlefile #703
Comments
|
Well, this is a very specific feature request... |
|
I am using Firefox. I am a heavy tab user and currently have around 300 tabs. The Auto Tab Discard extension greatly helped to reduce the cpu and ram consumption. However, a limitation of firefox tab discarding method is that whenever the discarded tab inadvertently gets focus, it is automatically reloaded. There is currently no way to prevent it which is very inconvenient. Related issue on bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1505960 Previously I used chrome with "The Great Suspender" extension. The extension provides an excellent feature in that before discarding a tab, it takes a snapshot of the whole page and displays it with scrollbar. The tab is reloaded only when the user clicks on the screenshot, thus preventing accidental reloads. I wish to imitate this behavior in firefox and so requested this feature. |
|
Thank you for the additional info. The use case is clearer for me :) In the scenario you described, the main problem is that it's impossible, from a technical point of view, to open the saved file in a tab. Extensions can't open tabs with However, I could implement the "autosave on tab discard", I think it makes sense anyway. |
|
Thank you! |
|
A suggestion: Since opening local files in not possible, instead of autosaving files on tab discard, we can instead redirect the tab to the blob url created by the singlefile. I downloaded your repo and tested this approach and it worked. After line 276 in download.js file, I added the line Thank you! |
|
@rftw The current version on github should fix your issue. SingleFile will still save pages though. |
Sorry for the late response. It is working as expected except that the original tab does not get closed. Screenshot of my settings: |
|
I confirm the "remove on discard" feature does not work as expected. |
|
Everything should work fine in the version 1.18.91. |
Working perfect! A minor request: In line 195 of autosave.js, can you add windowId property to This is because the |
|
Thank you for the feedback and the suggestion. The fix will be available in the next version. |

Is your feature request related to a problem? Please describe.
Currently it is possible to autosave on tab loading or unloading. I wish to autosave on tab discarding.
Describe the solution you'd like
Thank you!
The text was updated successfully, but these errors were encountered: