搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 2 个回答
  • 1 人有此问题
  • 9 次查看
  • 最后回复者为 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.