User:Emperor Jarjarkine/monobook.js

// Adds a live UTC clock to the top of every page, which acts as a link to purge the current page // Taken from a Wikipedia gadget file // "&oldid=555306" should be removed when changes in following edit work in our MW version mw.loader.load( 'https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&oldid=555306&action=raw&ctype=text/javascript' ); // Adds a "section edit" button for the intro (useful on large pages). // Imported from a Wikipedia gadget file // "&oldid=507509831" should be removed when the MW version that moves section edit links to the left goes live on Wikia mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-edittop.js&oldid=507509831&action=raw&ctype=text/javascript' ); // wikipedia:User:Cacycle/wikEd in-browser text editor // Disabled here because I now have it installed through Greasemonkey // mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript' ); // wikipedia:User:Shubinator/DYKcheck tool. Lots of functions for management on // the "Did you know?" feature on Wikipedia, used here solely for rough word count purposes mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Shubinator/DYKcheck.js&action=raw&ctype=text/javascript' ); // wikipedia:User:Svick/SectionInput.js - creates new text box for name of edited section // in edit summary, so that browser's autocomplete is more useful // Not fully compatible with wikEd, as section name box shows well below main summary box mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Svick/SectionInput.js&action=raw&ctype=text/javascript' ); // Force edit summary // Does not currently work here, though it still works on Wikipedia mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_User_scripts/Scripts/Force_edit_summary&action=raw&ctype=text/javascript' ); // Don't load these next several on bot account if ( wgUserName == 'Master Jonathan' ) { // Adds link to User:Master Jonathan/dashboard to the top of the page mw.util.addPortletLink( 'p-personal', wgServer + '/wiki/User:Master_Jonathan/dashboard?action=purge',		'admin dashboard', 'pt-dashboard', 'Administrator dashboard', null, '#pt-logout' ); /******* Fast delete buttons not currently active // Fast delete buttons, customized from MediaWiki:Gadget-fastdelete.js // Don't load on Main Page (uses switch instead of if statement to allow easier addition of other pages in future) switch ( wgPageName ) { case 'Main_Page': break; default: importScriptPage( 'User:Master Jonathan/fastDeleteCustom.js', 'masterjonathan' ); };	*******/	// Adds link to switch accounts to the top of the page mw.util.addPortletLink( 'p-personal', wgServer + '/wiki/Special:UserLogin',		'switch to bot', 'pt-switch', 'Log in as bot account', null, '#pt-logout' ); // Appends a button to the delete interface to clear the prefilled summary with one click importScriptPage( 'User:Master Jonathan/deleteClearButton.js', 'masterjonathan' ); // Customized version of w:c:firefly:User:Grunny/diffWook.js importScriptPage( 'User:Master Jonathan/diffWookCustom.js', 'masterjonathan' ); // Adjust signature var diffWookSignature = ''+'~'; // AJAX batch delete form importScriptPage('AjaxBatchDelete/code.js', 'dev'); }; // Adds a tab (two on userpages) with a drop-down menu of various options importScriptPage( 'User:Master Jonathan/dropDownMenus.js', 'masterjonathan' ); // Display article ID number next to page title // $( '#firstHeading' ).append( ' (id: ' + wgArticleId + ') ' ); // Colors edit and move tabs to indicate protection level, also tags "upload new version" link if upload-protected importScriptPage( 'User:Master Jonathan/adminColoredTabs.js', 'masterjonathan' ); // Adds custom "quick links" section to sidebar $( '#p-tb' ).after( ' quick links  ' ); mw.util.addPortletLink( 'p-pql', '/wiki/Wookieepedia:Trash_compactor', 'Trash compactor' ); mw.util.addPortletLink( 'p-pql', '/wiki/Special:AbuseFilter', 'AbuseFilter' ); mw.util.addPortletLink( 'p-pql', '/wiki/Special:Protectsite', 'ProtectSite' ); function openNotices { window.open( '/wiki/MediaWiki:Sitenotice?action=edit', '_blank' ); window.open( '/wiki/MediaWiki:Sitenotice_id?action=edit', '_blank' ); window.open( '/wiki/MediaWiki:Community-corner?action=edit', '_blank' ); } mw.util.addPortletLink( 'p-pql', 'javascript:openNotices;', 'Site notices' );