문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 여기에는 다른 사용자의 개인 설정이 포함되어 있기 때문에 이 자바스크립트 문서를 편집할 수 없습니다. 문서의 원본을 보거나 복사할 수 있습니다. // 이 JavaScript는 [[사:다메즈마]] 님이 만드신 리브레 비서 시스템을 사용합니다. var isMobile = false; if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ isMobile = true; } if(isMobile==false) { $('head').append('<script src=\'/index.php?title=사용자:Katinor/main.js&action=raw&ctype=text/javascript\'><\/script>'); var portrait = [ "http://i.imgur.com/4pEEEIe.png", "http://i.imgur.com/QSrMHUV.png", "http://i.imgur.com/v5wWBhy.png", "http://i.imgur.com/momeHO6.png", "http://i.imgur.com/eKG3jF6.png", "http://i.imgur.com/mZEhLr8.png", "http://i.imgur.com/pjjniJb.png", "http://i.imgur.com/MOGYvkL.png", "http://i.imgur.com/W3VU1E7.png", "http://i.imgur.com/LEf14pB.png" ]; var char_comment = [ "쿼드라이어즈, 카티노르라고 해.", "마스터콰이어. 마법과 축복 양면으로 최고라구.", "요즘은 전격 마법에 빠졌는데.. 짜릿한거 좋아해?", "오늘도 같이 신나게 노래하자!", "하늘에서 운석이 떨어져도 놀라진 마~!", "취미는 기타, 특기는 보컬!", "귀 만지지 마! 위든 아래든!!", "후후... 날 괴롭힌다면 엄청 짜릿할텐데~?", "전기가 없으면 너도 이 짓거리 못하겠지? 하나.. 두울.. 셋?", "너희들의 기쁨과 슬픔에 함께 노래해 줄게!", "이미저리 컨스턴트를 나 자신으로 나누고오..." ]; var facelist = [0,8,1,1,3,2,6,3,1,2,9]; var news_comment = "이거, 니꺼지?<br>누군가 너에게 할말이 있나 본데?"; var mp = 0; var num = randomRange(0,char_comment.length); mascot.AddImage(portrait[facelist[num]]); mascot.ShowMessage(char_comment[num]); var temp = function(){ var param = { "action":"query", "meta":"notifications", "notlimit":10, "format":"json" }; $.ajax("/api.php", { data:param, dataType:"json" }) .done(function(res) { var list_o = res.query.notifications.list; var list = []; for(var key in list_o) { list.push(list_o[key]); } var unread_message = []; for(var i = 0 ; i < list.length ; i++) { if(list[i].read == null && list[i].type != "page-linked") { unread_message.push(list[i]); } } if(unread_message.length != 0) { mascot.AddImage(portrait[mp]); mascot.ShowMessage("<a style='color:#FFF;' href='/wiki/"+ encodeURIComponent(unread_message[unread_message.length - 1].title.full) + "'> news_comment </a>"); } else { } }); }; temp(); setInterval(temp,1000 * 20); }; 사용자:Katinor/common.js 문서로 돌아갑니다.