Skip to content
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

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

Open
ssuukk opened this issue Jan 14, 2025 · 6 comments

Comments

@ssuukk
Copy link

ssuukk commented Jan 14, 2025

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

@gildas-lormeau
Copy link
Owner

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?

@ssuukk
Copy link
Author

ssuukk commented Feb 7, 2025

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

@gildas-lormeau
Copy link
Owner

... 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.

@ssuukk
Copy link
Author

ssuukk commented Feb 7, 2025 via email

@ssuukk
Copy link
Author

ssuukk commented Feb 7, 2025 via email

@gildas-lormeau
Copy link
Owner

gildas-lormeau commented Feb 7, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants