View Single Post
  #4   (View Single Post)  
Old 13th October 2009
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

This is very much cut-and-paste-without-understanding, but it works.
Code:
// ==UserScript==
// @name           Daemonforms full Width
// @namespace      hark
// @include        http://www.daemonforums.org/*
// ==/UserScript==
function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('.MAINWIDTH { max-width: 100% ! important; } pre.alt2{ max-width: 100% ! important; } ');
OH, and CarpetSmoker: Sorry, I guess that did sound too snarky. I don't think I will be the only one to dislike it: One of the first posts on forums.freebsd.org was a greasemonkey script to set it to full-width! Hopefully, this thread will concentrate all those complaints, and get us curmudgeonly lusers to fix our own problems!
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.

Last edited by robbak; 13th October 2009 at 03:06 AM. Reason: add edit of pre.alt2 to set code boxes to full-width as well.
Reply With Quote