|
Script Summary:
Quick access to some search services after click-n-holding the left mouse button for 0.6 sec |
this script has 1 topic, 2 posts |
this script has 1 review |
||||||||||||||||||||||
First: I don't know what is it good for. Seemed like a good idea, so I did it.
The searching services are hard-coded, but simple to change. Besides, i cannot figure out how to make different ways to build the requests simply configurable. At to moment implemented are: Google (also restricted to the site), Wikipedia(en), Wolfram|Alpha, Wiktionary(en), Google Translate (auto-detect to English), and Google Docs (if held over a link).
Click-n-holding on a link will use the link text contents (doesn't work on image links yet), the link target is copied. If a plain text of the selection looks like a link, a small "[Link]" A-tag is inserted before the text in the popup, with href containing the selection contents. Useful for links as text.
Clicking on search services icons will open a new window, as well as clicking on a copied link. Useful for laptop touchpads, btw (to avoid using Ctrl/Shift/Alt while reading in bed).
The text of the selection used to access the services stays on the screen, sticking to the absolute document position. The text can be moved and resized. This functionality is implemented badly, at the moment. Anyone knows how to *really* cancel mouse event propagation to stop the text selection mode?
Also, drag-n-dropping a link confuses the scripts timers, and new notes get created spontaneously.
Almost works in Google Chrome (click-n-holding over a link doesn't work, for reasons undiscovered).





