// ==UserScript==
// @name AddNext - Add more fast forward links
// @author Jordi Kroon 
// @namespace http://members.chello.nl/b.kroonspecker/opera/ 
// @version 1.1
// @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".
// ==/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);

