While browsing a webpage, I discovered a <div>
element with the class .plainMail
and I want to find a way to easily select all its text by simply pressing Ctrl+A.
Currently using Firefox 22, I am considering converting the div.plainMail
into a textarea. Any suggestions on how to accomplish this?
Update:
Is it possible to achieve this task using document.getElementsByClassName
? Because so far, I have been unsuccessful using document.getElementById
. I am utilizing GreaseMonkey for this purpose.