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

리버티게임, 모두가 만들어가는 자유로운 게임
백괴게임>Bd3076
편집 요약 없음
백괴게임>Bd3076
편집 요약 없음
5번째 줄: 5번째 줄:
var mode = url.searchParams.get('mode');
var mode = url.searchParams.get('mode');
if(mode == 'usingPluginX'){
if(mode == 'usingPluginX'){
document.getElementById('mw-content-text').innerHTML = '플러그인 문서를 만드시려면 아래 버튼을 눌러 주세요. <br><br> <div class="mw-htmlform-submit-buttons"><span aria-disabled="false" id="ooui-7" class="mw-htmlform-submit oo-ui-widget oo-ui-widget-enabled oo-ui-flaggedElement-primary oo-ui-flaggedElement-progressive oo-ui-inputWidget oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonInputWidget" data-ooui="{&quot;_&quot;:&quot;OO.ui.ButtonInputWidget&quot;,&quot;type&quot;:&quot;submit&quot;,&quot;value&quot;:&quot;\ubc14\uafb8\uae30&quot;,&quot;flags&quot;:[&quot;primary&quot;,&quot;progressive&quot;],&quot;label&quot;:&quot;\ubc14\uafb8\uae30&quot;,&quot;classes&quot;:[&quot;mw-htmlform-submit&quot;]}"><button type="submit" tabindex="0" aria-disabled="false" value="바꾸기" class="oo-ui-inputWidget-input oo-ui-buttonElement-button webfonts-changed"><span class="oo-ui-iconElement-icon oo-ui-image-invert"></span><span class="oo-ui-labelElement-label">문서 생성하기</span><span class="oo-ui-indicatorElement-indicator oo-ui-image-invert"></span></button></span></div>';
// document.getElementById('mw-content-text').innerHTML = '플러그인 문서를 만드시려면 아래 버튼을 눌러 주세요. <br><br> <div class="mw-htmlform-submit-buttons"><span aria-disabled="false" id="ooui-7" class="mw-htmlform-submit oo-ui-widget oo-ui-widget-enabled oo-ui-flaggedElement-primary oo-ui-flaggedElement-progressive oo-ui-inputWidget oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonInputWidget" data-ooui="{&quot;_&quot;:&quot;OO.ui.ButtonInputWidget&quot;,&quot;type&quot;:&quot;submit&quot;,&quot;value&quot;:&quot;\ubc14\uafb8\uae30&quot;,&quot;flags&quot;:[&quot;primary&quot;,&quot;progressive&quot;],&quot;label&quot;:&quot;\ubc14\uafb8\uae30&quot;,&quot;classes&quot;:[&quot;mw-htmlform-submit&quot;]}"><button type="submit" tabindex="0" aria-disabled="false" value="바꾸기" class="oo-ui-inputWidget-input oo-ui-buttonElement-button webfonts-changed"><span class="oo-ui-iconElement-icon oo-ui-image-invert"></span><span class="oo-ui-labelElement-label">문서 생성하기</span><span class="oo-ui-indicatorElement-indicator oo-ui-image-invert"></span></button></span></div>';
}
}
}
}

2018년 11월 9일 (금) 20:34 판

console.log(mw.config.get('wgPageName').substr(0, 11));

if(mw.config.get('wgPageName').substr(0, 11) == "특수:콘텐츠모델바꾸기"){
	var url = new URL(window.location);
	var mode = url.searchParams.get('mode');
	if(mode == 'usingPluginX'){
	//	document.getElementById('mw-content-text').innerHTML = '플러그인 문서를 만드시려면 아래 버튼을 눌러 주세요. <br><br> <div class="mw-htmlform-submit-buttons"><span aria-disabled="false" id="ooui-7" class="mw-htmlform-submit oo-ui-widget oo-ui-widget-enabled oo-ui-flaggedElement-primary oo-ui-flaggedElement-progressive oo-ui-inputWidget oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonInputWidget" data-ooui="{&quot;_&quot;:&quot;OO.ui.ButtonInputWidget&quot;,&quot;type&quot;:&quot;submit&quot;,&quot;value&quot;:&quot;\ubc14\uafb8\uae30&quot;,&quot;flags&quot;:[&quot;primary&quot;,&quot;progressive&quot;],&quot;label&quot;:&quot;\ubc14\uafb8\uae30&quot;,&quot;classes&quot;:[&quot;mw-htmlform-submit&quot;]}"><button type="submit" tabindex="0" aria-disabled="false" value="바꾸기" class="oo-ui-inputWidget-input oo-ui-buttonElement-button webfonts-changed"><span class="oo-ui-iconElement-icon oo-ui-image-invert"></span><span class="oo-ui-labelElement-label">문서 생성하기</span><span class="oo-ui-indicatorElement-indicator oo-ui-image-invert"></span></button></span></div>';
	}
}