Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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