// ==UserScript==
// @name           Alt to Title
// @namespace      http://eldar.cz/pub/firefox/
// @description    image.title=(title | )?(alt | )?filename
// @include        *
// ==/UserScript==

for ( var i = 0 ; i < document.images.length ; i++ ) {
 img = document.images[i] ;
// if ( !(img.parentNode.title && !img.title) ) {
  buf = [] ;
  if ( img.parentNode.title ) { buf.push( img.parentNode.title ) ; }
  if ( img.title ) { buf.push( img.title ) ; }
  if ( img.alt ) { buf.push( 'alt: ' + img.alt ) ; }
  buf.push( img.src.match( /[^/]+$/ ) ) ; // 'src: ' +
  img.title = buf.join( ' | ' ) ;
// }
}

