Created
December 20, 2021 20:19
-
-
Save ValentinH/9d2b6c1525f1eed38e6af964bad22406 to your computer and use it in GitHub Desktop.
This file contains 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
// Menu: Meet | |
// Description: Start new meet and paste on Slack | |
// Author: Valentin Hervieu | |
// Twitter: @ValentinHervieu | |
import "@johnlindquist/kit" | |
browse('https://meet.new') | |
let count = 1 | |
let tab = '' | |
while (count < 20) { | |
await wait(500) | |
tab = await getActiveTab("Brave") | |
if (!tab.startsWith('https://meet.google.com/new') && !tab.startsWith('https://meet.new')) break | |
count += 1 | |
} | |
tab = tab.split('?')[0] | |
await copy(tab) | |
await focusWindow('Slack', '') | |
await setSelectedText(tab) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment