steemit

Fill and submit textarea programmatically in javascript

我们两清 提交于 2019-12-19 04:25:24
问题 I'm trying to automate the submission of replies to my Steemit posts using plain JS or Jquery. I used the javascript code below but the button remains disabled and therefore does not allow to post the reply/comment. How can I correctly trigger keydown / keypress / keyup events on the textarea in order to simulate the user "classic" interaction to send a reply? Thanks Target example: https://steemit.com/usa/@gaottantacinque/happy-4th-of-july In the Dev Tools console: function nap (durationMs)

Fill and submit textarea programmatically in javascript

ぃ、小莉子 提交于 2019-12-01 01:18:25
I'm trying to automate the submission of replies to my Steemit posts using plain JS or Jquery. I used the javascript code below but the button remains disabled and therefore does not allow to post the reply/comment. How can I correctly trigger keydown / keypress / keyup events on the textarea in order to simulate the user "classic" interaction to send a reply? Thanks Target example: https://steemit.com/usa/@gaottantacinque/happy-4th-of-july In the Dev Tools console: function nap (durationMs) { new Promise(resolve => setTimeout(() => resolve(), durationMs)) } async function replyToPost() { var