Create new Google Meet and share URL on Slack

A simple script to create a new Google Meet and paste the generated URL on the current Slack chat.

Open meet in Script Kit

// 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)