사용자:Sokcuri/common.js: 두 판 사이의 차이

잔글편집 요약 없음
잔글편집 요약 없음
9번째 줄: 9번째 줄:
return;
return;
}
}
     if (wgUserName == null)
     if (typeof(wgUserName) != 'undefined' && wgUserName)
{
{
alert("wgUserName no exist");
alert("wgUserName no exist");

2015년 5월 19일 (화) 13:32 판

/** [[틀:USERNAME]]에서 사용하는 바꿔치기 함수
  * 작성자: [[사용자:Peremen]]
*/
 
function UserNameReplace() {
    if (typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace)
{
alert("undefined");
return;
}
    if (typeof(wgUserName) != 'undefined' && wgUserName)
{
alert("wgUserName no exist");
}return;
    $("span.insertusername").each(function(i) {
        $(this).text(wgUserName)
    })
};
$(UserNameReplace);