MediaWiki:Vector.js

/* Any JavaScript here will be loaded for users using the Vector skin */

var userlinks = [];

$("#p-personal li").each(function {	userlinks.push({text: $("a", this).text, link: $("a", this).attr("href")}); });

$("#mw-page-base").before("    Forum   Wikis     "+userlinks[0].text+"</a> </li> </ul>   <a href='/wiki/Main_Page'>Main page</a> </li>  <a href='/wiki/Special:RecentChanges'>Recent changes</a> </li>  <a href='/wiki/Daniel%27s_Song_Race'>Daniel's Song Race</a> </li> </ul>  <a id='logo' href='/'><img src='https://static.miraheze.org/dsrwiki/b/bc/Wiki.png' alt='Daniel's Song Race Wiki' title='Daniel's Song Race Wiki'></a>  ");

userlinks.splice(0, 3); userlinks.forEach(function (userlink) {	$(".scf-user-dropdown-content").append("<a href='"+userlink.link+"'>"+userlink.text+"</a>"); });