Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Created July 26, 2022 09:02
Show Gist options
  • Save GitHub30/ad41e1f5648590ebd65d9313eaecd94d to your computer and use it in GitHub Desktop.
Save GitHub30/ad41e1f5648590ebd65d9313eaecd94d to your computer and use it in GitHub Desktop.
setInterval(() => {
const jsi = document.querySelector('.js-submittable-input')
if (!jsi) return
const jct = document.querySelector('.js-compose-text')
if (jct && !jct.value) {
jct.value = ' ' + jsi.value
jct.selectionEnd = 0
}
}, 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment