Skip to content

Instantly share code, notes, and snippets.

@hekt
Created December 5, 2022 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hekt/e4d0813ad3a25f6b4dde55bc38ca7cc1 to your computer and use it in GitHub Desktop.
Save hekt/e4d0813ad3a25f6b4dde55bc38ca7cc1 to your computer and use it in GitHub Desktop.
disable ^J on notion.so
// ==UserScript==
// @name Notion ^J disabler
// @namespace https://kzt.sh/
// @version 0.1
// @description disable ^J on notion.so
// @author hektorg@gmail.com
// @match https://www.notion.so/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
window.addEventListener(
'keydown',
function (e) {
// disable ^J
if(e.key === 'J' && e.ctrlKey) e.stopPropagation()
}
);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment