미디어위키:Common.js: 두 판 사이의 차이
Resultofunion (토론 | 기여) 편집 요약 없음 |
Resultofunion (토론 | 기여) 편집 요약 없음 |
||
| 8번째 줄: | 8번째 줄: | ||
window.location.href = '/index.php'; | window.location.href = '/index.php'; | ||
} | } | ||
console.log(' | console.log('NonMembers'); | ||
var $duplicates = document.getElementById('mw-imagepage-section-duplicates'); | |||
if($duplicates) $tb.parentElement.removeChild($duplicates); | |||
} | } | ||
| 288번째 줄: | 290번째 줄: | ||
window.addEventListener('load', function(){ | window.addEventListener('load', function(){ | ||
if(mw.user.getId() == 0){ | if(mw.user.getId() == 0){ | ||
var $tb = document.querySelector('.mw-portlet-tb'); | var $tb = document.querySelector('.mw-portlet-tb'); | ||
if($tb) $tb.parentElement.removeChild($tb); | if($tb) $tb.parentElement.removeChild($tb); | ||
} | } | ||
}); | }); | ||