Wikipedia:WikiProject User scripts/Scripts/Get user name

This is an old revision of this page, as edited by TheDJ (talk | contribs) at 08:28, 5 April 2018. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

/*

*/
/*This script gets a username from the current page
Example: On [[User:Digitalme/getusername.js]], getUserName() would return Digitalme
*/

function getUserName(){
    return mw.config.get('wgRelevantUserName');
}
/*

*/