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>
This commit is contained in:
52 files changed
+1193
-629
No files matched your search
@@ -0,0 +1,37 @@
|
||||
(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);
|
||||
})();
|
||||
Reference in new issue
Block a user