为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 4 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 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
已附加屏幕截图

所有回复 (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?

由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.

由wyt94yx于修改