Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Preventing/customizing access to Library window

more options

Hello, guys! Tell me please, how do I can prevent access to Library window? Can I do this using files userChrome.css or userContent.css? If not, can I hide "All Bookmarks" button from this window? Can I hide also buttons "Orginize", "Import and Backup"?

Hello, guys! Tell me please, how do I can prevent access to Library window? Can I do this using files userChrome.css or userContent.css? If not, can I hide "All Bookmarks" button from this window? Can I hide also buttons "Orginize", "Import and Backup"?
Прикачени екранни снимки

Променено на от signalrunners

Всички отговори (7)

more options

May I ask "why"? Are you trying to prevent young children or others who use your computer from changing your bookmarks? It would be best to lock access to the system in that case.

You can hide menu items using rules in userChrome.css, but:

  • I don't think you can block the window from launching if someone uses the keyboard shortcut (Ctrl+Shift+b) to call it up.
  • It might not be possible to hide the Bookmarks category in the left panel of the Library window. CSS is difficult to apply to "tree" elements (the elements used for expandable folder hierarchies).

Could I suggest using the following site for the nitty gritty of style rules for the UI:

https://www.reddit.com/r/FirefoxCSS/

more options

jscher2000 said

May I ask "why"? Are you trying to prevent young children or others who use your computer from changing your bookmarks? It would be best to lock access to the system in that case.

In our company we use terminal server with Firefox, where client surfing on company web-sites. Terminal users over 100 and it's too hard controlling where users delete bookmarks. Fixing it takes too much time. We want prevent from this...

more options

Perhaps there is a way to reset the bookmarks at startup. Perhaps there's a way to trigger the restore at startup it using an Autoconfig file? Of course, this assumes the last backup wasn't of a modified set of bookmarks...

Perhaps there is advice out on the web for how best to do it without a complete "kiosk-style" lockdown.

more options

jscher2000 said

Perhaps there is a way to reset the bookmarks at startup. Perhaps there's a way to trigger the restore at startup it using an Autoconfig file? Of course, this assumes the last backup wasn't of a modified set of bookmarks... Perhaps there is advice out on the web for how best to do it without a complete "kiosk-style" lockdown.

We are using autoconfig file via cck2. But it does not protect from deleting bookmarks from Library window.

more options

signalrunners said

We are using autoconfig file via cck2. But it does not protect from deleting bookmarks from Library window.

Correct, but could you simply replace the bookmarks at startup so that the user's activity during the previous session is irrelevant?

Bookmarks can be deleted and reorganized using the bookmarks menu or by opening a bookmarked site and using the Edit Bookmark dialog. And what about the sidebar? You can go after all those things, but you could look into resetting bookmarks as a failsafe.

more options

jscher2000 said

signalrunners said
We are using autoconfig file via cck2. But it does not protect from deleting bookmarks from Library window.

Correct, but could you simply replace the bookmarks at startup so that the user's activity during the previous session is irrelevant?

Bookmarks can be deleted and reorganized using the bookmarks menu or by opening a bookmarked site and using the Edit Bookmark dialog. And what about the sidebar? You can go after all those things, but you could look into resetting bookmarks as a failsafe.

Good idea, restoring bookmarks on startup. But can you tell me how to implement it? Cck2 does not give such an opportunity. It create bookmarks (on bookmarks panel) in first run, when creating profile...

more options

I don't have code for that. In theory, you would trigger the bookmark restore function in your autoconfig file.