User:Real Godisme/monobook.js

importScriptPage('User:Quarenon/quickpreview.js', 'runescape'); importScriptPage('AdvancedOasisUI/code.js', 'dev'); importScriptPage('User:Joeyaa/wham.js','vstf'); importScriptPage('FastDelete/code.js', 'dev'); importScriptPage( 'AjaxUndo/code.js', 'dev' ); importScriptPage('User:Real_Godisme/Fin.js', 'fairytail'); //changes the contribute button to a recent changes button $(function { $('.WikiHeader div.buttons nav').replaceWith('  Recent Changes '); }); /*gets rid of the autodelete summary function removeDeleteSummary { if(wgAction == 'delete') {document.getElementById('wpReason').value = '';} } addOnloadHook(removeDeleteSummary); */ //suppress undo summary function removeUndoSummary { if(window.location.href.indexOf('&undo=') != -1) {document.getElementById('wpSummary').value = '';} }	addOnloadHook(removeUndoSummary); //gets rid of the admin dash drawer and makes things look better if(document.getElementById('AdminDashboardDrawer')) { $('.AdminDashboardNavigation').prepend($('#WikiaSearch').css('float', 'right').detach);} //adds recent Changes and Random page into the new editor $(function addEditorButtons {if ($('.checkboxes').length) { $('   Random PageRecent Changes  ').insertBefore('.checkboxes'); } }); //fast delete var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'SP'}; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'VA'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'HK'}; fdButtons[fdButtons.length] = { 'summary': 'Spam/Self-Answered Question', 'label': 'Self'}; fdButtons[fdButtons.length] = { 'summary': 'Not a Question/Nonsensical Question', 'label': 'NotAQ'}; fdButtons[fdButtons.length] = { 'summary': 'Not About Bleach', 'label': 'NotB'}; fdButtons[fdButtons.length] = { 'summary': 'Please see the main page. The anime has ended. It is not coming back', 'label': 'Anime'}; // remove admin link on toolbar $.ready( function { $('li > a[data-tracking="admindashboard/toolbar/admin"]').remove; } ); //UrlQuery function urlQuery(quer) { for(i in location.href.split('?')) { for(j in location.href.split('?')[i].split('&')) { if(location.href.split('?')[i].split('&')[j].split('=')[0] == quer) { return location.href.split('?')[i].split('&')[j].split('=')[1]; }		}	}	return ''; } //adds a recent changes button next to the WikiActivity button on wikis without the new nav function AddRecentChanges { $('div.buttons').css({'width': '310px'}); $('a[data-id="wikiactivity"]').after('Recent Changes'); } addOnloadHook(AddRecentChanges);