Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

搜尋 Mozilla 技術支援網站

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

了解更多

Please add a source reference (as an HTML comment) to saved HTML pages like IE and Chrome do.

more options

When downloading (saving) an HTML page currently there is no reference to a source URL, where the page originally resides. It is often important to have this URL. IE and Chrome add comment somewhere at the top of the saved HTML document. Currently Firefox does not. It would be nice to have this feature in Firefox.

When downloading (saving) an HTML page currently there is no reference to a source URL, where the page originally resides. It is often important to have this URL. IE and Chrome add <!-- Saved from: ... --> comment somewhere at the top of the saved HTML document. Currently Firefox does not. It would be nice to have this feature in Firefox.

所有回覆 (1)

more options

Hi Michael, I wonder why Firefox didn't follow the way IE did it?

As a short-term workaround, you could use a little script to inject a canonical tag into the document. This may be a little harder to spot than a comment, but is a common way to indicate the URL of the authoritative version of a page.

So in the case of this page, that is:

<link rel="canonical" href="https://support.mozilla.org/en-US/questions/1285493" />

As an example of code to insert that tag (which you can run in Firefox's Web Console):

var c = document.createElement('link');
c.setAttribute('rel', 'canonical');
c.setAttribute('href', location.href);
document.getElementsByTagName('head')[0].appendChild(c);

If you save pages frequently, it would be more convenient to have a one-click method of inserting it, such as a bookmarklet. If it were earlier in the evening I would post one...

- - - - - - -

More generally: here in support new product ideas tend to get lost. You can submit feature suggestions using any of the following, depending on your desired style of interaction.

Discussion Sites/Advocacy

Limited Length Comments

由 jscher2000 - Support Volunteer 於 修改