Files
whitelist-bypass/creator-app/call-checker.js
T
c8e1ba444d V0.1.9 (#26)
* fix: prevent duplicate call link detection (#23)

Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local>

* bot improvements (#25)

Co-authored-by: Maksim <maksim@MBP-Maksim.lan>

* headless vk video creator

* add scroll to logs

* allow peer reconnection

* add todo about topology changes, kick stale peer to prevent SFU topology

* unified relay for headless

* remove relay binaries, extend build-go.sh to build them

* refactor constants

* limit headless resource usage

* nuke everyone and yourself at sfu topology changes

* add headless for creator

* save bot enabled state

* increment release version

---------

Co-authored-by: Nevenuga <80585376+Nevenuga@users.noreply.github.com>
Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local>
Co-authored-by: Maksim <maksim@MBP-Maksim.lan>
Co-authored-by: kulikov <user@Mac.lan>
2026-04-02 22:52:56 +02:00

25 lines
856 B
JavaScript

(function() {
if (window.__callCheckerStarted) return;
window.__callCheckerStarted = true;
var tabId = window.__CALL_CHECKER_TAB_ID || 'unknown';
console.log('[CALL_STATUS] Checker started for ' + tabId);
const checkCallStatus = () => {
var vkBtn = document.querySelector('button[data-testid="calls_call_footer_button_leave_call"]') ||
document.querySelector('[data-testid="calls_call_footer_button_leave_call"]');
var tmBtn = document.querySelector('[data-testid="end-call-alt-button"]') ||
document.querySelector('button[data-testid="end-call-alt-button"]');
var status = (vkBtn || tmBtn) ? 'active' : 'inactive';
console.log('[CALL_STATUS] ' + tabId + ':' + status);
};
setTimeout(function() {
checkCallStatus();
setInterval(checkCallStatus, 10000);
}, 10000);
})();