Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a tool that surely must exist somewhere...

There's a dropdown list on a webpage with numerous values in it. I simply want to copy these values into the Windows clipboard and paste them into a text editor with one value per line.

Am aware this can be done using Firebug followed by a bit of complex search-and-replacing or alternatively perhaps a few lines of Javascript but there must surely be an easier way using a couple of clicks of the mouse. Don't want to reinvent the wheel!

Has anyone come across a Firefox Extension, Greasemonkey User Script or similar that already does this?

share|improve this question
    
Also see: Copy data from "SELECT Multiple" Selection Box. –  Karan Mar 27 '13 at 13:00

1 Answer 1

I don't know about a script, and it may be a bit more work than you're interested in, but you can select the object and hit "Inspect Element" which will tell you where the dropdown is in the code. Then, right click on the "select" area that is the dropdown, and hit "copy as HTML". Then you can paste it to a text editor of your choice. It will require some manual cleanup.

This is by no means an optimal solution. But it is the best I have at hand.

share|improve this answer
    
Yes - that was the kind of thing I meant by "using Firebug followed by a bit of complex search-and-replacing". The search-and-replacing ain't trivial but I've just worked out it can be done using the following regular expression in Notepad++: \s*</?option.*?> Bit fiddly but the best I've got so far so thanks. –  Steve Chambers Mar 26 '13 at 15:29
    
I know it is, bu no means an optimal answer. But since I have plenty of time on my hands, sometimes the sub-optimal solutions are "enough". Would be nice to have something more integrated. But, then I'd probably rarely use it, making it something that might not be worth the time to install it. –  killermist Mar 26 '13 at 15:34
    
+1. I don't think there is faster solution. Actually "inspect element", copy HTML, then replace the html tags with empty string => effectively leaving only the values requires less than a minute. –  Magnum Mar 26 '13 at 17:28
    
Less than a minute's good and the best I've got so far...still think a few seconds would be better. –  Steve Chambers Mar 27 '13 at 20:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.