Created
March 19, 2026 09:11
-
-
Save matheusfaustino/9ac4afd1a32925af3e865cc8908747b3 to your computer and use it in GitHub Desktop.
user.js Ferdium convert ctrl+k to alt+k whatsapp (more ergonomic)
This file contains hidden or 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
| module.exports = (config, Ferdium) => { | |
| // Write your scripts here | |
| // console.log("Hello, World!", config); | |
| document.addEventListener('keydown', (event) => { | |
| if (event.ctrlKey && event.key === 'k') { | |
| event.preventDefault(); | |
| event.stopPropagation(); | |
| const altK = new KeyboardEvent('keydown', { | |
| key: 'k', | |
| code: 'KeyK', | |
| altKey: true, | |
| bubbles: true, | |
| cancelable: true, | |
| }); | |
| document.dispatchEvent(altK); | |
| } | |
| }, true); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment