Repository navigation
Javascript doesn't work in a local (saved with SingleFile) version of a page #1903
|
Hi, I'm not sure if this is an SF bug, so I'm opening a discussion. On this page about a regex technique, https://www.rexegg.com/regex-best-trick.php, there are 9 clickable However if I save the page with SF and open the generated file in a browser (I tried Firefox 147.0.1 and Chrome 144.0.7559.59), clicking on the elements does nothing. For saving the page I used SingleFile v1.22.96 in a fresh Firefox 147.0.1 profile, and also made sure that in the SF options at "Network > blocked resources" What may be the problem here? |
Replies: 2 comments
|
Unchecking Network → blocked resources → scripts is one part of SingleFile's documented setup for interactive elements. Its FAQ also recommends trying these settings for this exact kind of folding content:
Then reload the original page, save it again, and test the new file. I can't confirm which of those is responsible for this particular page without inspecting the saved HTML. If it still fails, compare the first error in the saved page's browser console with the live page; that should distinguish a missing script from a script that runs but cannot find the hidden code elements. |
|
Thanks a lot for the elaborate answer, @slophisticated, unchecking "HTML Content -> remove hidden elements" solved the problem. Marking your reply as answer, and, I guess, the discussion can be closed. |
Unchecking Network → blocked resources → scripts is one part of SingleFile's documented setup for interactive elements. Its FAQ also recommends trying these settings for this exact kind of folding content:
Then reload the original page, save it again, and test the new file. I can't confirm which of those is responsible for this particular page without inspecting the saved HTML. If it still fails, compare the first error in the saved page's browser console with the live page; that should distinguish a missing script f…