Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Small JavaScript function to allow user using context menu or selecting text on some damn web pages.
(function () {
var d = document;
d.oncontextmenu = null;
d.ondragstart = null;
d.onselectstart = null;
d.body.style.MozUserSelect = '';
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment