scripts/greasemonkey/resize_and_spellcheck

18 lines
311 B
Plaintext

var txtarea = document.getElementsByTagName('textarea');
for (var i = 0, n = txtarea.length; i < n; i++) {
if (txtarea[i].style.resize == 'none') {
txtarea[i].style.resize = 'both';
}
if (txtarea[i].getAttribute('spellcheck') == false) {
txtarea[i].setAttribute('spellcheck', true);
}
}