Created
May 13, 2022 03:59
-
-
Save JustinStitt/f7534452fd562a93afe51497a7224ffe to your computer and use it in GitHub Desktop.
on click copy text content
This file contains 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
document.addEventListener('click', () => { | |
let question = document.getElementsByClassName('_3vK03yy396dmBwrrRmeApE')[0]; | |
console.log(question.textContent); | |
navigator.clipboard.writeText(question.textContent); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment