User:KnightMiner/hydra.js

mw.loader.localLoad = function( url ) { return mw.loader.load( 'http://minecraft.gamepedia.com/index.php?title=' + url + '&action=raw&ctype=text/javascript' ); };

// Replaces the Special:GlobalWatchlist tab with the Special:MyPage/Sandbox tab $('#pt-1 a[href$="/Special:GlobalWatchlist"]').attr({ href: '/User:' + mw.config.get( 'wgUserName' ) + '/Sandbox' }).text('Sandbox');

/** From User:Majr/hydra.js **/

// User:Majr/editcounter.js var editPage = 'Edit count'; var tableClass = ''; var tableStyle = ''; if ( mw.config.get( 'wgTitle' ) === mw.config.get( 'wgUserName' ) && mw.config.get( 'wgNamespaceNumber' ) === 2) { importScript( 'User:Majr/editcounter.js' ); }

// User:Majr/refTooltip.js importScript( 'User:Majr/refTooltip.js' );

// User:Majr/docTabs.js // Adds Doc + Doc discussion tabs to template and module pages and // changes Template/Module + Discussion tabs to always link to the original template/module + discussion page if (        $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 10, 11, 828, 829 ] ) > -1 ||        $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 2, 3 ] ) > -1 &&        mw.config.get( 'wgTitle' ).replace( /\/doc$/, '' ).search( /\.(js|css)$/ ) > -1 ) { importScript( 'User:Majr/docTabs.js' ); }

// User:Majr/Prism.js // Adds JavaScript, CSS and Lua syntax highlighting, see file for license // Requires a theme from http://prismjs.com to be added to usercss mw.loader.localLoad( 'User:Majr/Prism.js' );

// User:Majr/inputCounter.js // Adds a character counter to input fields importScript( 'User:Majr/inputCounter.js' );

// User:Majr/codeLinks.js importScript( 'User:Majr/codeLinks.js' );

// User:Majr/renderConsoleOutput.js // Allows the output wikitext of the lua console to be rendered if ( $( '#mw-scribunto-console' ).length ) { importScript( 'User:Majr/renderConsoleOutput.js' ); }

// Modify the text added by the signature button. $( '#wpTextbox1' ).on( 'wikiEditor-toolbar-buildSection-main', function( _, section ) {	section.groups.insert.tools.signature.action.options.pre = ' ' + ' '; } );

/** From User:Kanegasi/common.js **/

/* Creates a dropdown menu on edit summaries with presets */ if (mw.config.get('wgAction') === 'edit' || mw.config.get('wgAction') === 'submit') { var customSummaries = [ '[' + '[Minecraft Wiki:Projects/Rewrite for Style|Rewrite for Style]]', '[' + '[Minecraft Wiki:Projects/Rewrite for Style|Minor rewrite]]', '[' + '[mcf:24-|go to the forums]]', '[' + '[mcf:31-|go to the server forums]]', '[' + '[mcf:56-|go to the mod forums]]', '[' + '[mcf:155-|go to the support forums]]', '[' + '[mcf:219-|go to the Pocket Edition forums]]', '[' + '[mcf:220-|go to the Xbox 360 Edition forums]]', '[' + '[Project:Wiki Rules#1|Rule #1]]: Violates Minecraft ToU/brand guidelines', '[' + '[Project:Wiki Rules#2|Rule #2]]: Spam', '[' + '[Project:Wiki Rules#2|Rule #2]]: Vandalism', '[' + '[Project:Wiki Rules#3|Rule #3]]: Too simple', '[' + '[Project:Wiki Rules#3|Rule #3.1]]: No proof [' + '[Mojang]] has played this', '[' + '[Project:Wiki Rules#4|Rule #4]]: Lack of content', '[' + '[Project:Wiki Rules#5|Rule #5]]: Harassment/insult/ad hominem', '[' + '[Project:Wiki Rules#6|Rule #6]]: Not a [' + '[Mojang]]ster', '[' + '[Project:Wiki Rules#7|Rule #7/7.1]]: False info/speculation', '[' + '[Project:Wiki Rules#8|Rule #8]]: [' + '[Tutorials|Tutorial]] information', '[' + '[Project:Wiki Rules#9|Rule #9]]: Custom server mods belong with their server article', '[' + '[Project:Wiki Rules#10|Rule #10/11]]: Server/community advertising', '[' + '[Project:Wiki Rules#13|Rule #13]]: Plagiarism', '[' + '[Project:Wiki Rules#15|Rule #15.1]]: Mod info in vanilla article', '[' + '[Project:Wiki Rules#16|Rule #16]]: Video policy', '[' + '[Project:Wiki Rules#18|Rule #18]]: Signature', '[' + '[Project:Wiki Rules#19|Rule #19]]: Herospam', '[' + '[Project:Wiki Rules#20|Rule #20]]: Custom textures/UI/mods', '[' + '[Project:Wiki Rules#23|Rule #23]]: Not tutorial material', '[' + '[Minecraft 2.0]] info does not belong outside of its article', ];   mw.loader.localLoad('User:Kanegasi/editsummarypresets.js'); }

/** Testing stuff **/