MediaWiki:Common.js/Wikinews:Newsroom

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

$(function () { var lis1 = document.getElementById('badlyFlagged'); var lis = (lis1 ? lis1.getElementsByTagName('li') : [] ); var article, a; for (var i = 0; i < lis.length; i++) { article = encodeURIComponent(lis[i].firstChild.firstChild.data); a = document.createElement('a'); a.href = '//en.wikinews.org/wiki/User:Bawolff/sandbox/powerFlag?pf-title=' + article; a.style.fontStyle = 'italic'; a.appendChild(document.createTextNode(' (re-flag) ')); lis[i].appendChild(a); } });