Skip to main content
The 2024 Developer Survey results are live! See the results

The simplest way to solve this problem is by using a bookmarklet:

  1. In your browser create a new bookmark.

    In your browser create a new bookmark.
  2. Name it, for example, "Enable Selection" (without quotes), or however you like.

    Name it, for example, "Enable Selection" (without quotes), or however you like.
  3. In the location textbox paste this code:

    javascript:(function(){var style=document.createElement('style'); style.innerHTML='*{user-select: auto !important;} ::selection{background-color: blue !important; color: white !important}'; document.body.appendChild(style); document.body.onselectstart=function(){return true}; document.body.onmousedown=function(){return true}; document.onkeydown=function(){return true}; })();

    In the location textbox paste this code:
javascript:(function(){var style=document.createElement('style');
style.innerHTML='*{user-select: auto !important;} ::selection{background-color: blue !important; color: white !important}';
document.body.appendChild(style);
document.body.onselectstart=function(){return true};
document.body.onmousedown=function(){return true};
document.onkeydown=function(){return true};
})();

So whenever you want to enable text selection on some annoying web site, just click on this bookmark.

This code takes care of most frequent CSS and JavaScript-based ways that a-holes use to disable text selection on their web sites. Although some less frequent ways might require some additional adjustments to the code.

The simplest way to solve this problem is by using a bookmarklet:

  1. In your browser create a new bookmark.

  2. Name it, for example, "Enable Selection" (without quotes), or however you like.

  3. In the location textbox paste this code:

    javascript:(function(){var style=document.createElement('style'); style.innerHTML='*{user-select: auto !important;} ::selection{background-color: blue !important; color: white !important}'; document.body.appendChild(style); document.body.onselectstart=function(){return true}; document.body.onmousedown=function(){return true}; document.onkeydown=function(){return true}; })();

So whenever you want to enable text selection on some annoying web site, just click on this bookmark.

This code takes care of most frequent CSS and JavaScript-based ways that a-holes use to disable text selection on their web sites. Although some less frequent ways might require some additional adjustments to the code.

The simplest way to solve this problem is by using a bookmarklet:

  1. In your browser create a new bookmark.
  2. Name it, for example, "Enable Selection" (without quotes), or however you like.
  3. In the location textbox paste this code:
javascript:(function(){var style=document.createElement('style');
style.innerHTML='*{user-select: auto !important;} ::selection{background-color: blue !important; color: white !important}';
document.body.appendChild(style);
document.body.onselectstart=function(){return true};
document.body.onmousedown=function(){return true};
document.onkeydown=function(){return true};
})();

So whenever you want to enable text selection on some annoying web site, just click on this bookmark.

This code takes care of most frequent CSS and JavaScript-based ways that a-holes use to disable text selection on their web sites. Although some less frequent ways might require some additional adjustments to the code.

Source Link
and his dog
  • 517
  • 1
  • 6
  • 17

The simplest way to solve this problem is by using a bookmarklet:

  1. In your browser create a new bookmark.

  2. Name it, for example, "Enable Selection" (without quotes), or however you like.

  3. In the location textbox paste this code:

    javascript:(function(){var style=document.createElement('style'); style.innerHTML='*{user-select: auto !important;} ::selection{background-color: blue !important; color: white !important}'; document.body.appendChild(style); document.body.onselectstart=function(){return true}; document.body.onmousedown=function(){return true}; document.onkeydown=function(){return true}; })();

So whenever you want to enable text selection on some annoying web site, just click on this bookmark.

This code takes care of most frequent CSS and JavaScript-based ways that a-holes use to disable text selection on their web sites. Although some less frequent ways might require some additional adjustments to the code.