Skip to content

Instantly share code, notes, and snippets.

@khanghh
Last active January 30, 2019 13:49
Show Gist options
  • Save khanghh/5bb3c0037cfac0ecf5af7d8c60036831 to your computer and use it in GitHub Desktop.
Save khanghh/5bb3c0037cfac0ecf5af7d8c60036831 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Remove disable copy
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var head = document.getElementsByTagName('head')[0];
var style = document.createElement('style');
var cssText = document.createTextNode('*{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}');
style.appendChild(cssText);
head.appendChild(style);
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment