document.addEventListener('contextmenu', event => event.preventDefault()); // ⇓ Test it (fiddle) ⇓
document.oncontextmenu = document.body.oncontextmenu = function() {return false;}