Skip to main content
The 2024 Developer Survey results are live! See the results
10 events
when toggle format what by license comment
Feb 15 at 11:43 comment added KalleMP Does not seem to work for me on the following site. I wanted to translate the description tab text of the product and that is the ONLY thing on the page that I cannot drag select. The cursor changes to "I" beam and Ctrl-A worked but weird. nadir.com.br/…
Jan 10 at 20:57 comment added Al Ro So much better than installing an extension. Zero extra resources, works just as well. Note that at least in chrome if you try to copy and paste this into the address bar the JavaScript protocol will be stripped out, though you can type it again and it will work.
May 15, 2023 at 8:48 comment added invinciblemuffi Works perfect. Thank for saving time and effort.
Jan 1, 2023 at 13:43 comment added Whoever Best solution for the challenged and lazy @rses ^_^
Dec 27, 2022 at 17:10 comment added KingRider nice, need more one code with context after onselectstart, we need context for copy a text document.body.oncontextmenu=function(){return true};
Jul 11, 2022 at 20:16 comment added t3chb0t I came across a webpage where appending a style element didn't work so I changed it to this: var body = document.getElementsByTagName("body")[0]; body.setAttribute("style", 'user-select: auto !important;-webkit-user-select: auto !important;');
S May 16, 2022 at 15:10 history suggested DarkDiamond CC BY-SA 4.0
Improved formatting to code
May 16, 2022 at 5:38 review Suggested edits
S May 16, 2022 at 15:10
Feb 4, 2022 at 8:28 comment added towe Works great! This should be the new accepted answer
Dec 2, 2021 at 23:38 history answered and his dog CC BY-SA 4.0