User:Starfleet Academy/global.js

//IMPORTS //Importing gadget by Pecoes importScriptPage('Client.js', 'wikimarks'); //END importing gadget //END Imports

//Adds recent changes button to WikiaNavigation -- by Starfleet Academy $(function navRC { $('.WikiaHeader .GlobalNavigation').append('RC '); }); //END adding recent changes button

//Adds links to my contribs & watchlist //under talkpage link in account nav (drop-down) -- by Starfleet Academy $(function accnavLinks { $('.WikiaHeader .AccountNavigation .subnav > li:first-child').after('ContributionsFollowed pages'); }); //END adding links to Account nav

//Adds purge link to edit menu -- by Starfleet Academy $(function purgeLink { $('.WikiaPageHeader .wikia-menu-button .WikiaMenuElement > li:first-child').before('<a href="/index.php?title='+ wgPageName +'&action=purge" data-id="purge">Purge</a></li>'); }); //END adding purge button

//Adds a "return to page top" link on the toolbar -- by Starfleet Academy $(function backToTheTop { if (wgAction == "view") { $('.skin-oasis .WikiaFooter .toolbar .tools').append('<a href="'+ wgServer +'/wiki/'+ wgPageName +'#" class="to-top-link">Top</a></li>');} else if (wgCanonicalNamespace == "Message_Wall") {  $('.skin-oasis .WikiaFooter .toolbar .tools').append('<a href="'+ wgServer +'/wiki/'+ wgPageName +'#" class="to-top-link">Top</a></li>');} }); //END top-returning link