Created
June 7, 2023 02:17
-
-
Save oieioi/856be1e15c8373db54b222cb5232b1e0 to your computer and use it in GitHub Desktop.
Disable keybingings on Notion.so
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name stop keybindings | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.notion.so/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=notion.so | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.addEventListener('keydown', function(event) { | |
if (event.ctrlKey) { | |
if (event.code === 'KeyJ' || event.code === 'Semicolon') { | |
console.log('stop!'); | |
event.stopPropagation(); | |
event.preventDefault(); | |
} | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment