- type: js
args: selector
code: |-
const connectAndSend = async function() {
// Find and click Connect button
const connectButton = Array.from(document.querySelectorAll('button.artdeco-button--primary')).find(button =>
button.querySelector('.artdeco-button__text')?.innerText.includes('Connect') &&
button.offsetParent !== null &&
window.getComputedStyle(button).display !== 'none' &&
window.getComputedStyle(button).visibility !== 'hidden'
);
if (!connectButton) {
return false;
}
connectButton.click();
// Wait 1 second
await new Promise(resolve => setTimeout(resolve, 1000));
// Find and click Send button
Array.from(document.querySelectorAll('button.artdeco-button--primary')).find(button =>
button.querySelector('.artdeco-button__text')?.innerText.includes('Send without a note') &&
button.offsetParent !== null &&
window.getComputedStyle(button).display !== 'none' &&
window.getComputedStyle(button).visibility !== 'hidden'
)?.click();
return true;
};
return connectAndSend();
param: result
timeout: 15000
onFailure: ''
silent: true
- type: say
message: '{{result}}'
All rights reserved ยฉ HARPA AI TECHNOLOGIES LLC, 2021 โ 2025
Designed and engineered in Finland ๐ซ๐ฎ