搜尋 Mozilla 技術支援網站

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

了解更多

how to change saving webpage using title of the page as name

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

more options

After the recent update, whenever I save a webpage it uses the title of the page as the default name to save the page as. I want to change that to using the filename as the default save name. Can anyone tell me the process to do that if available? Thanks.

After the recent update, whenever I save a webpage it uses the title of the page as the default name to save the page as. I want to change that to using the filename as the default save name. Can anyone tell me the process to do that if available? Thanks.

所有回覆 (6)

more options

I know that the PrefBar extension comes with a button to save the page with the name of the file. I don't know if there are others, but you can try a search on the Add-ons page.

more options

Still the same issue when I use the addon that you suggested. When I click on the Save Page button, it uses the title of the page as save name whereas I want to use the name of the html file as the save name. When I went into the edit option for "Save Page", it states saveDocument(window.content.document);

Do you know the code to change this to using html filename as the save name instead of the title of the page?

more options

You can try to set the page title to an empty string via a bookmarklet or via the Web Console (Firefox/Tools > Web Developer) to force using the file name.

  • javascript:void(document.title=);
more options

Thanks Edward27821 for replying. I did know about this method. Just time consuming to keep changing the filename. Wanted to know whether there is a way to set as default whenever you save a webpage to use the name of the hmtl file as the save name.

由 xionchen4628 於 修改

more options

Hi Cor-el. I got to the Web Console. Where do I need to put the line of code? Sorry for all the questions and thanks for taking the time to help.

more options

The Web Console has a command line at the bottom where you can enter commands after the prompt (>>).