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

SingleFile and SingleFileZ both have problem when saving a webpage tool based on Bootstrap. #1446

Open
265785 opened this issue Apr 30, 2024 · 4 comments

Comments

@265785
Copy link

265785 commented Apr 30, 2024

Describe the bug
I want to save this webpage tool for offline use. Its format is based on Bootstrap:
https://wxlzmt.github.io/pages/simple/calc.html

Because I want to run the functions in the offline webpage, I unchecked all the blocked resources. However, the calculating function of this page don't work in the saved webpage.

0001

0002

Then I unchecked all the checkboxes that have word "remove" and saved the page, Though the function works, the webpage format becomes abnormal.

0002

0004

To Reproduce
Steps to reproduce the behavior:

  1. Reset SingleFile or SingleFileZ's Settings
  2. Go to https://wxlzmt.github.io/pages/simple/calc.html
  3. Change SingleFile or SingleFileZ's Settings like "Describe the bug"
  4. Save this webpage by SingleFile or SingleFileZ.
  5. Open the saved file.
  6. See error

Expected behavior

To reserve the webpage's original format and functions, only uncheck all the blocked resources is enough. This will do help to many pages based on Bootstrap. Thank you!

Environment

  • OS: Win11 Pro
  • Browser: Edge
  • Version: 124.0.2478.67

Additional context

  1. The webpage's function is simple, Its' only function is to divide two numbers into two coprime integers, and find the value of multiplying the two coprime integers by 1-any number. It can be used offline.

  2. The translation of this page in English is shown below:

0005

  1. The webpages are saved in InPrivate mode, No other extension block the saving process.
@265785 265785 changed the title SingleFile and SingleFileZ both have problem when saving a webpage tool based on bootstrap. SingleFile and SingleFileZ both have problem when saving a webpage tool based on Bootstrap. Apr 30, 2024
@gildas-lormeau
Copy link
Owner

Can you please try to enable the option HTML content > save raw page?

@265785
Copy link
Author

265785 commented Apr 30, 2024

I tried. But the situation become worse.
image

@gildas-lormeau
Copy link
Owner

gildas-lormeau commented Apr 30, 2024

It looks to work for me with HTML content > save raw page enabled (and the other options you mentioned) but the page displays two alerts and the form is not filled with the default values. However, it is functional.

@265785
Copy link
Author

265785 commented May 1, 2024

Your program is really great. I tried several other pages with offline scripts, most of them can be saved correctly with scripts inside, In the case of only unchecking the Network > block xxx with the default settings.
I wonder why this page cannot be saved normally, but I feel it is really a good example for you to improve your program.

Note: I tried your option again (Though it is relatively troublesome). The saved webpage's script can work, but the initial value is lost.

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