toggle full screen by clicking or pointing at the top
1 rating
)Overview
Enter full screen by left clicking on the page. Exit full screen by pointing at the top of the screen. Since:…
Enter full screen by left clicking on the page. Exit full screen by pointing at the top of the screen. Since: https://superuser.com/questions/1368977/how-to-re-enable-proper-full-screen-mode-in-chrome-with-display-of-toolbar-on-ho https://groups.google.com/a/chromium.org/g/chromium-discuss/c/f9r8ZsaMm9o/m/43l1YN1KCwAJ https://support.google.com/chrome/thread/67228761/how-to-show-tabs-bar-in-chrome-full-screen-mode-just-like-in-firefox. Why enter full screen by left clicking on the page, why don't just use the mouseenter event, no need to click? document.documentElement.requestFullscreen() needs a user gesture, to avoid abuse. But: chrome://flags/#automatic-fullscreen-content-setting https://chromestatus.com/feature/6218822004768768, the .js would be: function $(){document.addEventListener("mouseenter",()=>{document.documentElement.requestFullscreen() _=new AbortController() addEventListener("mousemove",e=>{if(e.y==0){document.exitFullscreen() _.abort() $()}},{signal:_.signal})},{once:true})} $()
Details
- Version1
- UpdatedFebruary 5, 2025
- Offered byjebez
- Size3.45KiB
- LanguagesEnglish
- Developer
Email
jeremy.bezairie@gmail.com - Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
This developer declares that your data is
- Not being sold to third parties, outside of the approved use cases
- Not being used or transferred for purposes that are unrelated to the item's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes