Created
July 26, 2022 21:16
-
-
Save 3200pro/9548ff1a77ee3eb1f94ffff3b637cbc0 to your computer and use it in GitHub Desktop.
Get selected text on web page
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
const getSelectedText = () => window.getSelection().toString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment