User:KnightMiner/hydra.js

/* 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 // User:Majr/docTabs.js 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 importScript( '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' ); }