-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauto-accept-userscript.js
More file actions
44 lines (37 loc) · 1.34 KB
/
Copy pathauto-accept-userscript.js
File metadata and controls
44 lines (37 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// ==UserScript==
// @name Auto-Accept Agent Laboratory
// @namespace http://localhost/
// @version 1.0
// @description Automatically clicks START AGENT LAB button
// @author AI Grant Crawler
// @match http://localhost:5173/*
// @match http://localhost:*/*
// @grant none
// @run-at document-idle
// ==/UserScript==
(function() {
'use strict';
console.log('🤖 Auto-Accept Agent Laboratory - ACTIVATED');
// Configuration
const CHECK_INTERVAL = 1000; // Check every 1 second
const BUTTON_TEXT = 'START AGENT LAB';
// Auto-click function
function autoClickStartButton() {
// Find all buttons
const buttons = document.querySelectorAll('button');
for (const button of buttons) {
// Check if this is the START AGENT LAB button
if (button.textContent.includes(BUTTON_TEXT) && !button.disabled) {
console.log(`✨ [${new Date().toLocaleTimeString()}] Auto-clicking START AGENT LAB!`);
button.click();
return true;
}
}
return false;
}
// Set up interval to continuously check and click
setInterval(() => {
autoClickStartButton();
}, CHECK_INTERVAL);
console.log(`👀 Monitoring for "${BUTTON_TEXT}" button every ${CHECK_INTERVAL}ms`);
})();