User:Servian/wikia.js

/* Adding the following CSS support is recommended for WikiActivity2RecentChanges... /- Widen area for Random Page and Wiki Activity buttons -/ .WikiHeader .buttons { width: 290px; }

function WikiActivity2RecentChanges { $('a.wikia-button[data-id$="wikiactivity"]').replaceWith('Recent Changes'); } addOnloadHook(WikiActivity2RecentChanges);

/* Add history to the Edit dropdown menu for pages */ function HistoryDropdownMenuItem { $('ul.wikia-menu-button li:first-child ul li:first-child').before('History'); }

addOnloadHook(HistoryDropdownMenuItem);

/* The above solution works better function History4EditProfile { $('a.wikia-button[data-id$="editprofile"]').before('History'); if ( (wgCanonicalNamespace == 'User') || (wgCanonicalNamespace == 'User_talk') ) { $('ul.wikia-menu-button').before('History'); } } addOnloadHook(History4EditProfile);

function Return2PatrolledPage { $('p#mw-returnto > a').before('' + wgTitle + ' or '); }

addOnloadHook(Return2PatrolledPage);