No Fullscreen Dropdown

Real fullscreen instead of fullscreen dropdown, very annoying when playing games. Useful for Microsoft Edge. Press Shift+F11 to toggle fullscreen.

目前为 2024-06-21 提交的版本。查看 最新版本

// ==UserScript==
// @name         No Fullscreen Dropdown
// @namespace    https://github.com/tientq64/userscripts
// @version      0.3.1
// @description  Real fullscreen instead of fullscreen dropdown, very annoying when playing games. Useful for Microsoft Edge. Press Shift+F11 to toggle fullscreen.
// @author       https://github.com/tientq64
// @icon         https://cdn-icons-png.flaticon.com/64/4785/4785776.png
// @match        *://*/*
// @license      MIT
// @grant        none
// @noframes
// @homepage     https://github.com/tientq64/userscripts/tree/main/scripts/no-fullscreen-dropdown
// ==/UserScript==

window.addEventListener('keydown', (event) => {
	if (event.repeat || event.ctrlKey || event.altKey || event.metaKey) return
	if (event.code === 'F11' && event.shiftKey) {
		if (document.fullscreenElement) {
			document.exitFullscreen()
		} else {
			document.documentElement.requestFullscreen()
		}
	}
})

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址