User:MTracey1/global.js

$(function {   if (wgPageName = "Special:WantedFiles") {        $('ol.special a.new').each(function(a) { var filename = this.href.substring(this.href.lastIndexOf(':') + 1, this.href.indexOf('&')); var link = '/wiki/Special:Upload?wpDestFile=' + filename; this.setAttribute('href', link); });   } });