Filter Drop-Down Menu EN
em_te · Firefox
Allows you to filter the options in any drop down menu to quickly find something. You can filter by 'contains', 'not contains', 'begins with', 'ends with', 'does not begin with', and 'does not end with' or by any combinations thereof.
截图
简介
Ever seen websites whose drop-down menu has so many things and all in the wrong order that you cannot sift through it?
Or you want to search for a word in the middle of the phrase in the drop-down menu?
This extension allows you to do that easily by first clicking on a drop-down menu, then click on the toolbar icon to activate the search function.
You can filter by any, or all, of the following:
- contains
- not contains
- begins with
- ends with
- doesn't begin with
- doesn't end with
A great feature of this extension is that it doesn't add extra elements or event handlers to the DOM therefore there is minimal interference with the webpage (it won't interfere with libraries like ReactJS). It does need to add 2 attributes to the element to keep track of state.
Also, this extension requests no permissions and doesn't transmit any data elsewhere, allowing you to use it in complete confidence.
Technical Explanation:
If you are a computer talking guy and want to know how this extension works then read on.
When you click on the toolbar icon, the extension will read the currently focused element on the webpage and see if it is a SELECT element. If no, then it aborts. If yes, then it will assign a random id to the element as a custom attribute (called "data-filterid") and pass that id together with the stringified content of the SELECT's OPTION's body and the contents of the filter attribute (if exist) to the extension.
The extension will show a search interface for users to enter search terms and the extension will filter the previously obtained OPTION's body text and find how many matches there are and show the count on screen.
Then it will send the search pattern and the previous id back to the webpage. Then it will search the webpage for an element with that id in the custom attribute and hide the OPTIONs in that SELECT which don't match the search pattern by setting display to "none". It will also save the filter pattern as a custom filter attribute (called "data-filterby") so that if you exit the extension and open it again, it can retrieve what the user previously filtered for.
Filter Drop-Down Menu 是做什么的
Filter Drop-Down Menu 是一款面向 Firefox 的搜索增强类扩展,主要用来补充搜索结果、切换搜索引擎、过滤无效结果。官方对它的介绍是:Allows you to filter the options in any drop down menu to quickly find something. You can filter by 'contains', 'not contains', 'begins with', 'ends with', 'does not begin with', and 'does not end with' or by any combinations thereof.在Firefox 附加组件商店(AMO)上,它当前版本 0.1.3,评分 3(4 人评价),约 151 名用户。
适合什么人用
从功能定位看,Filter Drop-Down Menu 更适合每天大量搜索、希望结果更干净准确的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 Filter Drop-Down Menu
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Filter Drop-Down Menu 是免费的吗?
Filter Drop-Down Menu 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Filter Drop-Down Menu 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Filter Drop-Down Menu 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Filter Drop-Down Menu?
在扩展管理页找到 Filter Drop-Down Menu,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 1
activeTab


