미디어위키:Common.js: 두 판 사이의 차이
Resultofunion (토론 | 기여) 편집 요약 없음 |
Resultofunion (토론 | 기여) 편집 요약 없음 |
||
| 40번째 줄: | 40번째 줄: | ||
}); | }); | ||
} | } | ||
} | |||
/*모든 문서 */ | |||
if (mw.config.get('wgPageName').toLowerCase() == '미디어위키:commonpages') { | |||
var list = document.querySelectorAll('.mw-allpages-body li'); | |||
for (var i = 0; i < list.length; i++) { | |||
var title = list[i].querySelector('a').title; | |||
if (title.indexOf(':') != -1) { | |||
list[i].parentNode.removeChild(list[i]); | |||
} | |||
} | |||
document.querySelector('.cog-commonpages').style.display = ''; | |||
} | } | ||