Save Page WE-保存网页为HTML文件

annayy 生产工具插件815阅读模式

Save Page WE插件简介

Save Page WE是一款Chrome浏览器的插件,它能够将网页保存为MHTML文件或者HTML文件,并且支持保存Web页面的所有资源,包括HTML、CSS、JavaScript、图片等。Save Page WE 插件是一款非常实用的网页保存工具,能够帮助用户快速、方便地保存网页及其资源,并且支持自定义保存路径、批量保存等功能。

Save Page WE 插件功能:

保存网页:Save Page WE能够将当前网页保存为MHTML文件或者HTML文件,方便用户进行离线浏览。

保存网页资源:Save Page WE能够保存Web页面的所有资源,包括HTML、CSS、JavaScript、图片等,用户可以在本地进行离线浏览。

自定义保存路径:Save Page WE能够让用户自定义保存文件的路径和文件名,方便用户进行管理和查找。

支持批量保存:Save Page WE能够同时保存多个网页,方便用户进行批量处理。

支持快捷键:Save Page WE支持快捷键操作,方便用户进行快速保存网页。

Save Page WE-保存网页为HTML文件

Save Page WE 插件描述:

应用大小:92.22 KiB
版本:v 27.5
用户量:1000000
下载次数:1465000
更新时间:2021-12-21
评分:4.5

Save Page WE 插件下载:

关注“Chrome扩展网”公众号,输入“插件”根据提示,即可下载最新安装文件。
备注:这个插件不免费分享,象征性的收费1元,整理不易,还望理解,不包售后。

Save Page WE 插件安装流程:

(1)将下载的安装包文件(.zip)解压为文件夹,其中类型为“crx”的文件就是接下来需要用到的安装文件
(2) 从设置->更多工具->扩展程序 打开扩展程序页面,或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面
(3) 打开扩展程序页面的“开发者模式”
(4) 将crx文件拖拽到扩展程序页面,完成安装

Save Page WE 插件英文介绍

CHANGES

Version 27.5

• Minor bug fix.

OVERVIEW

Save Page WE provides a simple facility to save a web page (as currently displayed) as a single HTML file that can be opened in any browser. The saved page is a highly accurate representation of the original page. Multiple pages can be saved either by selecting multiple tabs or by loading a list of page URLs.

Save Page WE is implemented using the WebExtensions API and is available for both Firefox and Chrome with identical functions and user interfaces.

If used with Print Edit WE, Save Page WE now requires Print Edit WE 26.1 or later for full compatibility.

OPTIONS PAGE

The Save Page WE Options page can be accessed as follows:

• Firefox - Right-click on the toolbar button, select Manage Extension, click on the ••• button and select Options.

• Chrome - Right-click on the toolbar button, and then select Options.

TOOLBAR BUTTON

After installation of Save Page WE, there will be a new blue 'floppy-disk' button on the main toolbar.

To save the web pages in all of the currently selected tabs file, just click on the Save Page WE toolbar button.

There are options to set the button action as:

• Save Selected Tabs (Basic, Standard or Custom Items)
• Save Listed URLs (Basic, Standard or Custom Items)

There is an option to prompt the user to enter comments when saving the file.

There is an option to use the new save method, which can save more pages (see the 'Save Methods' section below).

There is an option to always show the 'Save As' dialog box when saving a page using the new save method. If this option is not enabled, the 'Save As' dialog box will only be shown if the Firefox 'Downloads' option is set to 'Always ask you where to save files'.

There is an option to delay the start of saving until several seconds after the initial page load event, which can be useful with pages that display delayed search results.

There is an option to close the tab after saving a page.

There are options to specify the format of the saved file name. See the 'Saved File Name' section below.

By default the saved HTML file will have a '.html' extension.

CONTEXT MENU & BUTTON MENU

To save a web page as an HTML file, or to perform operations on a previously saved page, right-click on the page contents to open the context menu, select the 'Save Page WE' sub-menu, and then select one of the menu items:

• Save Selected Tabs
- Basic, Standard or Custom Items
- Basic, Standard or Custom Items with or without Scroll/Shrink
• Save Listed URLs
- Basic, Standard or Custom Items
- Basic, Standard or Custom Items with or without Scroll/Shrink
• Cancel Save
• View Saved Page Info
• Remove Resource Loader
• Extract Image/Audio/Video

