User:Westgrass/common.js

$(document).ready(function {   var wikitextbox = $('#wpTextbox1');    if(wikitextbox.length){        wikitextbox.attr('rows', 25); // default is 25, changes to the number you want.    } });

$(window).on('load', function{

//main page header. var $btn = $('#box-wikiheader #box-wikiheader-toggle-link'); if($btn.length){ var $box = $('#box-wikiheader'); $btn.css('display', 'inline'); if($box.innerHeight > 180){ $box.addClass('collapsed'); }     $btn.on('click', function{         $box.toggleClass('collapsed');      }); }

});