GitHub 6521★

Get the selected text

JavaScript version

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