Skip to content

Instantly share code, notes, and snippets.

@felixfbecker
Created September 16, 2021 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixfbecker/67616a5b33cb24861138f252c0f18c7c to your computer and use it in GitHub Desktop.
Save felixfbecker/67616a5b33cb24861138f252c0f18c7c to your computer and use it in GitHub Desktop.
Restore Cmd+F on GitHub Beta boards
// ==UserScript==
// @name Restore Cmd+F on GitHub Beta boards
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Felix Becker
// @match https://github.com/orgs/sourcegraph/projects/*
// @icon https://www.google.com/s2/favicons?domain=github.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.addEventListener('keydown', event => {
if (event.key === 'f' && (event.metaKey || event.ctrlKey)) {
event.stopImmediatePropagation()
}
}, { capture: true })
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment