Skip to content

Instantly share code, notes, and snippets.

@matheusfaustino
Created March 19, 2026 09:11
Show Gist options
  • Select an option

  • Save matheusfaustino/9ac4afd1a32925af3e865cc8908747b3 to your computer and use it in GitHub Desktop.

Select an option

Save matheusfaustino/9ac4afd1a32925af3e865cc8908747b3 to your computer and use it in GitHub Desktop.
user.js Ferdium convert ctrl+k to alt+k whatsapp (more ergonomic)
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