MediaWiki:Common.js/Wikinews:Newsroom

$(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); } });