Skip to main content
2 of 9
added 72 characters in body
Dennis
  • 371
  • 1
  • 6

Vertically Resizable Textareas

##Code

// ==UserScript==
// @name        Stack Exchange: Vertically Resizable Textareas
// @description Makes Stack Exchange's textareas vertically resizable.
// @version     1.1
// @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://askubuntu.com/*
// @include     http://*.askubuntu.com/*
// @include     http://stackapps.com/*
// @include     http://*.stackapps.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 reenables it.

###License

I hereby release this script in the public domain.

###Download

Click here to install this script.

###Platform

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

Dennis
  • 371
  • 1
  • 6