User:Majr/hydra.js

mw.loader.localLoad = function( url ) { return mw.loader.load( 'http://www.minecraftwiki.net/wiki/' + url + '?action=raw&ctype=text/javascript' ); };

// Uses AJAX for previewing and showing changes - Original script: wikipedia:User:Js/ajaxPreview.js if ( mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit' ) { mw.loader.localLoad( 'User:Ultradude25/ajaxPreview.js' ); }

// Counts all your edits and saves them to a page - Original script: if ( mw.config.get( 'wgTitle' ) === mw.config.get( 'wgUserName' ) && mw.config.get( 'wgNamespaceNumber' ) === 2) { mw.loader.localLoad( 'User:Ultradude25/editcounter.js' ); }

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

// Make links work in code blocks mw.loader.localLoad( 'User:Ultradude25/codeLinks.js' );

// Adds Doc + Doc discussion tabs to template pages and change Template + Discussion tabs to always link to the original template + discussion page if ( mw.config.get( 'wgNamespaceNumber' ) === 10 || mw.config.get( 'wgNamespaceNumber' ) === 11 ) { mw.loader.localLoad( 'User:Ultradude25/docTabs.js' ); }

// Allows rollback summary to be edited mw.loader.localLoad( 'User:Ultradude25/editableRollback.js' );

// Parse tweets mw.loader.localLoad( 'User:Ultradude25/twitterFeed.js' );

// Test ref tooltips mw.loader.localLoad( 'User:Ultradude25/refTooltip.js' );

// Test bug titles mw.loader.localLoad( 'User:Ultradude25/bugSummary.js' );

$( function { 'use strict';

// Adds a history link to the new messages box - Original script: wikipedia:User:Davidgothberg/newmessageshistory.js $( '#mw-youhavenewmessages a:last' ).after( ', history' );

// Changes vector menu items into tabs $( '#p-cactions' ).addClass( 'emptyPortlet' ).find( '> .menu li' ).addClass( 'collapsible' ).find( 'a' ).wrap( ' ' ); $( '#p-views > ul' ).append( $( '#p-cactions > .menu li' ) );

// Replaces ugly links with fancy ones ("/wiki/Pagename?action=edit" instead of "/index.php?title=Pagename&action=edit") $( 'a' ).prop( 'href', function {   return this.href.replace( /minecraftwiki\.net\/index\.php\?title=([^&]*)&(?!action=(?:un)?watch)(.*)/, "minecraftwiki.net/wiki/$1?$2" ); } );

} );