Created
July 26, 2022 09:02
-
-
Save GitHub30/ad41e1f5648590ebd65d9313eaecd94d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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