Save a page on [re]load? #1583
Replies: 3 comments
-
Are you using SingleFile as an extension or as a CLI tool? |
Beta Was this translation helpful? Give feedback.
-
No, sorry. Posted this in the wrong project (feel free to move this issue if you can). I have taken note of Auto-save>Autosave this tab though and that's almost exactly what I want. Well, it's what I want and I can work with it as it is if need be. 😄 The only issue I have is all of the HTML metadata wrapping of the page's contents. In my case, the page content-type is <html><!--
Page saved with SingleFile
url: https://[redacted]/api/accounts/summary
saved date: Fri Oct 04 2024 14:45:19 GMT-0400 (Eastern Daylight Time)
--><meta charset=utf-8><meta name=color-scheme content="light dark"><meta name=referrer content=no-referrer><link type=image/x-icon rel="shortcut icon" href="…"><link rel=canonical href=https://[redacted]/api/accounts/summary><meta http-equiv=content-security-policy content="default-src 'none'; font-src 'self' data:; img-src 'self' data:; style-src 'unsafe-inline'; media-src 'self' data:; script-src 'unsafe-inline' data:; object-src 'self' data:; frame-src 'self' data:;"><style>img[src="data:,"],source[src="data:,"]{display:none!important}</style><body style=zoom:1><span id=warning-container></span><pre>{[redacted JSON]}</pre><div class=json-formatter-container></div> wrapping would be most ideal. |
Beta Was this translation helpful? Give feedback.
-
You could clean up the page by executing a userscript (see https://github.com/gildas-lormeau/SingleFile/wiki/How-to-execute-a-user-script-before-a-page-is-saved) before the page is saved. In that case, maybe running EDIT: it will produce an HTML document actually (instead of a JSON content) |
Beta Was this translation helpful? Give feedback.
-
Let's say I have a browser open and an extension (for example) on a page is reloading it every 60 seconds.
Is there any way to get this extension to save the page on each reload?
Beta Was this translation helpful? Give feedback.
All reactions