MozillaZine

how to change the default bookmark icon using userChrome.css

User Help for Mozilla Firefox
wanderer942
 
Posts: 5
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: 2222
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: 37473
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-56.0.1/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: 2222
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: 19355
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: 5287
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.4.0esr, SeaMonkey 2.48, Pale Moon 27.5.1 and Thunderbird 52.4.0

Frank Lion

User avatar
 
Posts: 19355
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.

wanderer942
 
Posts: 5
Joined: August 8th, 2017, 4:09 pm

Post Posted September 29th, 2017, 3:35 pm

I tried upgrading to FF 56 and this issue still affects me. It's really annoying to have to use an older version. I am stuck on 54.0.1. Perhaps someone could PLEASE submit a bug on this. I, too, have already tried PNG files and !important. The new icons still override my overrides. Thanks

Frank Lion

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

Post Posted September 29th, 2017, 4:01 pm

wanderer942 wrote: Perhaps someone could PLEASE submit a bug on this.

A bug to who? To Mozilla saying your departures from their defaults are not working?

Good luck with that one. :P
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.)

atlanto
 
Posts: 26
Joined: March 7th, 2015, 4:19 pm
Location: Japan

Post Posted September 30th, 2017, 12:13 am

I'm using chrome.manifest hacking.
>override chrome://mozapps/skin/places/defaultFavicon.svg myIcon.png
(chrome.manifest is in firefox installation directory)
(I don't recommend this since it is not for end-users. Also, chrome.manifest will be reset on every "update", so you will need to do this again.)

https://developer.mozilla.org/en-US/doc ... gistration
https://bugzilla.mozilla.org/show_bug.cgi?id=1356435

wanderer942
 
Posts: 5
Joined: August 8th, 2017, 4:09 pm

Post Posted September 30th, 2017, 2:57 pm

Frank Lion wrote:
wanderer942 wrote: Perhaps someone could PLEASE submit a bug on this.

A bug to who? To Mozilla saying your departures from their defaults are not working?

Good luck with that one. :P


userChrome.css is not a departure from defaults. it's supposed to be workable.

malliz
Folder@Home

User avatar
 
Posts: 43187
Joined: December 7th, 2002, 4:34 am
Location: Australia

Post Posted September 30th, 2017, 2:59 pm

Read things properly and try not to answer every question with an attack
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"

dickvl

User avatar
 
Posts: 52254
Joined: July 18th, 2005, 3:25 am

Post Posted September 30th, 2017, 7:50 pm

Current releases seem to use an image attribute in tab.tabbrowser-tab to set the favicon and have an inherit attribute for .tab-icon-image (xbl:inherits="src=image").
This seems to prevent using userChrome.css to override the favicon (you would have to set the src attribute).

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 11 guests