Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Code

// ==UserScript==
// @name        Stack Exchange: Vertically Resizable Textareas
// @description Makes Stack Exchange's textareas vertically resizable.
// @version     1.2
// @include     http://stackoverflow.com/*
// @include     http://*.stackoverflow.com/*
// @include     http://serverfault.com/*
// @include     http://*.serverfault.com/*
// @include     http://superuser.com/*
// @include     http://*.superuser.com/*
// @include     http://stackexchange.com/*
// @include     http://*.stackexchange.com/*
// @include     http://stackapps.com/*
// @include     http://*.stackapps.com/*
// @include     http://askubuntu.com/*
// @include     http://*.askubuntu.com/*
// @include     http://answers.onstartups.com/*
// @include     http://*.answers.onstartups.com/*
// ==/UserScript==

var style = document.createElement("style");
style.appendChild(document.createTextNode("textarea{resize:vertical;}"));
document.head.appendChild(style);

About

As part of the CSS reset on January 11, 2012, resizing textareas was globally disabled on all Stack Exchange sites.

While this is definitely a good thing when it comes to horizontal resizing (since it breaks the layout), vertical resizing is useful for tiny textareas (such as the comment area). This user script re-enables it.

License

I hereby release this script in the public domain.

Download

Click here to install this script.

Platform

This user script has been tested in Google Chrome 16.0.912.7 and Mozilla Firefox 8.0 with Greasemonkey 0.9.13.

share|improve this question
add comment

You must log in to answer this question.

Browse other questions tagged .