firefox-scrapbook
firefox-scrapbook copied to clipboard
Capture Selection to New Tab
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)
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.
This is something I used to do in the past, could it be that I was using Scrapbook instead of ScrapbookX?
AFAIK, ScrapBook does not support hotkey customization.
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
beingxxx_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."