User:Kingpin13/common.js

function interwikiExtra { // iterate over all -elements for(var i=0; a=document.getElementsByTagName('span')[i]; i++) { // if found a linkInfo span if(a.className == 'interwiki-override') { var match = /(\d+)$/.exec(a.id); var skipped = parseInt(match[1]) - 1; // iterate over all -elements for(var j=0; b=document.getElementsByTagName('li')[j]; j++) { if (b.className == 'interwiki-' + a.id.replace(/\d+$/, "")) { if (skipped > 0) skipped = skipped - 1; else {				       	b.innerHTML = ''+'Old Wikisource'+''; break; }				}			}		}	} } $(interwikiExtra);