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

편집 요약 없음
잔글편집 요약 없음
9번째 줄: 9번째 줄:
return;
return;
}
}
    if (wgUserName == null)
//    if (wgUserName == null)
{
//{
alert("wgUserName no exist");
//alert("wgUserName no exist");
}return;
//}return;
     $("span.insertusername").each(function(i) {
     $("span.insertusername").each(function(i) {
         $(this).text(wgUserName)
         $(this).text(wgUserName)

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

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