미디어위키:Common.js: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
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 commJs = currentUrl.includes('Common.js');
8번째 줄: 9번째 줄:
window.location.href = '/index.php';
window.location.href = '/index.php';
}
}
var specialUrl = currentUrl.replace(/:\/\//g, "");
*/
var isSpecial = specialUrl.includes(":");
var currentUrl = currentUrl.replace(/:\/\//g, "");
if(specialUrl.includes(":")){
//네임스페이스 문서인지 확인
if(currentUrl.includes(":")){
console.log("접근불가");
console.log("접근불가");
}
}