this post was submitted on 02 Jan 2024
21 points (95.7% liked)

Firefox

20466 readers
4 users here now

/c/firefox

A place to discuss the news and latest developments on the open-source browser Firefox.


Rules

1. Adhere to the instance rules

2. Be kind to one another

3. Communicate in a civil manner


Reporting

If you would like to bring an issue to the moderators attention, please use the "Create Report" feature on the offending comment or post and it will be reviewed as time allows.


founded 5 years ago
MODERATORS
 

Hellow, im trying to hide some element in firefox using userChrome. In perticular on left the the "View recent browsing accross windows and devices" how could i do that? Or what is a good resource to know how to learn this myself?

Thank for your time and have a nice day!

you are viewing a single comment's thread
view the rest of the comments
[–] Ephera@lemmy.ml 6 points 2 years ago (2 children)

If you mean this button:

...you can just remove that by clicking the "Remove from Toolbar" in the right-click menu (as shown).

[–] Ephera@lemmy.ml 5 points 2 years ago

If you still want to learn it, these two articles are good:

The video in the second article is important. Near the end of the video, they show the Browser Toolbox. With that, you can select a UI element in Firefox's UI to find out what the element's ID is. You will need the ID for writing the rule.

[–] Hercules@lemmy.world 2 points 2 years ago (1 children)

Yes i do, i did know that but i wanted my config to be easy to copy paste between machines. Still thanks for your input

[–] Ephera@lemmy.ml 1 points 2 years ago (1 children)

Ah, well, I still don't want to discourage you from digging into the Firefox CSS customizations. It is a really useful tool to know.

But for this purpose, you probably want the about:config value browser.uiCustomization.state. It contains all information about UI placement customizations, which you probably want to copy-paste as a whole anyways.

You can create a user.js file in the profile directory to set the about:config value.

[–] Hercules@lemmy.world 2 points 2 years ago

Ahh i havent hears of that, thank you very much!!!