Skip to content

Instantly share code, notes, and snippets.

@oieioi
Created June 7, 2023 02:17
Show Gist options
  • Save oieioi/856be1e15c8373db54b222cb5232b1e0 to your computer and use it in GitHub Desktop.
Save oieioi/856be1e15c8373db54b222cb5232b1e0 to your computer and use it in GitHub Desktop.
Disable keybingings on Notion.so
// ==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