Custom style for menu button

User Help for Mozilla Firefox
tobiascapin
Posts: 4
Joined: November 11th, 2015, 9:24 am

Custom style for menu button

Post by tobiascapin »

Dear all,
I want to create a customized css for chrome theme, I want to hide some elements and I'm looking for their element-id to write a css stylesheet to add to my firefox profile.
What is the ID of the menu button (main menu on right of toolbar) of firefox?

More general, how can I be autonomous to find them for other elements?

Thanks
User avatar
DanRaisch
Moderator
Posts: 127243
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Custom style for menu button

Post by DanRaisch »

Moving to Firefox Support.
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: Custom style for menu button

Post by Brummelchen »

its called the "hamburger button". and no - there is no current extension present, to find those nodes. you need to investigate how to work with the inspector
https://developer.mozilla.org/de/docs/T ... _Inspector
morat
Posts: 6434
Joined: February 3rd, 2009, 6:29 pm

Re: Custom style for menu button

Post by morat »

The toolbar button id is "PanelUI-menu-button".

I found the id using the tooltip text.

http://dxr.mozilla.org/mozilla-release/ ... en+menu%22
http://dxr.mozilla.org/mozilla-release/ ... nu.tooltip
User avatar
lovemyfoxy
Posts: 2337
Joined: December 11th, 2009, 11:23 am
Location: USA

Re: Custom style for menu button

Post by lovemyfoxy »

The hamburger has spread. I've seen it on other sites with a similar meaning. If it had onion slices there would be 4 layers. With cheese--5 layers


@tobiascapin--do you think it will take longer than 3 months to complete?
2 Desktops--Win 7 Ult.SP1 x64/6GB RAM /Firefox 52.9ESR/Waterfox64 2022.11/Thunderbird 52.9ESR/BitWarden PW Manager/Verizon FIOS wired network
User avatar
Reflective
Posts: 2283
Joined: February 15th, 2007, 11:13 am

Re: Custom style for menu button

Post by Reflective »

Add the following bookmark to your collection and keep an eye on its progress. It might save you some time: https://www.reddit.com/r/firefox/commen ... _lands_if/
User avatar
lovemyfoxy
Posts: 2337
Joined: December 11th, 2009, 11:23 am
Location: USA

Re: Custom style for menu button

Post by lovemyfoxy »

Reflective wrote:Add the following bookmark to your collection and keep an eye on its progress. It might save you some time: https://www.reddit.com/r/firefox/commen ... _lands_if/
I think the discussions of that topic on Mzine are a better barometer of what's going on.
Last edited by lovemyfoxy on August 12th, 2017, 11:53 am, edited 1 time in total.
2 Desktops--Win 7 Ult.SP1 x64/6GB RAM /Firefox 52.9ESR/Waterfox64 2022.11/Thunderbird 52.9ESR/BitWarden PW Manager/Verizon FIOS wired network
User avatar
Frank Lion
Posts: 21178
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom
Contact:

Re: Custom style for menu button

Post by Frank Lion »

LoveMyFoxy wrote:
Reflective wrote:Add the following bookmark to your collection and keep an eye on its progress. It might save you some time: https://www.reddit.com/r/firefox/commen ... _lands_if/
I think the discussions of that topic on Mz are a better barometer of what's going on.
From that link -
[–]rSdar 3 points 1 month ago

there's some content that can't be customized ie:scrollbars
Wrong...and I stopped reading at that point.
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
User avatar
lovemyfoxy
Posts: 2337
Joined: December 11th, 2009, 11:23 am
Location: USA

Re: Custom style for menu button

Post by lovemyfoxy »

:mrgreen:
2 Desktops--Win 7 Ult.SP1 x64/6GB RAM /Firefox 52.9ESR/Waterfox64 2022.11/Thunderbird 52.9ESR/BitWarden PW Manager/Verizon FIOS wired network
tobiascapin
Posts: 4
Joined: November 11th, 2015, 9:24 am

Re: Custom style for menu button

Post by tobiascapin »

morat wrote:The toolbar button id is "PanelUI-menu-button".
Thanks, it works!

I'm also looking for the new Tab button:
Image
I tried your method, searching tooltips text, but I could not find it.
Brummelchen wrote: its called the "hamburger button". and no - there is no current extension present, to find those nodes. you need to investigate how to work with the inspector
https://developer.mozilla.org/de/docs/T ... _Inspector
I use a lot the inspector to develope js/css, but I have never see elements outside the window element.
LoveMyFoxy wrote:@tobiascapin--do you think it will take longer than 3 months to complete?
Sorry, I cannot understand, what are you talking about?
tobiascapin
Posts: 4
Joined: November 11th, 2015, 9:24 am

Re: Custom style for menu button

Post by tobiascapin »

tobiascapin wrote:I'm also looking for the new Tab button:
Image
I tried your method, searching tooltips text, but I could not find it.
I found its class (I don't know its id): .tabs-newtab-button
morat
Posts: 6434
Joined: February 3rd, 2009, 6:29 pm

Re: Custom style for menu button

Post by morat »

It is an anonymous element. It has no id. It has an anonid.

Code: Select all

/* Firefox userChrome.css */

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

toolbarbutton[anonid="tabs-newtab-button"] {
  background-color: pink !important;
}
User avatar
lovemyfoxy
Posts: 2337
Joined: December 11th, 2009, 11:23 am
Location: USA

Re: Custom style for menu button

Post by lovemyfoxy »

tobiascapin wrote:
LoveMyFoxy wrote:@tobiascapin--do you think it will take longer than 3 months to complete?
Sorry, I cannot understand, what are you talking about?
It might cease to work after version 56 in November.
https://www.tnhonline.com/2017/04/06/mo ... interface/
2 Desktops--Win 7 Ult.SP1 x64/6GB RAM /Firefox 52.9ESR/Waterfox64 2022.11/Thunderbird 52.9ESR/BitWarden PW Manager/Verizon FIOS wired network
User avatar
lovemyfoxy
Posts: 2337
Joined: December 11th, 2009, 11:23 am
Location: USA

Re: Custom style for menu button

Post by lovemyfoxy »

[quote="morat"]It is an anonymous element. It has no id. It has an anonid./quote]


Anonid sounds like a sinus condition.
2 Desktops--Win 7 Ult.SP1 x64/6GB RAM /Firefox 52.9ESR/Waterfox64 2022.11/Thunderbird 52.9ESR/BitWarden PW Manager/Verizon FIOS wired network
morat
Posts: 6434
Joined: February 3rd, 2009, 6:29 pm

Re: Custom style for menu button

Post by morat »

LoveMyFoxy wrote:Anonid sounds like a sinus condition.
I thought of taxonomy, but alas there is no anonidae family.

canid - member of canidae family e.g. dog
iguanid - member of iguanidae family e.g. lizard
ranid - member of ranidae family e.g. frog

http://en.wikipedia.org/wiki/canidae
http://en.wikipedia.org/wiki/iguanidae
http://en.wikipedia.org/wiki/ranidae
Post Reply