Skip to content

Instantly share code, notes, and snippets.

@TitusRobyK
Last active November 19, 2025 19:52
Show Gist options
  • Select an option

  • Save TitusRobyK/7777cea96cc72620112282f7403d0842 to your computer and use it in GitHub Desktop.

Select an option

Save TitusRobyK/7777cea96cc72620112282f7403d0842 to your computer and use it in GitHub Desktop.
#Copy paste this gist in to your browser Console.
(function() {
const style = document.createElement('style');
style.innerHTML = `
*, *::before, *::after {
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
user-select: text !important;
}
`;
document.head.appendChild(style);
const events = ['copy', 'cut', 'paste', 'selectstart', 'contextmenu', 'mousedown', 'mouseup'];
events.forEach(event => {
window.addEventListener(event, function(e) {
e.stopPropagation();
}, true);
});
console.log("Copy/Paste restrictions removed.");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment