window.onmouseup = () => { console.log(window.getSelection().toString()); }
document.getSelection().anchorNode.textContent