미디어위키:Common.js: 두 판 사이의 차이
Resultofunion (토론 | 기여) 편집 요약 없음 |
Resultofunion (토론 | 기여) 편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
if(!mw.config.get('wgUserId')){ | if(!mw.config.get('wgUserId')){ | ||
var currentUrl = window.location.href; | var currentUrl = window.location.href; | ||
var commJs = currentUrl.includes('Common.js'); | |||
var commCss = currentUrl.includes('Common.css'); | |||
var vectorJs = currentUrl.includes('Vector.js'); | |||
var vectorCss = currentUrl.includes('Vector.css'); | |||
if(commJs || commCss || vectorJs || vectorCss ){ | |||
window.location.href = '/index.php'; | |||
} | |||
/* | |||
var currentUrl = currentUrl.replace(/:\/\//g, ""); | |||
// 네임스페이스 문서인지 확인 | |||
if(currentUrl.includes(":")){ | |||
window.location.href = '/index.php'; | window.location.href = '/index.php'; | ||
} | } | ||
*/ | */ | ||
// 문서의 역사롤 봅니다. (hidden 시킴) | // 문서의 역사롤 봅니다. (hidden 시킴) | ||