Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Why can't I save a web page as a text file?

  • 19 trả lời
  • 3 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi baltohome

more options

Until yesterday I was able to save a web page as a text file. Now, it will only save a web page as an html file even though the Format selected is text file. I am currently using Firefox 50.0.

Until yesterday I was able to save a web page as a text file. Now, it will only save a web page as an html file even though the Format selected is text file. I am currently using Firefox 50.0.

Tất cả các câu trả lời (19)

more options

Same problem with FF 50.0. I set format as "text files" but only get a html file. Url of article: http://www.nytimes.com/2016/11/17/technology/personaltech/encryption-privacy.html?src=me When I save as a text file, this is the result: Protecting Your Digital Life.html. Viewing the page info: type is text/html.

more options

If you switch the format selector to Web Page (either one) then back to Text, the file extension changes to .txt.

I don't know why that's happening, seems like a bug that the file extension isn't getting correctly assigned.

The content is the same either way -- text plus link addresses in < angle brackets >. It's not the true HTML code of the page, but it's also not limited to the visible text.

If you need to rename an already saved file from a .htm extension to a .txt extension, Windows makes that a little more difficult by hiding those extensions. You can switch that to showing all file extensions. See: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

If it's a problem on MacOS, perhaps there is a similar setting.

more options

Thanks for the suggestion. However, switching o the format selector to Web Page (either one) then back to Text, does not change the file extension to .txt. It appears as if the text format is just not recognized.

By the way, I am working on a Mac.

more options

Hi kokokiva, I don't have a Mac, so I can only offer a guess. What if you manually edit .htm to .txt before saving?

more options

I tried that but when the document saved it was still a .html file, my change was ignored. For now I am saving the page as an .html file and then opening the document in a text editor and saving the document as a ,txt file. This removes the images but preserves the formatting. Okay for one document, multiple documents are a pain.

Được chỉnh sửa bởi kokokiva vào

more options

Unfortunately, I don't know what changed or how to work with it.

As a workaround, what do you think about using a bookmarklet? That's a line of script which you save on your Bookmarks Toolbar or Bookmarks Menu so it's handy when you want to run it. I created a script to grab whatever text you have selected in a page and display it in a new tab where you can save it as a plain text file. (To select the entire page, use Command+a or on Windows Ctrl+a.)

Unfortunately, I wasn't able to figure out how to pre-fill a useful file name, so you'll have to type a name. I inserted the document title on the first line above the selection in case that helps.

You can install the bookmarklet from this page:

https://www.jeffersonscher.com/res/sumomarklets.html#PopSelection

If you try it, let me know what you think.

more options

I have a Mac and I am not able to insert ".txt" at the end of the file name before saving. See the message below when I tried to do that manuever:

You cannot save this document with extension “.txt” at the end of the name. The required extension is “.html”. You can choose to use both, so that the file name ends in ".txt.html".

Whereas before FF50 ".html" shown in the "save as" file window, which I could erase and then save as a text file, there is no extension visible. The default extension seems now to be "html".

more options

You described my problem perfectly!

more options

I poked around in the bug tracking system and the source code for the past hour and can't find any significant changes to how the "file picker" works that would cause it to return HTML to Firefox as your selection even when you selected Text.

As two possibly relevant data points:

Ruling Out Extensions

Could you test in Firefox's Safe Mode? In Safe Mode, Firefox temporarily deactivates extensions, hardware acceleration, and some other advanced features to help you assess whether these are causing the problem.

If Firefox is not running: Hold down the option/Alt key when starting Firefox. (On Windows, hold down the Shift key.)

If Firefox is running: You can restart Firefox in Safe Mode using either:

  • "3-bar" menu button > "?" button > Restart with Add-ons Disabled
  • Help menu > Restart with Add-ons Disabled

and OK the restart.

Both scenarios: A small dialog should appear. Click "Start in Safe Mode" (not Refresh).

Any improvement?

e10s = Multiprocess Firefox

One of the headline changes in Firefox 48+ is e10s, which separates the browser interface process from the page content process. More and more users are enrolled with each release, so you might not have started using it until Firefox 50. To discover add-on incompatibilities and internal cross-process glitches, the developers need feedback on any new problems that occur only with e10s enabled. (Link to file a new bug: https://bugzilla.mozilla.org/enter_bug.cgi)

Are you using e10s?

You can check whether you have this feature turned on as follows. Either:

  • "3-bar" menu button > "?" button > Troubleshooting Information
  • (menu bar) Help > Troubleshooting Information
  • type or paste about:support in the address bar and press Enter/Return

In the first table on the page, check the row for "Multiprocess Windows" and see whether the number on the left side of the fraction is greater than zero (e.g., 1/1). If so, you are using e10s.

If you are using e10s:

You could evaluate whether e10s is causing this problem by turning it off as follows:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste autos and pause while the list is filtered

(3) Double-click the browser.tabs.remote.autostart.2 preference to switch the value from true to false

Note: the exact name of the preference may vary, but it will start with browser.tabs.remote.autostart

At your next Firefox startup, it should run in the traditional way. Any difference?

more options

jscher2000:

I tried the first solution, restarting in safe mode with add-ons disabled. However, I get the same result: the default file saved is ".html".

I see that I am apparently using e10s: my numbers are 1/1. So I will now try the second solution. Will get back with results.

Thanks for the help.

more options

Okay, I tried the second solution: Double-click the browser.tabs.remote.autostart.2 preference to switch the value from true to false.

Unfortunately I get the same result: ".html" is the default file saved.

Using MacBook Pro: OS X 10.9.5

more options

Thanks for trying. I really appreciate it. As a temporary measure I have reverted back to Firefox 49.0.2 using Time Machine.

more options

Thanks for testing. It sounds like time to file a bug report.

https://bugzilla.mozilla.org/enter_bug.cgi

more options

I have filed a bug report: Bug 1320377.

Let's hope for a solution.

Thanks all.

more options

Thank you for filing the bug report.

The developers are actively working on it, and most likely you will be able to override the .html with a .txt extension manually (not sure if it will be possible to make it the default).

Code changes may take anywhere from six to eighteen weeks to actually come through. Since this change seems simple as I've described it, I don't think it will be on the shorter end, give or take a week or two for the holidays...

If you want to read the comments so far, the bug can be found on the following link: https://bugzilla.mozilla.org/show_bug.cgi?id=1320377. To anyone new to the bug, please refrain from adding "me too" or "hurry up" comments -- that doesn't help anyone. Bugzilla Etiquette

more options

Jscher2000,

I followed the discussion on Bugzilla and this issue seems to be resolved? However, one tester used Mac OS X 10.11.5 and Mac OS 10.12.1, which is above my current system.

There is an update for FF 50 being offered; am I too anxious to expect to be able to save files in ".txt"?

more options

Hi baltohome, it's unlikely that Firefox 50 will get that change, but I just added a comment asking about getting it into Firefox 51-52, since it looks unusually simple as changes go.

Được chỉnh sửa bởi jscher2000 - Support Volunteer vào

more options

Thanks for following up. I saw that in one response FF Nightly 53.0a1 was mentioned, so my hope for FF 50 was too optimistic. I guess that my expectations are a bit too high. Will be more patient.