<script> document.addEventListener('copy', function(e) { let selectedText = window.getSelection().toString(); if (selectedText.length > 50) { let pageLink = '\n\nRead more: ' + window.location.href; let copyText = selectedText + pageLink; if (e.clipboardData) { e.clipboardData.setData('text/plain', copyText); e.preventDefault(); } } }); </script>