GitHub 6219★

Get the selected text

JavaScript version

const getSelectedText = () => window.getSelection().toString();
Follow me on and to get more useful contents.