사용자:Rainy/common.js

< 사용자:Rainy
Rainy (토론 | 기여)님의 2016년 5월 16일 (월) 16:32 판 (얼마나 버티려나...)

참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.

  • 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
  • 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
  • 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
  • 오페라: Ctrl-F5를 입력.
/*[[사: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');
/*** 위키휴가 집행기 끝 ***/