Page 1 of 1
Send text to script
Posted: Tue Jul 13, 2010 10:13 am
by londy
I want to highlight a word and send that word in plain text to a script. Can I do that with Flashgot? I can do it with the clipboard but I'd rather do it with the Firefox context menu. Thanks.
Re: Send text to script
Posted: Tue Jul 13, 2010 3:45 pm
by therube
Unrelated to FlashGot but would something like this work for you?
Code: Select all
javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('Registry entry to find:',''))}if(Qr)location.href='reg:'+(Qr)
Don't know about anything of JavaScript, but appears it's the
document.getSelection() that will "capture" the highlighted text. (I then perform a <Windows> REGEDIT search on the selected text <which is presumably a registry key name, in my case>.)
Or are you speaking of a FlashGot Build Gallery JavaScript function?
Re: Send text to script
Posted: Tue Jul 13, 2010 5:21 pm
by londy
Sorry, I should've been more clear.
I'm using Linux openSuse 11.2 with KDE4.
I don't know anything about javascript. Currently, I can highlight a bunch of links in Firefox and then send them to my bash script via Flashgot. I'm trying to do the same thing except I want to just send plain text on any website. I can do it now from the KDE clipboard by pressing alt+x but I wanted the option to do it from right-click in FF.
Re: Send text to script
Posted: Tue Jul 13, 2010 8:06 pm
by Giorgio Maone
londy wrote: I want to just send plain text on any website.
No, FlashGot can't be used for that because it parses links only.