// EZTitles
// version 0.1 BETA!
// 15-12-2005
// Copyright (c) 2005, Rob Sharp
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.  To install it, you need
// Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "EZTitles", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          EZTitles
// @description   convert alt tags to title tabs on EZBoard
// @namespace     http://www.boringbutgood.com/blog/archive/greasemonkey/
// @include       *ezboard*
// ==/UserScript==

var images, img, alt;
images = document.evaluate(
    '//img[@alt]',
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i = 0; i < images.snapshotLength; i++) {
    img = images.snapshotItem(i);
//        GM_log('MAched on tstatus=wait')
    img.setAttribute('title', img.alt);
} 

