(() => { const container = document.querySelector('#counters'); container.querySelectorAll('[data-r357api-role="label"]').forEach((label) => { label.innerText = label.innerText.replace('%votes%', '17 149'); }); container.querySelectorAll('[data-r357api-role="bar"]').forEach((bar) => { const max = bar.getAttribute('data-r357api-max') ?? 15000; bar.style.width = Math.round((17149 / max) * 100) + '%'; }); if ( // window.location.href.indexOf('test=test') !== -1 && 17149 > 0 ) { container.setAttribute('data-r357api-state', 'loaded'); } })();