Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

How can I enable sound on pop-up blocked

  • 6 답장
  • 0 이 문제를 만남
  • 1 보기
  • 최종 답변자: jpnyc

more options

Is there a way to enable sounds when the built in pop-up blocker blocks a pop-up or make the banner more noticeable? I often dont realize a pop-up has been blocked and cant figure out why I' not getting the new content

Is there a way to enable sounds when the built in pop-up blocker blocks a pop-up or make the banner more noticeable? I often dont realize a pop-up has been blocked and cant figure out why I' not getting the new content

선택된 해결법

OK, I checked this in Firefox 115 ESR (should have done this or I missed you are on Windows 7) and I see that there is an extra DIV.container.infobar present that sets text and background color in ESR 115.

There is Shadow DOM used, this selector works (you can't cross Shadow DOM with userChrome.css).

.container.infobar {background: #ffe900 !important; color: #0c0c0d !important;}

This code to modify some CSS variables works for me as well.

.container.infobar {
  --in-content-page-background: #ffe900 !important;
  --message-bar-background-color: #ffe900 !important;
  --message-bar-text-color: #0c0c0d !important;
}
문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (6)

more options

You can use code in userChrome.css to make this notification bar more noticeable.

notification-message{background: #ffe900 !important; color: #0c0c0d !important;}

It is not that difficult to create userChrome.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder with the random name (xxxxxxxx.default-release).

You can find the button to go to the profile folder under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in the profile folder with the random name (name is all lowercase). In the chrome folder you need to create a plain text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userChrome.css file as a plain text file.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt or .css file extension and you end up with a file like userChrome.css.txt or userChrome.css.css. To avoid this, you need to make sure to select "All files" in the "Save File" dialog in the text editor.

You need to close (Quit/Exit) and restart Firefox when you create or modify the userChrome.css file.

More info about userChrome.css/userContent.css in case you are not familiar:

In Firefox 69 and later you need to set this pref to true in about:config to enable userChrome.css and userContent.css.

글쓴이 cor-el 수정일시

도움이 되셨습니까?

more options

That's a good idea. I use UserChrome for a lot of stuff. I tried the css for the notification-message but it is not changing the default colors.

I created a test UserChrome with only:

notification-message{background: #ffe900 !important; color: #0c0c0d !important;} and .tabbrowser-tab:not([selected=true]) .tab-background{background-color: green; border-width: 10px !important;}

I also changes my theme to the default light theme

I do get the modifications to the inactive tabs, but not the pop-up info bar.

I checked the css element in the DOM explorer and notification-message element is correct.

What am I missing?

도움이 되셨습니까?

more options

Note that in current releases best is to use .tabbrowser-tab:not([selected]) and no longer add =true.

Are you blocking pop-ups?

I used pages like these to verify that the code still works with the built-in pop-up blocker enabled.

If you have other pop-up blockers then you may have to disable them.

도움이 되셨습니까?

more options

This is exactly the page I was using to test: https://www.dummysoftware.com/popupdummy_testpage.html

I get the banner, but not the modified CSS.

I dont have any other pop-up blockers, and at the moment I'm testing with all extension off

도움이 되셨습니까?

more options

선택된 해결법

OK, I checked this in Firefox 115 ESR (should have done this or I missed you are on Windows 7) and I see that there is an extra DIV.container.infobar present that sets text and background color in ESR 115.

There is Shadow DOM used, this selector works (you can't cross Shadow DOM with userChrome.css).

.container.infobar {background: #ffe900 !important; color: #0c0c0d !important;}

This code to modify some CSS variables works for me as well.

.container.infobar {
  --in-content-page-background: #ffe900 !important;
  --message-bar-background-color: #ffe900 !important;
  --message-bar-text-color: #0c0c0d !important;
}

도움이 되셨습니까?

more options

Thanks. Works great :-)

도움이 되셨습니까?

질문하기

글에 답글을 달기 위해서는 계정으로 로그인해야만 합니다. 계정이 아직 없다면 새로운 질문을 올려주세요.