User:EstherLoer/insert username.js

if (mw.config.values.wgUserName) /* to only run code if the user is logged in */ { for (count=0; count < document.getElementsByClassName("username_placeholder").length; count++) { document.getElementsByClassName("username_placeholder")[count].innerHTML = mw.config.values.wgUserName; } }