Bookmarklets for generating a whatsapp message with links inviting others to join your streamyard transmission.
Copy and paste the scripts below into https://caiorss.github.io/bookmarklet-maker/ to create the bookmarklet.
Bookmarklets for generating a whatsapp message with links inviting others to join your streamyard transmission.
Copy and paste the scripts below into https://caiorss.github.io/bookmarklet-maker/ to create the bookmarklet.
(function() { | |
async function copyInvite() { | |
document.querySelector('[aria-label*="Convidar"]').click(); | |
await new Promise((resolve) => { | |
setTimeout(resolve, 500) | |
}); | |
const streamYardLink = document.querySelector('[value*="https://streamyard.com/"]').value; | |
prompt("", `Link para participações: ${streamYardLink}`) | |
} | |
copyInvite() | |
})() |
(function() { | |
async function copyInvite() { | |
const meetingTitle = document.querySelector('p').textContent; | |
const scheduleTime = document.querySelector('[class*="ScheduledTextRow"]').textContent; | |
document.querySelector('[class*="youtube"]').parentElement.parentElement.click(); | |
await new Promise((resolve) => { | |
setTimeout(resolve, 500) | |
}); | |
const youtubeLink = document.querySelector('[href*="youtube"]').href.split('link=')[1]; | |
prompt("", `${meetingTitle}, às ${scheduleTime}: ${youtubeLink}`) | |
} | |
copyInvite() | |
})() |