How to avoid pop up appearing in the screen middle top when playing video full-screen ?
I created a landing page with embedded video hosted on Vimeo. When I click to play the video full-screen there's always a pop up window in the middle top saying the meaning like Vimeo is playing full-screen, press escape to get out of it. I don't want that pop up from appearing, I am wondering if any code I can put on the embedded video to prevent the pop up ? Thank you very much.
Всички отговори (1)
No, as a web developer, you can't tamper with that message. The point is to prevent a situation where the user is trapped in full screen, as would happen if full screen is initiated by the page and the page doesn't provide controls to exit full screen.
If users trust the site in question, they can check the "Never ask me again for this domain" checkbox to avoid the message in the future. Users can also get rid of all such messages altogether:
- Install Stylish and restart Firefox when prompted.
- Click the Stylish icon on the navigation toolbar and choose Write New Style, then Blank style.
- Paste the following in the text box, give the style a name, then click the Save button.
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #fullscr-toggler, #full-screen-warning-container { display: none !important }
If you don't want to install an add-on, you can use the userChrome.css file instead, but I don't recommend it. In that file, the first line of the style should only appear once at the top.