Alternatively, right-click on the Save Page WE toolbar button to open the button menu, and then select one of the menu items.

There is an option to show/hide the Save Page WE submenu item on the context menu.

Note, the 'Remove Resource Loader' menu item is only shown when viewing a page saved by Save Page WE 15.1 or earlier.

Note, the 'Extract Image/Audio/Video' menu item is only shown on the context menu when right-clicking on images in saved pages.

KEYBOARD SHORTCUTS

To save a web page as an HTML file, press Alt+A.

To cancel a single or multiple page save, press Alt+C.

These shortcuts can be reconfigured in the Shortcuts tab of the Save Page WE Options page.

SAVING MULTIPLE PAGES

There are two ways to save multiple pages:

• Highlight multiple tabs and then select the 'Save Selected Tabs' menu item.
• Load a file containing a list of URLs in the Zoom Page WE Options dialog and then select the 'Save Listed URLs' menu item.

When saving multiple pages, tabs are switched to foreground if the load lazy content option is enabled.

SAVED ITEMS

Save Basic Items - saves these items:

• HTML elements
• HTML image files (currently displayed)
• HTML canvas graphics
• CSS style sheets
• CSS image files (currently displayed)
• CSS font files (used by this browser)

Save Standard Items - saves the Basic Items and these items:

• HTML image files (all)
• HTML audio & video files
• HTML object & embed files
• CSS font files (woff for any browser)

Save Custom Items - saves the Basic Items and the items selected from this list:

• HTML image files (all)
• HTML audio & video files
• HTML object & embed files
• CSS image files (all)
• CSS font files (woff for any browser)
• CSS font files (all)
• Scripts (in same-origin frames)

Note, scripts in cross-origin frames are never saved.

There is an option to load lazy content using two alternative methods: Scroll Page or Shrink Page.

There is an option to load lazy images in existing content.

There is an option to retain cross-origin frames when saving the page. Note, cross-origin iframes often contain adverts or visitor comments.

There is an option to merge duplicate CSS images (to reduce the saved file size).

There is an option to allow saved scripts to execute (by default scripts are not allowed to execute).

There are options to remove or rehide elements hidden by the page itself or by other extensions, such as page editors (e.g Print Edit WE) or content blockers (e.g. uBlock Origin).

There is an option to include an information bar at the top of the saved page.

There is an option to include metrics and resource summary in the saved file.

There is an option to set the maximum depth of saved nested frames/iframes.

SAVED FILE NAME

There is an option to specify the format of the saved file name.

This format is used when saving the complete page and when extracting a resource (Image/Audio/Video).

The saved file name may contain the following predefined fields:

• %TITLE% - (saving page) the document title, or if missing same as %FILE%.
• %TITLE% - (extracting resource) the same as %FILE%.
• %DATE(x)% - saved date in YYYYxMMxDD format, 'x' is optional separator.
• %TIME(x)% - saved time in HHxMMxSS format, 'x' is optional separator.
• %DATEP(x)% - published date in YYYYxMMxDD format, 'x' is optional separator.
• %TIMEP(x)% - published time in HHxMMxSS format, 'x' is optional separator.
• %DATEPF(x)% - same as %DATEP(x)%, or if missing falls back to saved date.
• %TIMEPF(x)% - same as %TIMEP(x)%, or if missing falls back to saved time.
• %HOST% - host name in URL.
• %HOSTW% - same as %HOST%, but without 'www.' prefix.
• %PATH% - path name in URL.
• %PATHW% - same as %PATH%, but without '.extension' suffix.
• %FILE% - file name in the last segment of URL path.
• %FILEW% - same as %FILE%, but without '.extension' suffix.
• %QUERY(p)% - query string in URL if 'p' omitted, else value of parameter 'p'.
• %FRAGMENT% - fragment string in URL.

There are options to replace spaces in the saved file name with a user-defined character and to set the maximum length of the saved file name.

SAVE METHODS

Below are some important details about the new and old save methods.

Old Save Method:

• The default in Version 18.0 or earlier.
• Remembers the last save location in both Firefox and Chrome.
• Cannot save a few pages (e.g Yahoo) in Chrome 84 or later.
• In which case the save will fail without any error messages.
• Use the new save method for these pages.

New Save Method:

