본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

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

자세히 살펴보기

Why is the scrollbar in Firefox changing color on certain sites like Youtube?

  • 3 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: cor-el

more options

I have noticed in the last few days that the scrollbar has been changing colors from site to site. On most, it remains a light grey, but on some sites, most notably Youtube, it has turned a darker color, with the scrollbar turning outright black on videos now from Youtube, but only if I'm not signed in. Meanwhile if I'm signed in, it's a darker shade of gray, but not outright black. Does anyone know what's causing this? I will include screenshots, with the scrollbars circled. The first shows the scrollbar in its normal coloration, and the following three showing Youtube, first on its main page, then one with me signed in, another with me signed out, growing progressively darker.

Is this a glitch, or something to do with their coding, or what? If someone can answer this, I'd love to know what I'm dealing with here.

I have noticed in the last few days that the scrollbar has been changing colors from site to site. On most, it remains a light grey, but on some sites, most notably Youtube, it has turned a darker color, with the scrollbar turning outright ''black'' on videos now from Youtube, but only if I'm not signed in. Meanwhile if I'm signed in, it's a darker shade of gray, but not outright black. Does anyone know what's causing this? I will include screenshots, with the scrollbars circled. The first shows the scrollbar in its normal coloration, and the following three showing Youtube, first on its main page, then one with me signed in, another with me signed out, growing progressively darker. Is this a glitch, or something to do with their coding, or what? If someone can answer this, I'd love to know what I'm dealing with here.
첨부된 스크린샷

모든 댓글 (3)

more options

They're just styling their scrollbars with css. You can modify a color and width of the scrollbar on every page.

more options

TyDraniu said

They're just styling their scrollbars with css. You can modify a color and width of the scrollbar on every page.

So it's not a glitch? Huh, weird. Is there a way to overwrite the stylization, or are we basically stuck with it?

more options

You can add code to the userContent.css file.


/* SCROLLBARS */
*{scrollbar-color:auto !important; scrollbar-width:auto !important;}

It is not that difficult to create userContent.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.

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 this folder (name is all lowercase). In the chrome folder you need to create a plain text file with the name userContent.css (name is case sensitive). In this userContent.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userContent.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 file extension and you end up with a file named userContent.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

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

See also:

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

  • toolkit.legacyUserProfileCustomizations.stylesheets = true