User:Hangsna/common.js

jQuery( function { jQuery( 'a.image img' ).filter( 'img[src*="upload.wikimedia.org/wikipedia/commons"]' ).parent    .attr( 'href', function( i, val ) { return val.replace( "/wiki/File:", "//commons.wikimedia.org/wiki/File:" ).replace( "/w/index.php?title=File:", "//commons.wikimedia.org/w/index.php?title=File:" ); }); });