kittyfluff / gaia readable font forum

// ==UserScript==
// @name gaia readable font forum
// @namespace kittyfluff
// @version 0.1
// @match *.gaiaonline.com/forum/*
// ==/UserScript==

// changes all forums post to black color, min 12px font size~

var postBox = document.getElementById("post_container"), // a**uming topic is opened
    allSpans = [];

if (! postBox) {
  postBox = document.getElementsByClassName("forum-list cgeneric");
  if (postBox.length) { // mypost-page is opened
    postBox = postBox[0];
  }
  else {
    return false;
  }        
}
if (postBox) {
  allSpans = postBox.getElementsByTagName("span");
  for (var item = 0; item < allSpans.length; item++) {
    allSpans[item].style.color = "#000000";
    if (parseInt(allSpans[item].style.fontSize, 10) < 12) {
      allSpans[item].style.fontSize = "12px";
    } // enlarge small font
  }
}