Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

How to avoid pop up appearing in the screen middle top when playing video full-screen ?

  • 1 odpověď
  • 1 má tento problém
  • 1 zobrazení
  • Poslední odpověď od Gingerbread Man

more options

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.

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.

Všechny odpovědi (1)

more options

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:

  1. Install Stylish and restart Firefox when prompted.
  2. Click the Stylish icon on the navigation toolbar and choose Write New Style, then Blank style.
  3. 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.