MediaWiki:Common.js/SnippetsAll.js

/* Special:Random > Special:Random/main, By User:Porter21 */ $(function {   if (skin == "oasis" || skin == "wikia") {        $('ul.subnav-2.accent li a[href="/wiki/Special:Random"]').attr('href', '/wiki/Special:Random/main');    } });

/** * Replaces with the name of the user browsing the page. * For usage with Template:USERNAME. */ $(function {    if (!wgUserName) return;    $('span.insertusername').html(wgUserName); });