Skip to content

Instantly share code, notes, and snippets.

@giuseppeg
Created December 26, 2022 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuseppeg/d705b52bc4287f19a8a20a0d6691e2b4 to your computer and use it in GitHub Desktop.
Save giuseppeg/d705b52bc4287f19a8a20a0d6691e2b4 to your computer and use it in GitHub Desktop.
// cmd+j and paste then proceed with frame recording
// when you press start it'll automatically start recording too.
document.addEventListener('click', async e => {
if (e.target.closest('button[class*="ExportButton"]')) {
let button
while (!button) {
button = document.querySelector('[class^="Timer_container"] + button')
if (!button) {
await new Promise(r => setTimeout(r))
}
}
button.click()
}
}, { capture: true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment