User:Fandyllic/wikia.js

/* Add History and What Links Here links to 3rd wiki menu after 1st item */ /* function ToolsMenuItems { $('section header nav ul li:nth-last-child(2) ul li:first-child').after('HistoryWhat Links here'); } addOnloadHook(ToolsMenuItems);

/* 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 */ /* Disabled, since now implemented by default function HistoryDropdownMenuItem { $('ul.wikia-menu-button li:first-child ul li:first-child').after('History'); }

addOnloadHook(HistoryDropdownMenuItem);

/* function History4EditProfile { $('a.wikia-button[data-id$="editprofile"]').before('History</a>'); if ((wgCanonicalNamespace == 'User') || (wgCanonicalNamespace == 'User_talk')) { $('ul.wikia-menu-button').before('<a class="wikia-button" href="/wiki/' + wgPageName + '?action=history" accesskey="h" data-id="history">History</a>'); } }

addOnloadHook(History4EditProfile);

/* Works, but disable for now. */ /* function Talk4Forum { if (wgCanonicalNamespace == 'Forum') { $('ul.wikia-menu-button').after('<a class="wikia-button" href="/wiki/Forum talk:' + wgTitle +'" style="margin-left:1em;">Forum talk</a>'); } } addOnloadHook(Talk4Forum);