Keyboard shortcuts in editor break standard OSX shortcuts

For other affected: here is a script for Violent Monkey:

As a bonus, this also fixes ‘find’, which is being overridden by a lot of webpages lately to do a site search instead of a page search (not discourse related at time of posting).

// ==UserScript==
// @name anti key-grabber
// @description Prevent web apps from capturing and muting vital keyboard shortcuts
// @inject-into auto
// @version 1.1
// ==/UserScript==

function antigrab(e) {
  if (! e.ctrlKey) {
    return;
  }
 
  switch (e.keyCode) {
    case 65: // A - goto beginning of line
    case 69: // E - goto end of line
    case 70: // F - find
    case 87: // W - close window
    case 84: // T - open tab
    case 75: // K - kill to end of line
    case 89: // Y - yank
      e.stopImmediatePropagation();
      e.stopPropagation();
  }
}

(function(){
unsafeWindow.document.addEventListener('keydown', antigrab, true);
})();

(inspired by: https://gist.github.com/rodneyrehm/5213304)