Skip to content

Instantly share code, notes, and snippets.

@evaristorivi
Last active June 7, 2023 20:07
Show Gist options
  • Save evaristorivi/e0645eead6b59bbdd0914786d16c42bd to your computer and use it in GitHub Desktop.
Save evaristorivi/e0645eead6b59bbdd0914786d16c42bd to your computer and use it in GitHub Desktop.
Force Enable Text Selection
// ==UserScript==
// @name Force Select
// @version 1.0
// @description Stop sites from disabling selection of text
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let style = document.createElement('style');
style.innerHTML = '*{ user-select: auto !important; }';
document.body.appendChild(style);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment