Created
February 20, 2025 03:54
-
-
Save seandong/369aa49d66683ea01605e2f4c4df37a5 to your computer and use it in GitHub Desktop.
NEXUS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkNexusConnect() { | |
if (document.body.innerText.includes("CONNECT TO NEXUS")) { | |
console.log('Trying to connect to NEXUS...'); | |
const element = document.querySelector('div.rounded-full.cursor-pointer.transition-colors.duration-300'); | |
if (element) { | |
element.click(); | |
console.log('Clicked to connect.'); | |
} else { | |
console.log('No clickable element found.'); | |
} | |
} else { | |
console.log('No connection needed.'); | |
} | |
} | |
// 每隔 10 秒检查一次 | |
setInterval(checkNexusConnect, 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment