Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

in firefox I edit userChrome.css file for customize the bookmarks bar with this code:

File in /home/gabriel/.mozilla/firefox/t5w3u0oy.default/chrome/userChrome.css


 /* kill icons for bookmark folders in Bookmarks menu */
.bookmark-item[type="menu"] > .toolbarbutton-icon {
  display: none;
/* hide text of bookmarks*/
.bookmark-item:not(.bookmark-group):not([type="menu"]) > .toolbarbutton-text {
display:none !important;

My question is how to do the same in chromium, the Custom.css file I found in this folder:

/home/gabriel/.config/chromium/Default/User StyleSheets/Custom.css


share|improve this question

I think for chromium (not sure about chrome) you can edit that ~/.config/chromium/Default/User StyleSheets/Custom.css

At least I have and found it works.

For blocking the sponsored ads on for example, edit/create the file and add:

div#sponsored {display:none; }

Save it.

Run a search on startpage and see if the sponsored ads are displayed at the top.

Seems to work for me anyway.

share|improve this answer

To my knowledge, Chromium (and Chrome) do not allow customization of browser components (or "chrome") by means of CSS. In other words, Chromium (and Chrome) do not have the equivalent of userChrome.css. The Custom.css you refer to is similar in function to userContent.css in Firefox, by means of which you can alter the appearance of web pages.

You may already know that a very restricted extent of changing only the appearance of "chrome" items can be achieved by changing themes (accessible near the bottom of the page accessed via Wrench, Preferences, Personal Stuff or by typing chrome://settings/personal in the url bar and hitting enter).

share|improve this answer
The only customizacion that I could do is change the color and size of thr scrollbar with: ::-webkit-scrollbar {} editing the file: /home/gabriel/.config/chromium/Default/User StyleSheets/Custom.css – GGsalas Jan 21 '12 at 10:59
I hope I can customize the bookmark bar too. – GGsalas Jan 21 '12 at 11:04
From what I recall, tweaking the scrollbars leads to loss of the indicators that show up in the vertical scrollbar when one uses the "find" function on pages that are more than one screen long. Anyway, all the best. – user25656 Jan 21 '12 at 12:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.