搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Can no longer stop websites from suppresing standard menus

  • 3 回覆
  • 1 有這個問題
  • 4 次檢視
  • 最近回覆由 Terry

more options

Back in 2019 I learned how to set Firefox so that a website opening a new window would always include standard menus (the website could not suppress them). Now I get windows without the menus and controls I need.

I used some combination of 

dom.disable_window_open_feature.menubar

   and

dom.event.contextmenu.enabled

These haven't done the job for over a year now.

How do I do this now?

Thanks in advance, Lawrence

p.s. I note that I run Windows 8.1 (up-to-date), but have a Windows 10 I could use if it would work better there (up-to-date).

Back in 2019 I learned how to set Firefox so that a website opening a new window would always include standard menus (the website could not suppress them). Now I get windows without the menus and controls I need. I used some combination of dom.disable_window_open_feature.menubar and dom.event.contextmenu.enabled These haven't done the job for over a year now. How do I do this now? Thanks in advance, Lawrence p.s. I note that I run Windows 8.1 (up-to-date), but have a Windows 10 I could use if it would work better there (up-to-date).

所有回覆 (3)

more options

Toolbars in Popup Windows

Hi Lawrence, this change was made more than two years ago. Starting in Firefox 76, Firefox removed the option to keep additional bars visible when a site launches a window that specifies certain features, such as height and width.

In the absence of built-in exception, I've been using an unofficial, community-supported workaround, which is custom style rules in a userChrome.css file. Specifically, this keeps the full toolbar available (but not tabs, menu bar, or bookmarks):

/* Override Hiding of Toolbar Buttons in Limited Feature Windows */
*|*:root[chromehidden~="toolbar"] .chromeclass-toolbar-additional {
  display: -moz-box !important; /* default is display: none */
}


More info in older threads:

Right-click Context Menus

The dom.event.contextmenu.enabled preference should still work for preventing sites from replacing Firefox's normal context menus in web pages. It is not related to toolbars in popup windows.

有幫助嗎?

more options

Thanks! Still considering if I'm too intimidated to try a custom userChrome.css . I can probably handle it if I have enough time to go slowly. (Just a matter of my personal level of technical know-how.)

有幫助嗎?

more options

There's a guide below (remove the blank space).

https://www.userchrome. org/how-create-userchrome-css.html

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題