Files
whitelist-bypass/hooks/autoclick-telemost.js
T
d6a98e84ee V0.1.8 (#20)
* Add split tunneling (#17)

* refactor imports

* remove bandwidth tests from hooks

* add autoclikers for call join

* add autoclikers for call join

* refactor - split to classes, update namings

* display bot api in console

* mute audio as a separate js script

* fix NUL byte in udp for windows

* update readme, collapse call webview, edit tab names

* fix ports allocation when target is taken

* fix ports allocation when target is taken

* increment release version

---------

Co-authored-by: senya <76913432+senya-sh@users.noreply.github.com>
Co-authored-by: kulikov <user@Mac.lan>
2026-03-29 22:55:32 +02:00

38 lines
1.1 KiB
JavaScript

(function() {
if (window.__autoclickInstalled) return;
window.__autoclickInstalled = true;
var log = function() {
var args = ['[HOOK] [autoclick]'];
for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);
console.log.apply(console, args);
};
log('Autoclick installed');
function scan() {
var all = document.querySelectorAll('[data-testid="orb-button"]');
log('scan: ' + all.length + ' orb-buttons found');
for (var i = 0; i < all.length; i++) {
var txt = (all[i].textContent || '').trim();
log(' btn[' + i + ']: "' + txt + '"');
if (txt.indexOf('Продолжить в браузере') !== -1) {
log('Clicking: Продолжить в браузере');
all[i].click();
return;
}
}
var joinBtn = document.querySelector('[data-testid="enter-conference-button"]');
if (joinBtn) {
log('Clicking: Подключиться');
joinBtn.click();
clearInterval(iv);
log('Autoclick done');
return;
}
}
var iv = setInterval(scan, 1500);
})();