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

편집 요약 없음
(얼마나 버티려나...)
15번째 줄: 15번째 줄:
tools.appendChild(link);
tools.appendChild(link);
}
}
/*위키휴가 집행기.*/
/**
If some methods in this page is deprecated and needs to be changed, feel free to do so.
If you're asked by me for help, feel free to edit.
Otherwise, come to my talk page and ask for an edit.
**/
// Display users rights (Temporary, might work on my own rewrite of this or find another one)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Splarka/sysopdectector.js&action=raw&ctype=text/javascript');
/**
* Ajax sysop
* @see https://meta.wikimedia.org/wiki/Ajax_sysop
* @update-token [[File:pathoschild/ajaxsysop.js]]
*/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');
/* Mark blocked user as such. */
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
/*** [[위키백과:백:위키휴가/집행기]] ***/
//시작 시각
wikiBreakStart = new Array(
    /* 연 Year  */ 1970,
    /* 월 Month  */ 1,
    /* 일 Day    */ 1,
    /* 시 Hour  */ 0,
    /* 분 Minute */ 0,
    /* 초 Second */ 0
);
//종료 시각
wikiBreakEnd = new Array(
    /* 연 Year  */ 2016,
    /* 월 Month  */ 5,
    /* 일 Day    */ 23,
    /* 시 Hour  */ 0,
    /* 분 Minute */ 0,
    /* 초 Second */ 0
);
//아래는 손대지 마세요!
mw.loader.load('//ko.wikipedia.org/w/index.php?title=User:IRTC1015/wbEnforcer.js&action=raw&ctype=text/javascript');
/*** 위키휴가 집행기 끝 ***/

2016년 5월 16일 (월) 16:32 판

/*[[사:Zlzletest/common.js]] 복붙*/
function getRootPageName() {
	var title = mw.config.get("wgTitle");
	return title.split("/")[0];
}

var tools = document.querySelector(".btn-group");
var namespace = mw.config.get("wgNamespaceNumber");
if (namespace === 2 || namespace === 3) {
	var link = document.createElement("a");
	link.textContent = "기여";
	link.href = mw.config.get("wgServer") + mw.config.get("wgArticlePath").replace("$1", "Special:Contributions/" + getRootPageName());
        link.className="btn btn-secondary tools-btn";
        link.style.marginLeft = "10px";
	tools.appendChild(link);
}

/*위키휴가 집행기.*/
/**
If some methods in this page is deprecated and needs to be changed, feel free to do so.

If you're asked by me for help, feel free to edit.

Otherwise, come to my talk page and ask for an edit.
**/

// Display users rights (Temporary, might work on my own rewrite of this or find another one)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Splarka/sysopdectector.js&action=raw&ctype=text/javascript');

/**
 * Ajax sysop
 * @see https://meta.wikimedia.org/wiki/Ajax_sysop
 * @update-token [[File:pathoschild/ajaxsysop.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');

/* Mark blocked user as such. */
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');


 /*** [[위키백과:백:위키휴가/집행기]] ***/

//시작 시각
wikiBreakStart = new Array(
    /* 연 Year   */ 1970,
    /* 월 Month  */ 1,
    /* 일 Day    */ 1,
    /* 시 Hour   */ 0,
    /* 분 Minute */ 0,
    /* 초 Second */ 0
);

//종료 시각
wikiBreakEnd = new Array(
    /* 연 Year   */ 2016,
    /* 월 Month  */ 5,
    /* 일 Day    */ 23,
    /* 시 Hour   */ 0,
    /* 분 Minute */ 0,
    /* 초 Second */ 0
);
//아래는 손대지 마세요!
mw.loader.load('//ko.wikipedia.org/w/index.php?title=User:IRTC1015/wbEnforcer.js&action=raw&ctype=text/javascript');
/*** 위키휴가 집행기 끝 ***/