Created
December 5, 2022 11:30
-
-
Save hekt/e4d0813ad3a25f6b4dde55bc38ca7cc1 to your computer and use it in GitHub Desktop.
disable ^J 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 Notion ^J disabler | |
// @namespace https://kzt.sh/ | |
// @version 0.1 | |
// @description disable ^J on notion.so | |
// @author [email protected] | |
// @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