Closed rhn closed 3 years ago
It's actually written in the help page (see below). The page saved is indeed the one displayed when you view the HTML source (option 1).
Check this option to save the page without interpreting JavaScript. Checking this option may alter the document.
Thanks. I was referring to that text indeed, when I meant that it's not clear (it was not selectable, or I'd have copied it). Could we come up with a better description? Here's my proposal:
This controls which version of the document will be used as the base for saving. When unchecked, it's the version as you see, rendered by your browser. When it's checked, it's the raw file that your browser received.
Is this about correct? I described it as if the current DOM tree was getting saved (so open UI elements would be saved open), but I'm not actually sure if that's true (rendering again would be more like 3., right?).
I updated the description. I had to adapt your suggestion to follow the way options are described in the options page.
This is something I realized while debugging https://github.com/gildas-lormeau/SingleFileZ/issues/87 : I have no idea whether the "save raw page" does what I want, or not.
In the general space of interpreting JS before saving, I'm seeing three general possibilities:
For me, only option 2. makes sense: I want the saved page to be searchable offline (using recoll), and to look the same way I saw it in the browser. For that, I disable scripts using uMatrix, and ask SingleFileZ to drop any scripts too. On top of that, I have a custom stylesheet added by Stylish to fix what was broken by missing JS.
But the explanation for "save raw page" is ambiguous. Turned on, it could mean either of the first two, and turned off it could mean any of the last two.
How is JS interpreted when "save raw page" is unchecked? It would be great if the explanation could be made more specific. If it's difficult, I can take in a longer explanation and try to condense it to something more accepable.