首页 扩展程序 Print Edit WE

Print Edit WE

提供方: DW-dev
205
生产工具 39,102 位用户

插件简介

Edit web pages prior to printing. Delete, hide and format elements. Edit text. Remove adverts and sidebars.
CHANGES

Version 23.2
• New option to allow Inspect while Format panel is open.
• Removed options to specify MHTML file name prefix and suffix.
• Option to specify MHTML file name using text and/or predefined fields.
• Option to replace spaces in MHTML file name with user-defined character.
• New predefined fields: %TITLE%, %PATH% and %FILE%.
• Existing predefined field %DOMAIN% renamed %HOST%.
• Minor bug fixes.

Version 23.3
• Fixes highlighting of menu items on Tools dropdown menu.
• Improves compatibility with Web Developer add-on.

OVERVIEW

Print Edit WE provides facilities to edit the contents of a web page prior to printing or saving as HTML or MHTML. Elements in the web page can be formatted, hidden or deleted and text can be edited or inserted. Unwanted content, such as adverts and sidebars, can easily be removed.

Print Edit WE is the successor to the well established Print Edit add-on. Print Edit WE is implemented using the new WebExtensions API and is available for both Firefox and Chrome with identical functions and user interfaces.

BASIC OPERATION

To start editing the page, click on the Print Edit WE button on the main toolbar, or select Print Edit WE > Print Edit on the context menu. A blue 'EDIT' (editing) badge will appear on the button.

The 'Web Style' feature is disabled by default, so that the page displayed looks similar to how the page would look if printed normally. When the 'Web Style' feature is enabled, the page displayed will look similar to how the page looks during normal browsing.

The 'Text Pieces' feature is disabled by default, so that only whole blocks of text can be selected. When the 'Text Pieces' feature is enabled, individual pieces of text can be selected and edited and line breaks are displayed.

An edited web page can be saved as a single HTML file, which can be viewed or re-edited using Firefox or Chrome. An edited web page can also be saved as a MHTML file.

Click the 'Preview' button to see how the edited web page will look when printed. Close the preview window to return to editing.

There are options to:

• default to enabling selection of Text Pieces on entry.
• default to enabling display with Web Style on entry.
• not ask the user about saving edits when closing an edited web page.
• ask the user about leaving an edited web page only if the edits are not saved.

OPTIONS PAGE

The Print Edit WE Options page can be accessed as follows:

• Firefox - On the menu bar select Tools > Add-ons (or press Ctrl+Shift+A), select the Extensions tab, and then click on the Options button.

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

TOOLBAR BUTTON

After installation of Print Edit WE, there will be a new grey and blue 'printer-pencil' button on the main toolbar.

If Print Edit WE cannot be used with the current page, the toolbar button will be disabled (greyed-out).

To start editing the page, click on the Print Edit WE toolbar button and a blue editing 'EDIT' (editing) badge will appear.

To suspend editing, click on the Print Edit WE toolbar button again, and a red 'SUS' (suspended) badge will appear. To resume editing, click on the Print Edit WE toolbar button again.

CONTEXT MENU & BUTTON MENU

To start editing the page, right-click on the page contents to open the context menu, select the Print Edit WE sub-menu, and then select the 'Print Edit' menu item.

As an alternative to using the context menu, right-click on the Print Edit WE toolbar button and use the button menu.

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

PRINT EDIT WE TOOLBAR

The buttons available on the Print Edit WE toolbar are:

• Select - select all elements or all graphic elements, or re-select elements from previous command.
• Deselect - deselect all currently selected elements.
• Hide - hide currently selected elements.
• Delete - delete currently selected elements.
• Hide Except - hide all elements except those currently selected.
• Delete Except - delete all elements except those currently selected.
• Format - apply format properties to currently selected elements.
• Text - edit a text piece or insert new text before or after element.
• Undo - undo the action of previous edit command.
• Undo All - undo the actions of all previous edit commands.
• Save - save web page as a single HTML or MHTML file.
• Text Pieces - allow selection and editing of individual text pieces.
• Web Style - alternately remove or apply CSS print stylesheets.

• Preview - open the Print Preview window.
• Close - finish editing.

• Help - show the Help panel.
• Tools- access to the Fix Page Breaks feature and the Options dialog.

KEYBOARD SHORTCUTS

To initiate Print Edit, press Alt+P. To initiate Print Preview when not editing a web page, press Alt+Shift+P.

Each button or menu item on the Print Edit WE toolbar has a keyboard shortcut, which is the letter that is underlined in the name of the button or menu item.

The other keyboard shortcuts are:

• ] - deselect all elements.
• [ - select previously selected elements.
• # - apply page breaks before selected elements.
• Up - expand highlight box.
• Down - shrink highlight box.
• Enter - select or deselect highlighted element.
• Insert - hide selected elements.
• Delete - delete selected elements.
• Backspace - undo previous edit command.
• Escape - close panel or menu - or close Print Preview window
• Ctrl+A - select all elements.
• Crtl+P - open Print Preview window.
• Ctrl+S - save web page as a single HTML file.
• Ctrl+Z - undo previous edit command.

MOUSE ACTIONS

The mouse actions are:

• Move - move highlight box to highlight element.
• Click - select or deselect highlighted element.
• Right-Click - inspect format properties for highlighted element.
• Drag - select all elements within capture box.
• Shift+Drag - select all graphic elements within capture box.
• Ctrl+Drag - deselect all elements within capture box.

HIGHLIGHT BOX

The highlight box (solid border) is positioned over an element by moving the mouse over the element. If necessary, the position of the highlight box can be adjusted using the Expand (Up Arrow) and Shrink (Down Arrow) keys. The element is then selected by clicking the mouse or by pressing the Select (Enter) key.

The position of the highlight box can also be adjusted and the element selected using the Expand, Shrink and Select buttons in the Inspect panel.

SELECTING ELEMENTS

An individual element is selected by moving the mouse, so that the highlight box (solid border) is positioned over the element, and then clicking the mouse (or pressing Enter). The highlight box then changes to a selection box (dashed border). Any number of elements can be selected, one after another, before applying an edit command.

Any selected element can be deselected by moving the mouse, so that the highlight box (solid border) is positioned over the selected element, and then clicking the mouse (or pressing Enter). The selection box (dashed border) then disappears.

Multiple elements can be selected together by dragging the mouse to draw a rectangular capture area which encloses the elements. When the mouse is released, all of the elements within the capture area are selected. To select just graphic elements, hold down the Shift key when dragging the mouse.

To deselet multiple elements, hold down the the Ctrl key when dragging the mouse.

If the start point of the capture area is within a or