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> <ul id='local-navigation'>  <a href='/wiki/Main_Page'>Main page</a> </li>  <a href='/wiki/Special:RecentChanges'>Recent changes</a> </li>  <a href='/wiki/Fantasia_Contest'>Fantasia Contest</a> </li> </ul>  <a id='logo' href='/'><img src='https://static.miraheze.org/fantasiacontestwiki/b/bc/Wiki.png' alt='Fantasipedia' title='Fantasipedia'></a>  ");

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