// ==UserScript==
// @name AddNext - Add more fast forward links
// @author Jordi Kroon 
// @namespace http://members.chello.nl/b.kroonspecker/opera/ 
// @version 1.0
// @description  Enables the Fast Forward feature in Opera on more
//			pages by adding alt="next" to images without
//			alt text when the URL of the image contains the
//			text "next".
// @ujs:category browser: enhancements
// @ujs:published 2005-06-22 16:05
// @ujs:modified 2005-09-19 09:19
// @ujs:documentation http://userjs.org/scripts/browser/enhancements/add-next 
// @ujs:download http://userjs.org/scripts/download/browser/enhancements/add-next.js
// ==/UserScript==


/* 
 * this script is licensed under CC-BY-NL 2.0:
 * http://creativecommons.org/licenses/by/2.0/nl/
 */

document.addEventListener('load',function(){
  var
    i=0,
    elm,
    aElms=document.getElementsByTagName('img');
  while(elm=aElms.item(i++)){
    if((!elm.alt) && (/next/i.test(elm.src))){
      elm.setAttribute('alt','next');
      return;
    }
  }
}, false);