er('click', gatherCandidates);
        clearBtn.addEventListener('click', clearResults);
        checkBtn.addEventListener('click', checkBrowserSettings);
        
        // Auto-run if in OBS
        if (window.obsstudio !== undefined) {
            setTimeout(async () => {
                // First check browser settings
                await checkBrowserSettings();
                // Then gather candidates
                setTimeout(() => {
                    gatherCandidates();
                }, 100);