Skip to content

Instantly share code, notes, and snippets.

@j--w
Created September 20, 2020 10:02
Show Gist options
  • Save j--w/faf3444785ba3f1ccb7b4786bd24b6b2 to your computer and use it in GitHub Desktop.
Save j--w/faf3444785ba3f1ccb7b4786bd24b6b2 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name CMD B Block
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.addEventListener('keydown', event => {
if(event.keyCode === 66 && (event.metaKey || event.ctrlKey)) {
event.preventDefault();
event.stopPropagation();
}
})
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment