Created
July 2, 2013 05:10
-
-
Save angusdev/5906904 to your computer and use it in GitHub Desktop.
A bookmarklet to show all items of a drop down list. Click bookmarklet to activate then click on the drop down list will create a textarea to display all items. Click bookmarklet again to deactivate. Tested in Chrome/Firefox, doesn't work on IE6.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){if(window._bak_md){document.onmousedown=window._bak_md;window._bak_md=null;}else{window._bak_md=document.onmousedown||function(){};document.onmousedown=function(e){e=e||window.event;t=e.target;if(t.tagName=='SELECT'){x=document.createElement('textarea');for(i=0;i<t.options.length;i++)x.value+=((i>0?'\n':'')+t.options[i].textContent);t.parentNode.insertBefore(x,t);e.preventDefault();e.stopPropagation();}};}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment