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-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name No Fullscreen Dropdown
  3. // @namespace https://github.com/tientq64/userscripts
  4. // @version 0.3.1
  5. // @description Real fullscreen instead of fullscreen dropdown, very annoying when playing games. Useful for Microsoft Edge. Press Shift+F11 to toggle fullscreen.
  6. // @author https://github.com/tientq64
  7. // @icon https://cdn-icons-png.flaticon.com/64/4785/4785776.png
  8. // @match *://*/*
  9. // @license MIT
  10. // @grant none
  11. // @homepage https://github.com/tientq64/userscripts/tree/main/scripts/no-fullscreen-dropdown
  12. // ==/UserScript==
  13.  
  14. window.addEventListener('keydown', (event) => {
  15. if (event.repeat || event.ctrlKey || event.altKey || event.metaKey) return
  16. if (event.code === 'F11' && event.shiftKey) {
  17. if (document.fullscreenElement) {
  18. document.exitFullscreen()
  19. } else {
  20. document.documentElement.requestFullscreen()
  21. }
  22. }
  23. })

QingJ © 2025

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