// ==UserScript==
// @name Next-sluggy: Enables FF on Sluggy Freelance
// @author Jordi Kroon 
// @namespace http://members.chello.nl/b.kroonspecker/opera/ 
// @version 1.0
// @description  Adds a next <link> tag for the "next" links at Sluggy Freelance
// ==/UserScript==

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

document.addEventListener('load',function(){
  if(location.hostname.match(/^www.sluggy.com$/)){
  var i=0, link, links=document.getElementsByTagName('a');
  while(link=links.item(i++)){
	if (/vcr2/i.test(link.innerHTML)) {
	  var head = document.getElementsByTagName('head')[0];
	  var next = document.createElement('link');
	  next.setAttribute('rel', 'next');
	  next.setAttribute('href', link.getAttribute('href'));
	  head.appendChild(next);
	  return; //to keep from adding multiple links
	}
  }}
},false);

