Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
devtools-highlighter 预览

devtools-highlighter 作者: Patrick Brosset

Find and highlight elements on the page with this DevTools panel, using CSS styles and selectors.

4.8 (6 reviews)4.8 (6 reviews)
97 个用户97 个用户
您需要 Firefox 来使用此扩展
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
关于此扩展
There are 2 ways to find elements using the panel:

- By using computed style queries.
- Or by using CSS selectors.

Using computed style queries

This is the main feature of this extension. It is very useful for finding elements on a page that have certain CSS computed styles.

For example, say you want to list all of the CSS grids on a page. You can use this query to do this display:grid.

The extension will simply loop through all elements on the page and only display the ones that do have their CSS computed display value set to grid.

You can also use a couple of operators to make searching more useful:

display:!block will find all elements that have a display value other than block.

display:~flex will find all elements that have a display value that includes the substring flex. So it will match elements that have it set to inline-flex and flex.

The extension also supports descendant queries. That means you can find elements that have a given style and that are descendant of elements that have another given style.

For instance display:flex align-self:start will find all elements with align-self set to start and that are descendants of a display:flex element.

Using CSS selector queries

This is a more traditional way to search for elements in the page but can be useful too.

With this feature, you can simply type any CSS selector that would work with document.querySelectorAll and the matching elements will be listed and highlighted.

Browsing the results

Once a search has returned results, they are displayed in the panel and they are all highlighted in the page too.

Hovering over a single result will highlight only the corresponding element.

It is also possible to scroll an element into view by clicking on the corresponding link in the panel.

Finally, you can also select any of the displayed elements in the inspector panel by clicking on the select link in the panel.
开发者留言
This is the result of a couple of hours of work only. This is therefore experimental. Feel free to report issues on the GitHub issue tracker.
And let me know what you think in the comments!
评分 4.8(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
5
4
1
3
0
2
0
1
0
阅读全部 6 条评价
权限与数据详细了解

必要权限:

  • 让开发者工具可以存取您打开的标签页中的数据
  • 访问您在所有网站的数据
更多信息
附加组件链接
  • 主页
  • 用户支持网站
版本
1.2.1resigned1
大小
19.81 KB
上次更新
1 年前 (2024年4月25日)
相关分类
  • 网页开发
  • 其他
许可证
Mozilla 公共许可证 2.0
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
Patrick Brosset 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。