window.addEventListener('load', function () { let elements = document.getElementsByClassName("article-holder"); for (let index = 0; index < elements.length; index++) { elements[index].style.userSelect = "auto"; elements[index].addEventListener("copy", function (event) { event.clipboardData.setData("text", window.getSelection().toString()) }) } })