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] = { // RuneScape Wiki only '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 * Remember to add a comma after each page except the last * To do: Move AntiUnicruft & Tabkey to Greasemonkey (or equivalent) */ importArticles({	type: 'script',	articles: [		'u:wikimarks:Client.js',		// Customisable On The Wiki tab		'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		'u:dev:AjaxUndo/code.js',		// Add a undo link to page diffs and histories			'u:dev:UnsafeScripts/code.js',		// Allows import of scripts into .js pages		'u:dev:AntiUnicruft/code.js',		// Removes invisible characters		'u:runescape:User:Joeytje50/tabkey.js'	// Allows use of tabkey for use in scripts	] });

/** * Special:Editcount link in profile masthead * By User:Matthew2602 * Fixed for Special:Contributions by User:Cåm */ if( mw.config.get( 'wgCanonicalNamespace' ) == 'Special' ){ var user = mw.config.get( 'wgTitle' ).split('/'); $( '#UserProfileMasthead .tally em' ).html( '' + $( '#UserProfileMasthead .tally em' ).text + '' ); } else { $( '#UserProfileMasthead .tally em' ).html( '' + $( '#UserProfileMasthead .tally em' ).text + '' ); };

/* */