jQuery(document).ready(function() { // Log errors jQuery(document).foundation(function (response) { if (window.console) console.log(response.errors); }); // The Echo extension puts an item in personal tools that Foreground really should have in the top menu // to make this easier, we move it here and loaded earlier to speed up transform jQuery("#pt-notifications").prependTo("#echo-notifications-alerts"); jQuery("#pt-notifications-message").prependTo("#echo-notifications-messages"); jQuery("#pt-notifications-alert").prependTo("#echo-notifications-alerts"); jQuery("#pt-notifications-notice").prependTo("#echo-notifications-notice"); // Append font-awesome icons jQuery('[id^=ca-nstab] a').prepend('
') jQuery('li#ca-talk a').prepend('') jQuery('li#ca-form_edit a').prepend('') jQuery('li#ca-formedit a').prepend('') jQuery('li#ca-history a').prepend('') jQuery('li#ca-delete a').prepend('') jQuery('li#ca-move a').prepend('') jQuery('li#ca-protect a').prepend('') jQuery('li#ca-unprotect a').prepend('') jQuery('li#ca-watch a').prepend('') jQuery('li#ca-unwatch a').prepend('') jQuery('li#ca-purge a').prepend('') jQuery('li#ca-undelete a').prepend('') jQuery('li#ca-ask_delete_permanently a').prepend('') jQuery('li#t-cite a').prepend('') if ( jQuery( '#ca-addsection' ).length ) { jQuery('li#ca-addsection a').html('' + jQuery('li#ca-addsection a').attr('title').replace(/\[.+/g,"")) } jQuery('li#pt-uls a').prepend('') jQuery('li#pt-userpage a').prepend('') jQuery('li#pt-mytalk a').prepend('') jQuery('li#pt-adminlinks a').prepend('') jQuery('li#pt-preferences a').prepend('') jQuery('li#pt-watchlist a').prepend('') jQuery('li#pt-mycontris a').prepend('') jQuery('li#pt-logout a').prepend('') jQuery('li#pt-login a').prepend('') jQuery('li#pt-createaccount a').prepend('') jQuery('li#pt-anonuserpage a').prepend('') jQuery('li#pt-anontalk a').prepend('') jQuery('li#t-smwbrowselink a').prepend('') jQuery('li#t-whatlinkshere a').prepend('') jQuery('li#t-blockip a').prepend('') jQuery('li#t-recentchangeslinked a').prepend('') jQuery('li#t-contributions a').prepend('') jQuery('li#t-log a').prepend('') jQuery('li#t-emailuser a').prepend('') jQuery('li#t-userrights a').prepend('') jQuery('li#t-upload a').prepend('') jQuery('li#t-specialpages a').prepend('') jQuery('li#t-print a').prepend('') jQuery('li#t-permalink a').prepend('') jQuery('li#t-info a').prepend('') jQuery('li#feedlinks a').prepend('') jQuery('ul#toolbox-dropdown.dropdown>li#n-recentchanges a').prepend('') jQuery('ul#toolbox-dropdown.dropdown>li#n-help a').prepend('') // Turn categories into labels jQuery('#mw-normal-catlinks ul li a').addClass('label'); }); // Have to wait until the window is fully loaded because of Visual Editor to prepend icons for editing jQuery(window).load(function() { jQuery('li#ca-ve-edit a').prepend('') jQuery('li#ca-viewsource a').prepend('') jQuery('li#ca-edit a').prepend('') });