문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 여기에는 다른 사용자의 개인 설정이 포함되어 있기 때문에 이 자바스크립트 문서를 편집할 수 없습니다. 문서의 원본을 보거나 복사할 수 있습니다. function switchSkin(skinname) { new mw.Api().postWithToken('csrf', { "action": "options", "format": "json", "change": "skin=" + skinname }).done(data => { location.href = location.href; }); } $(document).ready( () => { var switchSkinB = ''; var preferences = document.querySelector('#pt-preferences'); if (preferences) { switchSkinB = preferences.cloneNode(1); var a = document.createElement('a'); a.title = '스킨 바꾸기'; a.onclick = function () { switchSkin("liberty") }; a.innerText = a.title; a.style.cursor = 'pointer'; switchSkinB.innerHTML = '', switchSkinB.append(a); } else { var preferences = document.querySelector('.login-dropdown-menu > .dropdown-divider:nth-of-type(2) + *'); switchSkinB = preferences.cloneNode(1); switchSkinB.title = "스킨 바꾸기"; switchSkinB.onclick = function () { switchSkin("timeless") }; switchSkinB.innerText = switchSkinB.title; switchSkinB.href = 'javascript:;'; } preferences.after(switchSkinB); }); 사용자:하늘/switchskin.js 문서로 돌아갑니다.