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?
33 Answers
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.
4There is a free add-on for Google Chrome that serves exactly this purpose.
2For anyone who stumbles across this problem, you can right click on the dropdown, and Inspect Element. Right click on the selector and choose "copy inner html". Open up Microsoft Word and paste your contents in. Select All and Go to Table -> Convert -> Convert Text-to-table (or Insert -> Table ->Convert Text-to-table). 3 Columns, and choose " as the delimiter - this will give you the option value in its own column. Select the column with your text, paste into a new Word doc, then go to Table -> Convert -> Convert Table to text (or Layout -> convert table to text). Separate Text with Paragraph Marks worked for me.
You can mess around with it if you need the actual dropdown text- it just takes some extra steps if your delimiter is different.