Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Remove extension icon from Firefox url bar

+6
−0

I'm using the firefox extension metrication. I only ever use it via its entry in the context menu, therefore I would like to remove its icon from the url bar to gain more space:

screenshot of the firefox url bar with the icon of the metrication extension highlighted

I tried the suggestion from https://www.reddit.com/r/FirefoxCSS/comments/zcapzr/add_css_to_remove_addon_icon_from_the_address_bar/

I looked up the id of the extension in about:debugging#/runtime/this-firefox

screenshot of the extension information showing the extension ID and UUID

and added

#pageAction-urlbar-_670400a3-bbd4-4846-88c9-929844eee39a_{
  display: none !important;
}

to my userChrome.css. Unfortunately, the icon is still there after restarting the browser.

I also tried

#pageAction-urlbar-_metrication@deltamikecharlie_{
  display: none !important;
}

just to cover all bases, but this did not remove the icon either.

I suspect the name of the element I am trying to change is not correct. How to get the correct name? For "normal" elements on a webpage, I would use the element picker to look up the name, but how to do this with UI elements?

I'm using

  • Firefox 102 ESR
  • macOS 13.4
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+5
−0

TL;DR

Turns out the correct name is

#pageAction-urlbar-metrication_deltamikecharlie {
  display: none !important;
}

Long version:

How to find the name?

There is actually a nice guide at https://firefox-source-docs.mozilla.org/devtools-user/browser_toolbox/index.html

To summarise:

  1. open the web developer tools, click on the ... at the top right and open the settings

  2. under "Advanced settings", activate "Enable browser chrome and add-on debugging toolboxes" and "Enable remote debugging"

screenshot of the advanced settings with "Enable browser chrome and add-on debugging toolboxes" and "Enable remote debugging" activated

  1. Use Cmd+Opt+Shift+I to open the browser toolbox

  2. choose the element picker and select the UI element you are interested in and you'll be show the corresponding position in the html code to look up the name.

  3. Undo step 2 if you are finished

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »