User:Roeblocks/common.js

// "f" hotkey (Find) to open search document.addEventListener('keydown', function (e) {	if ( document.activeElement === document.body // No other input (such as a text field) is focused && !e.ctrlKey && !e.metaKey // Avoid clash with browser "find" hotkey on Win & Mac && e.key === 'f'	){		document.body.querySelector('.fandom-sticky-header .wiki-tools__search').click		e.preventDefault	} })