문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 여기에는 다른 사용자의 개인 설정이 포함되어 있기 때문에 이 자바스크립트 문서를 편집할 수 없습니다. 문서의 원본을 보거나 복사할 수 있습니다. $(document).ready(function() { $.ajax({ url: (mw) ? mw.util.wikiScript("api") : "//librewiki.net/api.php", method: "get", data: { "action": "query", "meta": "notifications", "format": "json", "notprop": "count" }, dataType: "json" }).done(function(msg) { if (test && msg.query.notifications.count == 0) msg = {query: {notifications: {count: -1}}}; if (msg.query.notifications.count != 0) { var notibox = $("<div>").addClass("libre_right_notify"); var noticon = $("<i>").addClass("notify-icon").click(function() { if ($(window).width() < 992) { notibox.toggleClass("expand"); } }); var notilink = $("<a>").addClass("notify-link").attr("href", (mw) ? mw.config.get("wgServer") + mw.config.get("wgArticlePath").replace("$1", "Special:Notifications") : "//librewiki.net/wiki/Special:Notifications"); var notitext = $("<span>").addClass("notify-msg").text("알림이 있습니다!"); var noticount = $("<span>").addClass("notify-count").text(msg.query.notifications.count); notilink.append(notitext, noticount); notibox.append(noticon, notilink); $(".libre_right_search").after(notibox); $(".mw-echo-notifications-badge").append('<span class="notify-count">' + msg.query.notifications.count + '</span>'); } }); }); 사용자:Senior9324/Notification.js 문서로 돌아갑니다.