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' ); };

/* 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 = ' ' + ' '; } );