User:Gary/compact FACs.js

addOnloadHook(function {	if (wgCanonicalNamespace == 'Project' && wgTitle == 'Featured article candidates')		addPortletLink('p-tb', 'javascript:compactFACs', 'Compact FACs', 't-compact-facs', 'Compact Featured Article Candidates', , ) })

function compactFACs {	results = document.getElementsByTagName('h3') var titles = new Array for (var i = 0; i < results.length; i++) {		titles.push(results.item(i).innerHTML) }

titles = titles.slice(1, titles.length) document.body.innerHTML = ''

for (var i = 0; i < titles.length; i++) {		var h3 = document.createElement('h3') h3.innerHTML = titles[i] document.body.appendChild(h3) } }