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

Mozilla 도움말 검색

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

자세히 살펴보기

How to create userChrome.css file

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

more options

I'm trying to adjust the spacing of the lines in the bookmarks sidebar (in recent versions, the line height is excessive and increases the amount of scrolling needed). The plugin I tried worked, but caused Firefox to use way too much CPU on my Mac Book Pro.

So I'm trying to solve the problem with a userChrome.css file instead. I found this code elsewhere on the support site:

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

/* Tighten up bookmark tree in Fx25 */ .sidebar-placesTree treechildren::-moz-tree-row, .placesTree treechildren::-moz-tree-row { height: 1.3emÊ!important; border-width: 1pxÊ!important; } I created the file, made sure the file suffix is .css and not .txt, put it in the correct folder (Library/Application Support/Firefox/Profiles/(my profile folder), but it's not having any effect.

Any idea what could be wrong? Alternatively, any ideas about adjusting the line spacing in the Bookmarks sidebar?

I'm trying to adjust the spacing of the lines in the bookmarks sidebar (in recent versions, the line height is excessive and increases the amount of scrolling needed). The plugin I tried worked, but caused Firefox to use way too much CPU on my Mac Book Pro. So I'm trying to solve the problem with a userChrome.css file instead. I found this code elsewhere on the support site: @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); /* Tighten up bookmark tree in Fx25 */ .sidebar-placesTree treechildren::-moz-tree-row, .placesTree treechildren::-moz-tree-row { height: 1.3emÊ!important; border-width: 1pxÊ!important; } I created the file, made sure the file suffix is .css and not .txt, put it in the correct folder (Library/Application Support/Firefox/Profiles/(my profile folder), but it's not having any effect. Any idea what could be wrong? Alternatively, any ideas about adjusting the line spacing in the Bookmarks sidebar?

선택된 해결법

In your Profile folder you need to create a folder named chrome and then place the userChrome.css file in that new folder.

As far as the code you used { height: 1.3emÊ!important; border-width: 1pxÊ!important; }

that Ê is incorrect - that shouldn't be there - just a space and then an exclamation mark ! need to be careful with the text editor program you use, some add extra non-text characters

{ height: 1.3em !important; border-width: 1px !important; }

As far as the totality of the code you posted, I have no idea if it is correct or not. I would use a UserStyle and Stylish to do a mod like that or grab the code from a UserStyle. https://userstyles.org/

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (3)

more options

선택된 해결법

In your Profile folder you need to create a folder named chrome and then place the userChrome.css file in that new folder.

As far as the code you used { height: 1.3emÊ!important; border-width: 1pxÊ!important; }

that Ê is incorrect - that shouldn't be there - just a space and then an exclamation mark ! need to be careful with the text editor program you use, some add extra non-text characters

{ height: 1.3em !important; border-width: 1px !important; }

As far as the totality of the code you posted, I have no idea if it is correct or not. I would use a UserStyle and Stylish to do a mod like that or grab the code from a UserStyle. https://userstyles.org/

more options

Note that you need to use a plain text editor like TextEdit on Mac and save the file as a plain text file.

Note that height:1.3em is the default, so you need to specify a smaller value to see any diference.

.sidebar-placesTree treechildren::-moz-tree-row {height:1.2em!important;}
.placesTree treechildren::-moz-tree-row {height:1.2em!important;}

See:

treechildren::-moz-tree-row {
  border: 1px solid transparent;
  min-height: 18px;
  height: 1.3em;
}

treechildren::-moz-tree-separator {
  border-top: 1px solid ThreeDShadow;
  border-bottom: 1px solid ThreeDHighlight;
}

more options

@the-edmeister Thanks, that worked! I hadn't noticed that some characters changed. I think that's a remnant of using Word. At first I tried using TextEdit, but oddly I couldn't find a way to save as a plain text file with that. RTF is not the same, right?

Also I guess I'd missed the part about putting it IN a Chrome folder. Anyway, I recopied the code from where I found it, saved the file from Dreamweaver, and put it in a Chrome folder, and it worked. My bookmarks are now spaced the way I like them. Thanks!