Bookmark Dupes EN
Martin Väth · Firefox
Display/Remove duplicate bookmarks, empty folders or descriptions
截图
简介
After installing bookmarkdupes, the basic usage is rather simple:
To open bookmarkdupes, click the extension symbol (duplicate stars) or use the link in the options page of the extension.
Do not enable expert mode (unless you know what you are doing, see separate section).
Then select what you want to display:
- Bookmark duplicates
- Empty folders
- Non-duplicate bookmarks</<li>
- All bookmarks
After this, you will be offered the list of bookmarks with checkboxes; in case 1 the numbers indicate the order in which matching bookmarks were added according to the internally stored date.
There are also button to select/unselect convenient sets of checkboxes.
Finally, there appear buttons to remove the selected bookmarks (or to move them to a “Dupes” folder) in cases 1-3, or to strip the descriptions of the selected bookmarks in case 4. (The latter has some side effects, see section Known Bugs).
Be aware that removing/moving bookmarks or stripping descriptions is irreversible!
It is recommended to make backups of your bookmarks first!
Currently, there is no working version available for android (see section Known Bugs).
Important:
When you reorganized/added/removed bookmarks, make sure to update the
displayed list (by pressing the corresponding button) before removing
bookmarks or stripping descriptions!
In particular, stripping descriptions with an outdated list will move
the corresponding bookmarks to their previous location in the bookmark menu!
Permissions
The extension requires the following permissions for these reasons:
- “bookmarks” to read/modify bookmarks
- “storage” to store/restore the customized rules in expert mode.
Unfortunately, “storage” is not one of the optional_permissions which might be required only if that feature is actually requested by the user, see https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/optional_permissions
Expert Mode
When selecting the checkbox for expert mode, details can be configured to
ignore certain bookmarks when calculating the list or under which cases
bookmarks are considered to be dupes of each other.
In non-expert mode, two bookmarks are considered to be duplicates of each other if their URL coincides. In expert mode there are custom rules by which the URL which is actually used for comparison is to be modified. The details are as follows.
For every bookmark the rules are applied in the given order.
There are 2 types of rules: Filter rules and URL modification rules
(there are also disabled rules which are only listed but have no effect).
For both types of rules 4 regular expressions can be specified which are used
to determine if the rule applies: If the corresponding regular expression is
nonempty, the corresponding condition must be satisfied or the rule will not
apply. (In the case of filter rules, at least one of these 4 regular
expressions must be nonempty or that filter rules will not apply either.)
The 4 regular expressions refer to the bookmark's name or url, respectively,
and the regular expressions must either match or not match, respectively.
- The term "regular expression" refers to a javascript type regular expression
as described e.g. in https://wiki.selfhtml.org/wiki/JavaScript/Objekte/RegExp
or https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions - The bookmark's name refers to the full bookmark path as it appears in the
browser with folder names separated by the null character.
For instance, if you have in "Bookmark Menu" a folder "Collection"
which contains your bookmark "Example", the bookmark's name becomes
"Bookmark Menu\0Collection\0Example" (where \0 denotes the null character
which can be matched by the regular expression with \0 or \x00). - The bookmark's url refers to the bookmark url after possible modifications
by previous modifier rules.
If a filter rule applies, the corresponding bookmark is ignored, i.e.,
it will not be considered as a duplicate and will neither appear in the
list of empty folders or of all bookmarks.
If a URL modification rule applies, a text replacement will occur:
All parts matching a specified regular expression are substituted by a
replacement text (which might be empty).
The rules for this correspond to the javascript String.prototype.replace function with the
global modifier, see e.g. https://wiki.selfhtml.org/wiki/JavaScript/Objekte/String/replace
or https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/String/replace
In particular, the replacement text can contain symbols like
$& or $1 to refer to the whole matched text or to the
match of the first brace in the regular expression…
Bookmark Dupes 是做什么的
Bookmark Dupes 是一款面向 Firefox 的书签管理类扩展,主要用来整理书签、查重、批量导入导出。官方对它的介绍是:Display/Remove duplicate bookmarks, empty folders or descriptions在Firefox 附加组件商店(AMO)上,它当前版本 6.7.2,评分 4.73(545 人评价),约 10,360 名用户。
适合什么人用
从功能定位看,Bookmark Dupes 更适合收藏了大量网页、需要定期整理的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 Bookmark Dupes
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Bookmark Dupes 是免费的吗?
Bookmark Dupes 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Bookmark Dupes 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Bookmark Dupes 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Bookmark Dupes?
在扩展管理页找到 Bookmark Dupes,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 2
bookmarksstorage


