User:Eladkse/global.js

function RecentChanges { $('.WikiaActivityModule a.more').replaceWith('See more &gt;'); $('a.wikia-button[data-id$="wikiactivity"]').replaceWith(' Wiki Activity'); $('nav.contribute').replaceWith(' Recent Changes'); } addOnloadHook(RecentChanges);

function UserDropdownMenuItems { $('#AccountNavigation ul.subnav li:first-child').after('My blogMy contributions'); }

addOnloadHook(UserDropdownMenuItems);

function PurgeDropdownMenuItem { if( wgNamespaceNumber >= 0 && !window.PurgeButtonsLoaded && document.getElementById('control_purge') == null && wgNamespaceNumber != 500 && wgNamespaceNumber != 502 ) { addOnloadHook( addPurgeButton ); }	var PurgeButtonsLoaded = true; // prevent duplicate running (but not dupe buttons from outside this code)

function addPurgeButton { var theText = 'Purge'; //default text, ala SMW if( typeof PurgeButtonText == "string" ) { theText = PurgeButtonText; }

switch( skin ) { case 'uncyclopedia': /* monobook clone, pass to monobook */ case 'wowwiki': /* monobook clone, pass to monobook */ case 'lostbook': /* monobook clone, pass to monobook */ case 'monobook': $('#p-cactions > .pBody > ul').append('<a href="/index.php?title='+encodeURIComponent(wgPageName)+'&action=purge">'+ theText + '</a></li>'); break;

case 'oasis': case 'wikia': $(((wgNamespaceNumber == 2 || wgNamespaceNumber == 3) ? '.UserProfileActionButton' : '#WikiaPageHeader') + ' > .wikia-menu-button > ul').append('<a href="/index.php?title='+encodeURIComponent(wgPageName)+'&action=purge">'+ theText + '</a></li>'); break;

}	} }

addOnloadHook(PurgeDropdownMenuItem);