미디어위키: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 commCss = currentUrl.includes('Common.css');
var commJs = currentUrl.includes('Common.js');
var vectorJs = currentUrl.includes('Vector.js');
var commCss = currentUrl.includes('Common.css');
var vectorCss = currentUrl.includes('Vector.css');  
var vectorJs = currentUrl.includes('Vector.js');
if(commJs || commCss || vectorJs || vectorCss ){
var vectorCss = currentUrl.includes('Vector.css');  
window.location.href = '/index.php';
if(commJs || commCss || vectorJs || vectorCss ){
}
window.location.href = '/index.php';
}
*/
*/
var currentUrl = currentUrl.replace(/:\/\//g, "");
var currentUrl = currentUrl.replace(/:\/\//g, "");
//네임스페이스 문서인지 확인
// 네임스페이스 문서인지 확인
if(currentUrl.includes(":")){
if(currentUrl.includes(":")){
console.log("접근불가");
console.log("접근불가");