Clear Console using Cmd+K

12/10/2021, 8:13:24 PM

// ==UserScript==
// @name        Clear Console using Cmd+K
// @namespace   Violentmonkey Scripts
// @match       http*://*.*/*
// @grant       none
// @version     1.0
// @author      dutzi
// @license     MIT
// @description 12/10/2021, 8:13:24 PM
// ==/UserScript==

window.addEventListener('keydown', (e) => {
  if (e.key === 'k' && e.metaKey) {
    console.clear()
  }
})