MozillaZine

how to change the default bookmark icon using userChrome.css

User Help for Mozilla Firefox
wanderer942
 
Posts: 1
Joined: August 8th, 2017, 4:09 pm

Post Posted August 8th, 2017, 4:15 pm

using userChrome.css under FF 55, how do I change the default bookmark icon in the menu, toolbar, and "show all bookmarks" windows?

the following seemed to work until v55:

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

#tabbrowser-tabs .tab-icon-image:not(src),
.sidebar-placesTreechildren::-moz-tree-image(leaf),
.bookmark-item:not(src):not([container]):not([type]):not([folder]){
list-style-image: url("net45.ico") !important;
}

#.bookmark-item:not([container]) {
list-style-image:url("net45.ico")!important;}

treechildren::-moz-tree-image(leaf) {
list-style-image:url("net45.ico")!important;-moz-image-region:auto!important; }


Thanks in advance for any tips.

Brummelchen
 
Posts: 1986
Joined: March 19th, 2005, 10:51 am

Post Posted August 16th, 2017, 9:32 am

no path to ico - or replace it with base64 coded data (recommended).

LIMPET235
Moderator

User avatar
 
Posts: 37442
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Post Posted August 16th, 2017, 9:40 am

Moving this to Firefox Support...
Ancient Amateur Astronomer
Win-7-HP/IntelĀ® DualCore-2.0GHz/500G HDD/4 Gig Ram/550Watt PSU/350WattUPS/Firefox-20.0-50.0/T-bird-2.0.0.24/SnagIt-v10.0.1/MWP-7.11.0.
RadioYachting. Conficker Test. (Always choose the "Custom" Install.)

NorthPole
 
Posts: 2
Joined: September 2nd, 2017, 5:38 am

Post Posted September 2nd, 2017, 5:47 am

Interested to read this, as I have exactly the same problem following the upgrade to FF 55.

Two comments:

1) assuming the replacement icon is also in the current User's chrome folder, I would not have thought an image path was required in the userChrome.css file;

2) using Base 64 coding for the icon has no effect - the default icon still shows up.

It's almost as though FF 55 is ignoring userChrome.css altogether.

Brummelchen
 
Posts: 1986
Joined: March 19th, 2005, 10:51 am

Post Posted September 2nd, 2017, 6:22 am

it should work. add "agent sheet" like here
viewtopic.php?p=14764409#p14764409

i dropped userchrome long ago because it is not convenient and need restarts i cannot perform all the time while i need it to work.

i am also not sure if ICO is possible - try PNG.

Frank Lion

User avatar
 
Posts: 19316
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted September 2nd, 2017, 6:31 am

NorthPole wrote:1) assuming the replacement icon is also in the current User's chrome folder, I would not have thought an image path was required in the userChrome.css file;

That's right.


NorthPole wrote:It's almost as though FF 55 is ignoring userChrome.css altogether.

Nope, I've done userChrome.css stuff in Firefox 57 and it works fine.

The way to fix this one is to get the DOM Inspector extension on it and see what's going on.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

L.A.R. Grizzly

User avatar
 
Posts: 5281
Joined: March 15th, 2005, 5:32 pm
Location: Akron, Ohio, USA

Post Posted September 2nd, 2017, 4:18 pm

NorthPole wrote:1) assuming the replacement icon is also in the current User's chrome folder, I would not have thought an image path was required in the userChrome.css file;


Be sure to use forward slashes in the icon path instead of backward slashes. I would suggest using a .png file as well.

I have changed the default bookmark folder icons in SM to match the ones in FX. Below is a sample of my path to the icon file (notice the forward slashes):

Code: Select all
("file:///c:/Users/Grizzly/AppData/Roaming/Mozilla/SeaMonkey/Profiles/vakv7llq.default/userstyles/bookmarkfolder.png")
Win7 Pro SP1 64 Bit
Comodo Internet Security
Firefox 52.3.0esr, SeaMonkey 2.48, Pale Moon 27.4.2 and Thunderbird 52.3.0

Frank Lion

User avatar
 
Posts: 19316
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted September 2nd, 2017, 4:23 pm

L.A.R. Grizzly wrote:
NorthPole wrote:1) assuming the replacement icon is also in the current User's chrome folder, I would not have thought an image path was required in the userChrome.css file;

Be sure to use forward slashes in the icon path instead of backward slashes. I would suggest using a .png file as well.

No slashes in either direction are needed. You just put the required image in the profile's chrome folder and link to it in userChrome.css in this format -
Code: Select all
list-style-image: url("net45.png") !important;
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

NorthPole
 
Posts: 2
Joined: September 2nd, 2017, 5:38 am

Post Posted September 3rd, 2017, 5:01 am

In response to comments:

1) I am using a PNG as an alternative icon (I don't believe I mentioned an ICO file);

2) my userChrome.css file already uses the code quoted in Frank Lion's post.

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 10 guests