// ==UserScript== // @name Fullscreen Hotkey // @version 1.2.0 // @author aminomancer // @homepageURL https://github.com/aminomancer // @description All this does is remap the fullscreen shortcut from F11 to Ctrl+E, since I already use F11 for other stuff. // @downloadURL https://cdn.jsdelivr.net/gh/aminomancer/uc.css.js@master/JS/fullscreenHotkey.uc.js // @updateURL https://cdn.jsdelivr.net/gh/aminomancer/uc.css.js@master/JS/fullscreenHotkey.uc.js // @license This Source Code Form is subject to the terms of the Creative Commons Attribution-NonCommercial-ShareAlike International License, v. 4.0. If a copy of the CC BY-NC-SA 4.0 was not distributed with this file, You can obtain one at http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. // ==/UserScript== SessionStore.promiseInitialized.then(() => { for (let keyId of ["key_enterFullScreen", "key_exitFullScreen"]) { let key = document.getElementById(keyId); key.removeAttribute("keycode"); key.setAttribute("key", "E"); key.setAttribute("modifiers", "accel"); } let keySearchAlt = document.getElementById("key_search2"); if (keySearchAlt?.getAttribute("key") === "E") { keySearchAlt.setAttribute("modifiers", "accel,shift"); } });