User:DutchTina/common.js

$( function {    $( "a[href^='https://meta.wikimedia.org/w/index.php'][href*='title=Special:GlobalRenameUser']" ).each( function ( index ) { var oldUrl = decodeURI( $( this ).attr( "href" ) ); var serverName = mw.config.get( "wgServerName" ); var newUrl = oldUrl.replace( /\[\[.+?\|/g, "" );       $( this ).attr( "href", encodeURI( newUrl ) );    } ); } ); importScript('User:Enterprisey/script-installer.js'); // Backlink: [[User:Enterprisey/script-installer.js importScript('User:Enterprisey/rename-reason-fixer.js'); // Backlink: User:Enterprisey/rename-reason-fixer.js