- 오래 전에 긁어놓고 쓰던 것이라서 출처가 명확하지 않음.
- '한눈에스킨'으로 변경하면서 기존 'hELLO' 스킨에서 자잘하게 변경해 둔 것들이 날라가버려서 복구 중에 기록해 둠
- 'w' 키가 새 글쓰기로 지정해 둠
- 스킨 html 을 수정하면서, </head> 앞에 넣어주면 됨
<!-- 티스토리 단축키 만들기 시작 -->
<script type="text/javascript">
var lnk = new Array();
//lnk['q'] = "/manage/posts/"; // 설정 - 글관리
lnk['w'] = "/manage/newpost/"; // 글쓰기
lnk['a'] = "/manage/statistics/blog/"; // 방문통계
lnk['s'] = "/manage/statistics/referrer/"; // 유입경로
lnk['m'] = "/admin/entry/post/?id=" + location.pathname.split('/')[1]
//var hlnk = new Array();
//lnk['f'] = "https://www.tistory.com/category/sports"; //해당 주소 링크로 가기
//lnk['g'] = "https://www.google.co.kr/"; //해당 주소 링크로 가기
function Movepage(lnkGo) {
if ((event.srcElement.tagName != 'INPUT') && (event.srcElement.tagName != 'TEXTAREA')){
isNetscape=(document.layers);
eventChooser = (isNetscape) ? lnkGo.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in lnk)
if (which == i) window.location = lnk[i];
for (var i in hlnk)
if (which == i) location.hrdf = hlnk[i];
}
}
document.onkeypress = Movepage;
</script>
<!-- 티스토리 단축키 만들기 끝 -->
_
반응형