Force Select

Stop sites from disabling text selection.

  1. // ==UserScript==
  2. // @name Force Select
  3. // @homepage https://github.com/ghoulatsch
  4. // @namespace https://superuser.com/questions/1282718/how-do-websites-block-selecting-text-and-how-do-i-unblock-that/
  5. // @version 240923
  6. // @description Stop sites from disabling text selection.
  7. // @author see namespace
  8. // @match *://m.youtube.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. let style = document.createElement('style');
  17. style.innerHTML = '*{ user-select: auto !important; }';
  18.  
  19. document.body.appendChild(style);
  20. })();