Disable Selections

Disable selections for ALL websites

  1. // ==UserScript==
  2. // @name Disable Selections
  3. // @namespace tag: utils
  4. // @description Disable selections for ALL websites
  5. // @author Unbroken
  6. // @match *://*/*
  7. // @version 1.00
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. var disableSelections = function() {
  12. document.getSelection = window.getSelection = function() {
  13. return { isCollapsed: true };
  14. };
  15. };
  16. var script = document.createElement ("script");
  17. script.appendChild (document.createTextNode ("(" + disableSelections + ")();"));
  18. (document.body || document.head || document.documentElement).appendChild (script);
  19. })();