Skip to content

Instantly share code, notes, and snippets.

@SikhNerd
Created April 14, 2010 20:54
Show Gist options
  • Select an option

  • Save SikhNerd/366335 to your computer and use it in GitHub Desktop.

Select an option

Save SikhNerd/366335 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Redmine forum Sidebar remover
// @namespace http://redmine.org
// @description Makes the content area of the redmine forums full-width
// @include http://www.redmine.org/projects/redmine/boards/*
// @include http://www.redmine.org/projects/redmine/boards
// @include http://www.redmine.org/boards/*
// ==/UserScript==
// I use Adblock Plus along with this - if you don't block the giant sidebar advert things might look a little wonky
var css = new Array();
function writeStyle(css) {
var style = document.createElement('style');
style.type = 'text/css';
if (document.getElementsByTagName) {
document.getElementsByTagName('head')[0].appendChild(style);
if (style.sheet && style.sheet.insertRule) {
for (var i = 0; i < css.length; i++) {
style.sheet.insertRule(css[i], 0);
}
}
}
}
function addStyle(style) {
css[css.length] = style;
}
addStyle("#content { width: 98%; }");
writeStyle(css);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment