V0.2.0 (#37)
* refactor go files, add headless telemost support * js crap -> ts crap * docker-build (#32) Co-authored-by: Mimocro <suzumagefag@gmail.com> * add headless telemost for creator app * UX improvements (#39) * Add search in split tunneling app list * Add captcha detection * Add autoclick settings * headless vk joiner * add headless telemost joiner * refactor go modules * redesign settings dialog * headless option in settings * headless joiner support in MainActivity * display headless vk status in statusBar * update ux for headless in creator app * fix double log render for headless mode in creator * unicode for cyrillic * add socks auth * put socksPort inf prefs, verify that port is free on start * proxy only mode * mask addresses in go network errors * update docker build, add file write logic for headless * increment release version, add make-release script --------- Co-authored-by: kulikov <user@Mac.lan> Co-authored-by: Mimocro <67226986+Mimocro@users.noreply.github.com> Co-authored-by: Mimocro <suzumagefag@gmail.com> Co-authored-by: senya <76913432+senya-sh@users.noreply.github.com>
This commit is contained in:
122 files changed
+9938
-3284
No files matched your search
+24
-1
@@ -1,6 +1,7 @@
|
||||
(function() {
|
||||
if (window.__autoclickInstalled) return;
|
||||
window.__autoclickInstalled = true;
|
||||
var wasCaptchaDetected = false;
|
||||
|
||||
var log = function() {
|
||||
var args = ['[HOOK] [autoclick]'];
|
||||
@@ -24,7 +25,7 @@
|
||||
if (inp && !inp.value) {
|
||||
log('Filling name');
|
||||
var set = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value').set;
|
||||
set.call(inp, 'Hello');
|
||||
set.call(inp, window.autofillName);
|
||||
inp.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
inp.dispatchEvent(new Event('change', { bubbles: true }));
|
||||
return;
|
||||
@@ -40,5 +41,27 @@
|
||||
}
|
||||
}
|
||||
|
||||
function scanForCaptcha() {
|
||||
var iframes = document.querySelectorAll("iframe");
|
||||
for (var i = 0; i < iframes.length; i++) {
|
||||
if (iframes[i].src.startsWith("https://id.vk.com/not_robot_captcha")) {
|
||||
if(!wasCaptchaDetected) {
|
||||
log('Captcha detected, user action required');
|
||||
AndroidBridge.onCaptchaDetected(false);
|
||||
wasCaptchaDetected = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(wasCaptchaDetected) { // assuming captcha iframe wasn't found
|
||||
log('Captcha closed or solved');
|
||||
AndroidBridge.onCaptchaDetected(true);
|
||||
wasCaptchaDetected = false;
|
||||
clearInterval(captcha_iv);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var iv = setInterval(scan, 1500);
|
||||
var captcha_iv = setInterval(scanForCaptcha, 1500);
|
||||
})();
|
||||
Reference in new issue
Block a user