firefox-scrapbook icon indicating copy to clipboard operation
firefox-scrapbook copied to clipboard

Capture Selection to New Tab

Open bytos opened this issue 7 years ago • 4 comments

In the past I was able to capture a selection from a webpage and open it in a new tab for further editing.

Many times it is easier to clean a webpage by selecting what to save instead of deleting lots of unwanted elements.

I can't remember the function(s) I used from the XUL file, but I assigned it to a key for easy access.

sbPageEditor.saveOrCapture(1)

bytos avatar Apr 30 '17 14:04 bytos

We'll consider about this feature, but we are unlikely to add it since basically we can capture the web page and then open if in a new tab manually.

danny0838 avatar May 17 '17 03:05 danny0838

This is something I used to do in the past, could it be that I was using Scrapbook instead of ScrapbookX?

bytos avatar May 17 '17 12:05 bytos

AFAIK, ScrapBook does not support hotkey customization.

danny0838 avatar May 17 '17 13:05 danny0838

Never used the ScrapBook capture to disk functionality because it's a bit complicated (additional step and dialog window) compared to UnMHT's "Quick Save selection" context menu.

I used ScrapBook* with keyconfig (now Dorando keyconfig) to assign the function to a key after reading this article:

Creating a shortcut to ScrapBook highlight operations with the Keyconfig extension http://www.fsavard.com/flow/2008/07/firefox-creating-a-shortcut-to-scrapbook-highlight-operations-with-the-keyconfig-extension/

"Here is the code for a shortcut key for capturing a selection as …" sbBrowserOverlay.execCapture(1, true , true , event.originalTarget.id)

".. the event.originalTarget.id being xxx_key1_Scrapbook_save and not the original menu item?"

"Use sbPageEditor.saveOrCapture(1) if you don’t want the pop up." "It’ll just save it into the default location with default settings. At least it works with ScrapBookPlus."

bytos avatar May 28 '17 16:05 bytos