scripts/greasemonkey/resize_and_spellcheck

18 lines
311 B
Plaintext
Raw Permalink Normal View History

2014-09-25 23:38:43 +02:00
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);
}
}