I use the popular Firefox Greasemonkey extension.
I would like to know if there is a way to smooth out all text inputs in a specific form, so if I were using jQuery, the code would look something like this:
$('form#formid input[type=text]').capitalize();
Now, of course, I know that .capitalize()
not a valid function, and in order to extract the text, you will need complex JavaScript code, but after all Googling I could not find one that, it would seem, could be implemented in Greasemonkey.
Can someone help me write this script?
Using capitalization, I mean the first capital letter of each word, for example CSS text-transform:capitalize;
, and it should redefine the letters that the user can insert, perhaps it will be easier to do this in the submit form ...
Thanks.
source share