Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Remove close-window-button or remove the whole tab part in fullscreen without GNOME topbar

  • 4 réponses
  • 1 a ce problème
  • 3 vues
  • Dernière réponse par wyt94yx

more options

Is there any way to remove the close-window-button or the whole tab part. I want to avoid the user close the browser. I know there is Kiosk mode, but kiosk mode seems cannot keep back button

Is there any way to remove the close-window-button or the whole tab part. I want to avoid the user close the browser. I know there is Kiosk mode, but kiosk mode seems cannot keep back button
Captures d’écran jointes

Toutes les réponses (4)

more options

You can modify your userChrome.css file to hide the tabs and close window button.

Firstly, create a userChrome.css file. Refer to the link below for step-by-step instructions. How to Create a userChrome.css File

Secondly, for the CSS code, refer to jscher2000's solution in a previous thread below. Remove Tabs on Top

more options

Hi strafy, Thank you for your help. I create userChrome.css and enable toolkit.legacyUserProfileCustomizations.stylesheets. Then, I use the code from the link "Remove Tabs on Top". But it still display as normal firefox browser.

more options

Hi strafy, My firefox version is 78.9. After I remove the line "@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");", firefox will not show tab bar and close button!! Thank you!! But the GNOME top-bar is still there. And, there is a "quit" in the menu. How to remove menu button?

Modifié le par wyt94yx

more options

Hi strafy, My setting in userChrome.css is as following.

/* Hide all tabs and tab bar buttons */ #main-window:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {

 opacity: 0;
 pointer-events: none;

}

/* This makes the bar shorter vertically but removes the 3 window buttons */ #main-window #TabsToolbar {

 visibility: collapse !important;

}

/* For full screen mode */ #TabsToolbar[inFullscreen]{

 visibility: collapse !important; 

}

/* Hide SearchBar */ #urlbar {visibility: collapse;}

/* Hide Hambergur Menu */ #PanelUI-menu-button {display: none;}

Right now, it still has 3 problem. 1. still can't open firefox in fullscreen mode 2. In this way, it is not like Kiosk and there is the right-click menu. How to disable right-click menu?

Thank you.

Modifié le par wyt94yx