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

Save dom to file

more options

Is it possible to save the dom output without the use of any addons etc? Is there a config setting or any other option to easily "save as" and keep the dom output for offline viewing? Thanks

FF 54.0.1 (32-bit)

Is it possible to save the dom output without the use of any addons etc? Is there a config setting or any other option to easily "save as" and keep the dom output for offline viewing? Thanks FF 54.0.1 (32-bit)

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

more options

If you select the entire page (Ctrl+a), right-click, and View Selection Source, Firefox will open a new tab with the source of the page as modified by scripts (vs. the original source prior to DOM changes which is what you see when using Ctrl+u).

Is that what you had in mind, or something more structured?

more options

You can also look at the built-in developer tools like the Inspector. You can for instance use the left pane of the Inspector to copy the page code to the clipboard (select the HTML tag and open the right-click context menu: Edit HTML to get the current DOM).

more options

Now that you mention it, I remember the Inspector includes a feature to right-click any element, click Copy, then Outer HTML. Opening the Inspector and doing that on the <html> element probably is faster than my original suggestion.