// ==UserScript==
// @name          Geocities Frame Remover
// @description   Remove the sponsored links frame from Geocities pages
// @namespace     http://www.gozer.org/mozilla/greasemonkey/
// @include       http://www.geocities.com/*
// ==/UserScript==

(function() {
  var e = document.getElementById('FR');  // get the main frameset

  if(e) {
    var p = e.getElementsByTagName('frame');

    if(p && p.length == 3) {
      e.removeChild(p[2]);                // remove the ad and toggle frames.
      e.removeChild(p[1]);                // could just adjust the cols, but
                                          // might as well remove the uesless
                                          // content as well.

      e.setAttribute('cols', '*');        // adjust the frameset cols
    /*e.setAttribute('cols', '*,0,0');*/

      e.removeAttribute('id');            // remove the id so the frameset
                                          // cannot be found and adjusted
                                          // by any subscripts.
                                          // thanks ElZorro! :)
    }
  }
})();
