User:AvicPublic/vector.js

$( function {   mw.util.addPortletLink( 'p-personal', "http://commons.wikimedia.org/wiki/Special:Random/File", 'Random File', 'pt-randomfile', 'Link to a random file on Commons', 'A', document.getElementById("pt-mycontris")); });