GoGPT GoSearch New DOC New XLS New PPT

OffiDocs favicon

toggle full screen by clicking or pointing at the top in

toggle full screen by clicking or pointing at the top  screen for extension Chrome web store in OffiDocs Chromium

Ad


DESCRIPTION


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})}
$()

toggle full screen by clicking or pointing at the top web extension integrated with the OffiDocs Chromium online


Run Chrome Extensions

×
Advertisement
❤️Shop, book, or buy here — no cost, helps keep services free.