SingleFile icon indicating copy to clipboard operation
SingleFile copied to clipboard

After removing javascript the page is not downloadable with "this page cannot be saved contains a sidebar experience"

Open ssuukk opened this issue 1 year ago • 10 comments

Describe the bug I have a few Medium posts stored on my filesystem. These posts can be archived using SingleFile, when I open them from Medium without any problem. The posts stored on my filesystem can't be opened normally, as there's something inside the page's script that prevents them from being displayed that way. So I just removed script from the HTML and the page can be displayed in my browser, but then it can't be archived using SingleFile, as it fails with: "this page cannot be saved contains a sidebar experience"

To Reproduce Steps to reproduce the behavior:

  1. Go to any paywalled Medium post
  2. Archive it with SingleFile - all works ok
  3. Save the post to your file system
  4. Remove script from the saved page, as it has some logic to prevent users from storing medium posts on their filesystems
  5. Open the stored page in your browser - it displays OK
  6. Archive it with SingleFile - "this page cannot be saved contains a sidebar experience"

Expected behavior The page is archived by SingleFile.

Screenshots

Environment

  • OS: Win 11
  • Browser: Chromium based
  • Version: Latest Brave, Latest Edge

Additional context

ssuukk avatar Jan 14 '25 15:01 ssuukk

Sorry for the very late reply, this bug is a bit strange because the error message "this page cannot be saved contains a sidebar experience" doesn't come from SingleFile. Can you confirm that this only happens with pages saved on Medium?

gildas-lormeau avatar Feb 06 '25 22:02 gildas-lormeau

You mean to Save any other page with JavaScript, remove JavaScript and try singlefile on it?

ssuukk avatar Feb 07 '25 05:02 ssuukk

... as there's something inside the page's script that prevents them from being displayed that way. So I just removed script from the HTML and the page

Can you give me more details about the script your remove from the page ? There shouldn't be any script in the page with the default settings.

gildas-lormeau avatar Feb 07 '25 10:02 gildas-lormeau

I can send you a whole saved page if you want, so you can see it for yourself.

pt., 7 lut 2025, 11:23 użytkownik Gildas @.***> napisał:

... as there's something inside the page's script that prevents them from being displayed that way. So I just removed script from the HTML and the page

Can you give me more details about the script your remove from the page ? There shouldn't be any script in the page with the default settings.

— Reply to this email directly, view it on GitHub https://github.com/gildas-lormeau/SingleFile/issues/1659#issuecomment-2642519904, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV3O6JES6DTU7YGDSYLXYL2OSCRVAVCNFSM6AAAAABVFFHIJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBSGUYTSOJQGQ . You are receiving this because you authored the thread.Message ID: @.***>

ssuukk avatar Feb 07 '25 20:02 ssuukk

The thing is the mentioned pages I saved some time ago using a browser, then I discovered one-file and tried to save these old saved pages with one-file, to do that I have first to display such saved page in a browser, but that requires striping the script, otherwise the script will show fake 404 to fool poor user the contents was not saved. After removing the script the contents get displayed, but onefile will complain about sidebar experience :D

pt., 7 lut 2025, 21:16 użytkownik Grdykopląs Namorzyn @.***> napisał:

I can send you a whole saved page if you want, so you can see it for yourself.

pt., 7 lut 2025, 11:23 użytkownik Gildas @.***> napisał:

... as there's something inside the page's script that prevents them from being displayed that way. So I just removed script from the HTML and the page

Can you give me more details about the script your remove from the page ? There shouldn't be any script in the page with the default settings.

— Reply to this email directly, view it on GitHub https://github.com/gildas-lormeau/SingleFile/issues/1659#issuecomment-2642519904, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV3O6JES6DTU7YGDSYLXYL2OSCRVAVCNFSM6AAAAABVFFHIJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBSGUYTSOJQGQ . You are receiving this because you authored the thread.Message ID: @.***>

ssuukk avatar Feb 07 '25 20:02 ssuukk

I see, maybe using the default settings in SingleFile but enabling "HTML Format > save raw page" could help you. Thus, you shouldn't need to remove scripts manually and the saved page should be hopefully OK.

gildas-lormeau avatar Feb 07 '25 21:02 gildas-lormeau

Hmm, nope. That doesn't help. Attaching an example page that fails to save.

On Fri, Feb 7, 2025 at 10:22 PM Gildas @.***> wrote:

I see, maybe using the default settings in SingleFile but enabling "HTML Format > save raw page" could help you. Thus, you shouldn't need to remove scripts manually and the saved page should be hopefully OK.

— Reply to this email directly, view it on GitHub https://github.com/gildas-lormeau/SingleFile/issues/1659#issuecomment-2644152454, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV3O6KK4UJFHV7LSF5ITDL2OUP2FAVCNFSM6AAAAABVFFHIJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBUGE2TENBVGQ . You are receiving this because you authored the thread.Message ID: @.***>

--

XenoAmp - a media player with a difference • Demo on [image: YouTube] YouTube https://www.youtube.com/watch?v=DnuQzpIodto • Get it ftom Google Play https://play.google.com/store/apps/details?id=pl.qus.xenoamp • Folow it on Twitter https://twitter.com/XenoAmpMusic • Report bugs to XDA Thread http://forum.xda-developers.com/showthread.php?t=1822492

[image: XenoBanner]

ssuukk avatar Feb 22 '25 09:02 ssuukk

You cannot send attached files via emails, you must unfortunately go to github.com.

gildas-lormeau avatar Feb 22 '25 09:02 gildas-lormeau

Medium_original.zip Medium_stripped_JS.zip

Hmm, ok - if you want to take a look...

ssuukk avatar Feb 22 '25 12:02 ssuukk

I know it's a bit late but I suspect you did not install the extension from the Edge store actually, see https://microsoftedge.microsoft.com/addons/detail/singlefile/efnbkdcfmcmnhlkaijjjmhjjgladedno.

gildas-lormeau avatar Jun 02 '25 13:06 gildas-lormeau