• The default in Version 19.0. Optional in Version 20.0 or later.
• Remembers the last save location in Firefox 78 or later, but not in Chrome.
• Can save all pages.
• Other download extensions may change the saved file name to a UUID.
• For example "9bd65c08-5f1c-491c-bf61-63d90638bf9e.html".
• In which case try uninstalling and reinstalling Save Page WE.
• Or use the old save method.

CONFIGURING FIREFOX

Go to Firefox Main Menu > Tools > Options > General.

In the Applications section, set the action for the 'Firefox HTML Document' content type:

• Always ask - the 'What should Firefox do with this file?' dialog box will be shown.
• Use Firefox - the saved file will be opened in Firefox.
• Save File - the action depends on the settings in the Downloads section.

In the Downloads section, set the 'Save files to' folder location, and enable or disable the 'Always ask you where to save files' option.

LOADING RESOURCES

There is an option to set the maximum time allowed for loading a Listed URL.

There is an option to set the maximum size allowed for large or repeatedly referenced resources.

There is an option to set the maximum time allowed for loading individual resources.

There is an option to allow loading of passive mixed content (image,audio,video).

There is an option to send a referer header when requesting a resource. The options are: do not send a refer header, send a referer header with origin only, or send a referer header with origin and path (origin only in private browsing).

UNSAVED RESOURCES

There is an option to show a warning if any resources cannot be saved.

There is an option to show a list of all resources that cannot be saved.

There is an option to remove URLs of unsaved resources, which avoids unsaved resources being loaded from the internet when the saved page is opened.

USING AUTOMATION

There is an option to use automation mode, allowing a page to be saved from the command line.

If this option is enabled:

• When Firefox starts, Save Page WE will be automatically initiated using the current Button Action.
• When the save operation is complete, Firefox will be automatically closed.

To exit automation mode, immediately after Firefox starts up, use the 'Cancel Save' menu command or keyboard shortcut to cancel the save operation, and then disable the option to use automation.

If the Button Action is set to Save Selected Tabs, then all tabs are saved when the use automation option is enabled.

The new saved method is always used when the use automation option is enabled.

SAVED FILE FORMAT

The HTML elements (as currently displayed) and all of the referenced resources are saved in a single file (.html).

External CSS style sheets are converted to internal CSS style sheets. Frame contents and external scripts are stored as UTF-8 data URIs in the 'src' attribute. Iframe contents are stored as UTF-8 text in the 'srcdoc' attribute.

All binary resources (images, fonts, audios, videos, etc) are stored as Base64 data URIs. CSS images referenced multiple times within a frame will only be stored once in that frame. CSS fonts and HTML images/audios/videos will be stored once for each reference.

Note that not all cross-origin frames can be saved. A cross-origin frame will be saved only if all of its cross-origin ancestor frames can run content scripts. Scripts in cross-origin frames are not saved.

There is an option to format the HTML source code in the saved file.

CONVERSION OF MAF AND UnMHT FILES (.maff & .mht)

It is not possible for Save Page WE to do an automatic conversion of a Mozilla Archive Format (.maff or .mht) file or an UnMHT (.mht) file into a Save Page WE (.html) file. Firefox WebExtensions add-ons, such as Save Page WE, are not allowed to read local files.

It is recommended to convert .maff/.mht files as follows:

• Open the saved .maff/.mht file in Firefox.
• Re-save as .htm file (+ resources folder) using Firefox’s “Save Page As...” (Web Page, complete).
• Serve the saved .htm file (+ resources folder) through a local web server and open in Firefox.
• Re-save using Save Page WE.

With regards to a local web server, it is suggested using a Google Chrome App called “Web Server for Chrome” available from the Chrome Web Store: https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb

Note that, using Firefox 56 and Mozilla Archive Format 5.2.0, it is possible to do a bulk conversion of .maff/.mht files to .htm files (+ resources folders), as described here: http://maf.mozdev.org/index.html.

SUPPORT

Please e-mail: dw-dev@gmx.com

LICENSE

Distributed under the GNU General Public License version 2.
See LICENCE

本站文章均为原创,版权归本站所有,如需转载或引用请注明出处

weinxin
我的微信
“Chrome扩展网”微信公众号
微信扫码关注公众号,回复“验证码”获取插件
annayy
  • 本文由 发表于 2023年4月17日 20:18:45
  • 转载请务必保留本文链接:https://www.chromekz.com/productivity/3404.html