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

내용 삭제됨 내용 추가됨
Kladess (토론 | 기여)
편집 요약 없음
Kladess (토론 | 기여)
편집 요약 없음
 
1번째 줄:
var strPath = window.location.pathname;
$("li#ca-history").after("<li><span><a href='/w/index.php?title={{FULLPAGENAME}}&action=purge'>캐시 초기화</a></span></li>");
var strTitlePath = strPath.substring(strPath.lastIndexOf("/")+1);
$("li#ca-history").after("<li><span><a href='/w/index.php?title={{FULLPAGENAME}}[title]&action=purge'>캐시 초기화</a></span></li>".replace("[title]",strTitlePath));