MediaWiki:AvatarLink.js

/** * AvatarLink * Makes it where clicking your avatar goes to your userpage * @Author Mario&LuigiBowser'sInsideStory document.querySelector('.wds-avatar__image').addEventListener('click', function {   window.location.href = "/wiki/User:" + mw.config.get('wgUserName'); });