HNHacker News
TopNewBestAskShowJobs

EvanZimmer

1 karma · joined June 15, 2021

Just coding random stuff
submissionscomments
EvanZimmer··on Anyone knows how to access React.js components through a Greasemonkey script?
I have made some spaghetti hacks so far, using this little library I've found https://github.com/vitalyq/react-trigger-change , that are able to invoke focus and some input changes calling the dispatchevent. But it's very unstable to say the least! like a setinterval I have will stop midway and run again, like complete crazy. I'm trying to put some input text to a component that I suspect is made with draft.js, and sometimes the input will go in, other times it wont, ot it will be just scribbles.
EvanZimmer··on Anyone knows how to access React.js components through a Greasemonkey script?
yeah, been using jq for ages, unfortunately jq modifies the dom, not the virtual dom react.js is running on