remove robotjs
This commit is contained in:
@@ -9,7 +9,6 @@ import {exec} from 'child_process';
|
||||
import '../proxyAgent.mjs';
|
||||
import {formatMessages} from '../formatMessages.mjs';
|
||||
import NetworkMonitor from '../networkMonitor.mjs';
|
||||
import robot from 'robotjs';
|
||||
import {detectBrowser} from '../utils/browserDetector.mjs';
|
||||
import {insertGarbledText} from './garbledText.mjs';
|
||||
import * as imageStorage from "../imageStorage.mjs";
|
||||
@@ -190,19 +189,6 @@ class YouProvider {
|
||||
return teamElement && teamElement.textContent === 'Your Team';
|
||||
});
|
||||
|
||||
if (this.isTeamAccount) {
|
||||
console.log('检测到 Team 账号');
|
||||
await sleep(3000);
|
||||
await page.goto("https://you.com/settings/team-details", {timeout: timeout});
|
||||
await sleep(3000);
|
||||
// 获取浏览器窗口标题
|
||||
const title = await page.title();
|
||||
// 将浏览器窗口切换到前台
|
||||
await this.focusBrowserWindow(title);
|
||||
robot.keyTap('r', 'control');
|
||||
await sleep(5000);
|
||||
}
|
||||
|
||||
// 如果遇到盾了就多等一段时间
|
||||
const pageContent = await page.content();
|
||||
if (pageContent.indexOf("https://challenges.cloudflare.com") > -1) {
|
||||
|
||||
Reference in New Issue
Block a user