User:Majr/hydra.js

// Adds a history link to the new messages box - Original script: wikipedia:User:Davidgothberg/newmessageshistory.js if ($('#mw-youhavenewmessages')) { importScript('User:Ultradude25/newmessagehistory.js'); }

// Allows vector menu to be changed to tabs - wikipedia:User:Edokter/MenuTabsToggle.js importScriptURI('//en.wikipedia.org/w/index.php?title=User:Edokter/MenuTabsToggle.js&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') { importScript('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) { importScript('User:Ultradude25/editcounter.js'); }

// Adds JavaScript and CSS syntax highlighting - Original script: importScript('User:Ultradude25/syntaxHighlight.js'); importScript('User:Ultradude25/syntaxHighlight/javascript.js'); importScript('User:Ultradude25/syntaxHighlight/css.js');

// Replace 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( /\/index\.php\?title=([\w:/=!\-.]*)&(?!action=(?:un)?watch)([\w:/=]*)/, "/wiki/$1?$2"); });