사용자: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> <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="{"_":"OO.ui.ButtonInputWidget","type":"submit","value":"\ubc14\uafb8\uae30","flags":["primary","progressive"],"label":"\ubc14\uafb8\uae30","classes":["mw-htmlform-submit"]}"><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="{"_":"OO.ui.ButtonInputWidget","type":"submit","value":"\ubc14\uafb8\uae30","flags":["primary","progressive"],"label":"\ubc14\uafb8\uae30","classes":["mw-htmlform-submit"]}"><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:33 판
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="{"_":"OO.ui.ButtonInputWidget","type":"submit","value":"\ubc14\uafb8\uae30","flags":["primary","progressive"],"label":"\ubc14\uafb8\uae30","classes":["mw-htmlform-submit"]}"><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>';
}
}