User:Cåm/global.js

// /** * Variables for imports */ var monoBookText, oasisText;

// Skinswitch button names monoBookText = 'Monobook'; oasisText = 'Oasis';

/** * Imports * See separate import comments for details */ importArticles({	type: 'script',	articles: [		'u:wikimarks:Client.js', // Customisable On The Wiki tab		'u:dev:AntiUnicruft/code.js', // Removes invisible characters		'u:runescape:User:Joeytje50/tabkey.js', // Allows use of tabkey for use in scripts		'u:kangaroopower:MediaWiki:Scope.js', // FindReplace function for source editor		'u:dev:AllPagesHideRedirect/code.js', // Adds a hide redirect button to AllPages & PrefixIndex		'u:dev:SkinSwitchButton/code.js' // Switch between Monobook & Oasis	] });

/** * Special:Editcount link in profile masthead * By User:Matthew2602 * Fixed for Special:Contributions by User:Cåm */ if( wgCanonicalNamespace == 'Special'){ // Split the pagename as wgTitle referes to Contibutions/USERNAME // wgTitle.split would work too var user = wgPageName.split('/'); // Add the link into the existing editcount tally $( '#UserProfileMasthead .tally em' ).html( '' + $( '#UserProfileMasthead .tally em' ).text + '' ); } else { $( '#UserProfileMasthead .tally em' ).html( '' + $( '#UserProfileMasthead .tally em' ).text + '' ); };

//