javascript:(function() { var selectedText = window.getSelection().toString(); var currentURL = window.location.href; var encodedSelectedText = encodeURIComponent(selectedText); var formattedURL = currentURL + '#:~:text='%20+%20encodedSelectedText;%20%20%20%20%20%20var%20combinedText%20=%20selectedText%20+%20'\n'%20+%20formattedURL;%20%20%20%20%20%20var%20dummyInput%20=%20document.createElement('textarea');%20%20%20%20%20document.body.appendChild(dummyInput);%20%20%20%20%20dummyInput.value%20=%20combinedText;%20%20%20%20%20dummyInput.select();%20%20%20%20%20document.execCommand('copy');%20%20%20%20%20document.body.removeChild(dummyInput);%20})();
javascript:(function() { var selectedText = window.getSelection().toString(); var currentURL = window.location.href; var encodedSelectedText = encodeURIComponent(selectedText); var formattedURL = currentURL + '#:~:text='%20+%20encodedSelectedText;%20%20%20%20%20%20var%20combinedText%20=%20selectedText%20+%20'\n'%20+%20formattedURL;%20%20%20%20%20%20var%20dummyInput%20=%20document.createElement('textarea');%20%20%20%20%20document.body.appendChild(dummyInput);%20%20%20%20%20dummyInput.value%20=%20combinedText;%20%20%20%20%20dummyInput.select();%20%20%20%20%20document.execCommand('copy');%20%20%20%20%20document.body.removeChild(dummyInput);%20})();