User:Cåm/global.js

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

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

// Fast delete buttons fdButtons = [];

// Custom button names fdButtons[fdButtons.length] = { 'summary': 'Successful RfD', 'label': 'RfD' }; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'vandal' }; fdButtons[fdButtons.length] = { 'summary': 'kill with fiyah', 'label': 'fiyah' };

/** * 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		'u:dev:FastDelete/code.js'		// Fast Delete buttons			] });

/** * 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 + '' ); };

//