// ==UserScript==
// @name           GamerDNAPointFonts
// @namespace      http://tekhedd.com/greasemonkey
// @description    This inserts CSS into GamerDNA.com, which makes fonts use points instead of pixels for sizing. This makes the fonts visible by humans over the age of 12 on modern monitors. You can edit the script to adjust the size, if you like. V1.2
// @include        http://gamerdna.com/*
// @include        http://*.gamerdna.com/*
// ==/UserScript==

// If I was clever, I'd convert from pixels to what I think the desired
// point size is automagically. But I'm not, so just edit this
// stylesheet to suit your taste. I sure hope it's self-explanatory!

var overrides = 'body { font-size: 11pt; }'
+ ' ul { font-size: 10pt; }'
+ ' .smallfont { font-size: 10pt; }'
+ ' .experience { font-size: 10.5pt; }'
+ ' .vbmenu_control { font-size: 10pt; }'
+ ' .alt1, .alt1active, .alt2, .alt2active { padding: 0.42em; }'
;

function insertStyle(css) {
   var head;
   head = document.getElementsByTagName('head')[0];
   if (!head)
   {
      GM_log( 'head not found' );
      return;
   }

   // Insert override style here:
   // Our style comes last, so it overrides most included styles at this time.

   style = document.createElement('style');
   style.type = 'text/css';
   style.innerHTML = css;
   head.appendChild(style);
}

insertStyle(overrides);

