Need help find CSS Selector

User Help for Mozilla Firefox
Post Reply
JackPollack
Posts: 78
Joined: August 30th, 2006, 7:11 pm

Need help find CSS Selector

Post by JackPollack »

I'm trying to remove the "Open all in tabs" from the bookmarks - click on a folder menu pop up menu and from folders on the bookmarks toolbar.

I have tried

Code: Select all

 #menuitem.openintabs-menuitem:nth-child(6) {display:none!important;}
#PlacesToolbarItems > toolbarbutton:nth-child(1) > menupopup:nth-child(1) > menuitem:nth-child(8)  {display:none!important};
.openintabs-menuitem  {display:none!important};
I must be using the wrong CSS selector

(I have a fully working userchrome.css file that is tweaking other settings)


question in a question:
When I load the developers toolbox and choose "Disable popup auto hide" the pop up menus stay visible as expected, but I can't interact with elements to see the CSS on the menus. I have to navigate the DOM tree to find all of the menu items by hand.

Thanks
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Need help find CSS Selector

Post by morat »

Try this:

Code: Select all

menuseparator.bookmarks-actions-menuseparator,
menuitem.openintabs-menuitem {
  display: none !important;
}
Reference
http://searchfox.org/mozilla-release/se ... s-menuitem
JackPollack
Posts: 78
Joined: August 30th, 2006, 7:11 pm

Re: Need help find CSS Selector

Post by JackPollack »

Didn't work. Any other ideas?
JackPollack
Posts: 78
Joined: August 30th, 2006, 7:11 pm

Re: Need help find CSS Selector

Post by JackPollack »

oops. my mistake. it actually does work whe I put it in the userchrome.css by itself. There is something else in the file that is causing it not to work. Going to need to go through it slowly to figure out.

Thank you
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Need help find CSS Selector

Post by morat »

I had no problem using the browser toolbox to view the rules for the menuitem.openintabs-menuitem selector.

How do we get DOM info for userChrome
http://forums.mozillazine.org/viewtopic ... &t=3034448 (popup example)
JackPollack
Posts: 78
Joined: August 30th, 2006, 7:11 pm

Re: Need help find CSS Selector

Post by JackPollack »

After reboot, Disable popup auto hide is now working. It's been a long day :-(

Thanks for your help
Post Reply