搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

View source of webpage in plain text (without formatting or links)

  • 2 回覆
  • 1 有這個問題
  • 7 次檢視
  • 最近回覆由 cor-el

more options

I love the view source option integrated into firefox, but often times I also like to view the source as a plain text. Up until Version 43, I could always just "view source" twice, and be in plain text mode. Granted, it cheesed the URL by adding view-source:view-source:http://webpage.com Now that Version 43 is out, this menu option is grayed out, and I am no longer able to view as a plain text without manually typing view-source: into the url.

I have downgraded back to 42 for the meantime, but I am curious as to how to choose in the options or about:config the option or choice to view source of html pages in plain text instead of the rich text with hyperlinks in a tab. Or how I can re-enable the view source twice option.

Best reguards

I love the view source option integrated into firefox, but often times I also like to view the source as a plain text. Up until Version 43, I could always just "view source" twice, and be in plain text mode. Granted, it cheesed the URL by adding view-source:view-source:http://webpage.com Now that Version 43 is out, this menu option is grayed out, and I am no longer able to view as a plain text without manually typing view-source: into the url. I have downgraded back to 42 for the meantime, but I am curious as to how to choose in the options or about:config the option or choice to view source of html pages in plain text instead of the rich text with hyperlinks in a tab. Or how I can re-enable the view source twice option. Best reguards

所有回覆 (2)

more options

There is a pref in about:config named view_source.tab that you can double-click to toggle to false to have the old Page Source window back.

That option probably won't be around too long; I suspect it is only a temporary pref.

https://support.mozilla.org/en-US/kb/about-config-editor-firefox

more options

You can disable highlighting and formatting via the right-click context menu if view_source.tab is true to view the source in a tab.

If you want to disable formatting links then you would have to set viewing the page source in a standalone window by setting view_source.tab to false on the about:config page and use the view-source: protocol to view the page source in a tab. Then you can right-click this page to view the source in a standalone window. View Page Source is only enabled in the right-click context menu when view_source.tab = false and toggling this pref is sufficient, so you could consider to use an extension like PrefBar to toggle the view_source.tab to pref to false to be able to view the not formatted page source and leave it normally at true.