User:Citrusellaeditswikis/monobook.js

/* File link fix in template */ (function{   var link = $(".portable-infobox figure a")    if (link.length) {        $.each(link, function( index, value ) { $(this).attr("href","/File:"+$(value).find("img")[0].dataset.imageName) });   } });