this post was submitted on 16 Jul 2023
1 points (100.0% liked)

Firefox

12 readers
2 users here now

The latest news and developments on Firefox and Mozilla, a global non-profit that strives to promote openness, innovation and opportunity on the web.

You can subscribe to this community from any Kbin or Lemmy instance:

Related

Rules

While we are not an official Mozilla community, we have adopted the Mozilla Community Participation Guidelines as far as it can be applied to a bin.

Rules

  1. Always be civil and respectful
    Don't be toxic, hostile, or a troll, especially towards Mozilla employees. This includes gratuitous use of profanity.

  2. Don't be a bigot
    No form of bigotry will be tolerated.

  3. Don't post security compromising suggestions
    If you do, include an obvious and clear warning.

  4. Don't post conspiracy theories
    Especially ones about nefarious intentions or funding. If you're concerned: Ask. Please don’t fuel conspiracy thinking here. Don’t try to spread FUD, especially against reliable privacy-enhancing software. Extraordinary claims require extraordinary evidence. Show credible sources.

  5. Don't accuse others of shilling
    Send honest concerns to the moderators and/or admins, and we will investigate.

  6. Do not remove your help posts after they receive replies
    Half the point of asking questions in a public sub is so that everyone can benefit from the answers—which is impossible if you go deleting everything behind yourself once you've gotten yours.

founded 1 year ago
MODERATORS
 

I'm using this add-on to add a "Close Tabs to the Right" option. But after installing another add-on, the "Close Tabs to the Right" option isn't at the bottom anymore and I want to move it all the way to the bottom.

I searched and came across this guide to edit right click context menu items. However, I cannot get it to work.

This is what my userChrome.css looks like right now (scroll to the very bottom) https://pastebin.com/MWeTN19G

Here's the code I'm using to rearrange the tab context menu item

#_588c6fa6-14f9-4826-b769-71a305c80bbb_-menuitem-_close_right {
-moz-box-ordinal-group: 2 !important;
}

( I even tried setting -moz-box-ordinal-group to 2, 20, 200 but no luck)

This is the menu item id for the add-on's option I want at the bottom: _588c6fa6-14f9-4826-b769-71a305c80bbb_-menuitem-_close_right

This is the menu item id for the add-on that is currently at the bottom: _c2c003ee-bd69-42a2-b0e9-6f34222cb046_-menuitem-5

And also, I'm using Lepton to change the look of right click context menus, tabs, menu panels etc.

Here's a screenshot of the menu item ids

Edit:

#_588c6fa6-14f9-4826-b769-71a305c80bbb_-menuitem-_close_right {
order: 2 !important;
}

It works now.

you are viewing a single comment's thread
view the rest of the comments
[–] azureVM1@fedia.io 1 points 1 year ago

Yes. It swaps their positions but they rearrange on browser restart. Since I installed Close Tab to Right first and Discard later, I uninstalled Close Tab and reinstalled it. Same effect. Their positions switch but on a browser restart, they're back to where they were before all this.