
Count Bookmarks In Folders by kgersen
Adds a bookmark folder menu item that displays the amount of bookmarks in a folder.
You'll need Firefox to use this extension
Extension Metadata
About this extension
This extension adds a context menu item 'Bookmarks: a / b [x]' to bookmark folder menus.* These menus are opened when right clicking a bookmark folder in the Bookmarks Sidebar, Bookmarks Toolbar, Bookmarks Menu, and Bookmarks Library. This extension may be toggled off/on by clicking its toolbar button. When off, the bookmarks will not be counted.
The vast majority of Firefox users have less than 2000 bookmarks. Counting bookmarks for these users is a quick operation (usually less than 50 ms). Note, the more bookmarks that are inside a folder, the longer it takes to retrieve them so they can be counted. This duration may differ significantly depending on the speed of a users computer, especially if it is outdated. On a test computer, it took around 1 second for the bookmarks.getSubTree method to retrieve a bookmark folder with 50,000 bookmarks inside it that were spread among many subfolders. For users that often open bookmark folder menus on folders with large amounts of bookmarks, it may be desirable to keep this extension off until actually needed so as not to waste extra CPU cycles.
- a: the total of all bookmarks that are immediate children of a bookmark folder.
- b: the total of all bookmarks inside a folder (including those within every subfolder).
- x: time in milliseconds to retrieve all the bookmarks so they can be counted.
The vast majority of Firefox users have less than 2000 bookmarks. Counting bookmarks for these users is a quick operation (usually less than 50 ms). Note, the more bookmarks that are inside a folder, the longer it takes to retrieve them so they can be counted. This duration may differ significantly depending on the speed of a users computer, especially if it is outdated. On a test computer, it took around 1 second for the bookmarks.getSubTree method to retrieve a bookmark folder with 50,000 bookmarks inside it that were spread among many subfolders. For users that often open bookmark folder menus on folders with large amounts of bookmarks, it may be desirable to keep this extension off until actually needed so as not to waste extra CPU cycles.
Rate your experience
PermissionsLearn more
This add-on needs to:
- Read and modify bookmarks
More information
- Add-on Links
- Version
- 1.2
- Size
- 29.94 KB
- Last updated
- 8 months ago (Sep 15, 2024)
- Related Categories
- License
- Mozilla Public License 2.0
- Version History
Add to collection
Release notes for 1.2
* fixed an issue with the menu item sometimes not appearing as disabled.
More extensions by kgersen
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet