How do I disable right click on the top that let's you disable 'bookmarks toolbar'?
The bookmarks for my parents firefox keeps disappearing once every two weeks or so. I suspect they might have right clicked accidentally and disabled the bookmarks menu.
Is there a way i can lock down the bookmarks so it's always there? Make it not possible to disable bookmarks menu.
I tried editing my ~/.mozilla/firefox/<profile>/chrome/userChrome.css and playing around with about:config but couldn't get anything working. I am still able to right click and make bookmarks toolbar disappear.
Thanks for any help.
Обране рішення
You're welcome
There are three places with the #toggle_PersonalToolbar ID.
View menu:
#view-menu #viewToolbarsMenu #toggle_PersonalToolbar
Customize in the "3-bar" Firefox menu button:
#customization-toolbar-visibility-button #customization-toolbar-menu #toggle_PersonalToolbar
Toolbar context menu:
#toolbar-context-menu #toggle_PersonalToolbarЧитати цю відповідь у контексті 👍 1
Усі відповіді (4)
If you only want to hide the item in that toolbar context menu then use this code Other possible places include #viewToolbarsMenu and #customization-toolbar-menu or leave out the selector and only use #toggle_PersonalToolbar
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ #toolbar-context-menu #toggle_PersonalToolbar { display:none !important; }
Hi thanks for your reply.
I added those 3 lines
- toggle_PersonalToolbar
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
- toolbar-context-menu #toggle_PersonalToolbar { display:none !important; }
to my ./mozilla/firefox/<profile>/chrome/userChrome.css restarted firefox but still nothing different. I can still right click to hide the bookmarks toolbar.
(i am on a fedora machine)
Am I doing something wrong? Thanks super much.
Oh thank you! It works!
I was putting this in my ~/.mozilla/firefox/<my profile>/chrome/userChrome.css
#toggle_PersonalToolbar
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#toolbar-context-menu #toggle_PersonalToolbar { display:none !important; }
not realizing the '#toggle_PersonalToolbar' is not part of what you meant.
Thanks! Works great!
Вибране рішення
You're welcome
There are three places with the #toggle_PersonalToolbar ID.
View menu:
#view-menu #viewToolbarsMenu #toggle_PersonalToolbar
Customize in the "3-bar" Firefox menu button:
#customization-toolbar-visibility-button #customization-toolbar-menu #toggle_PersonalToolbar
Toolbar context menu:
#toolbar-context-menu #toggle_PersonalToolbar