Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
几年前我问过同样的问题,但不幸的是,答案似乎不再有效。
我已经构建了一个修改 SERP 的扩展,但代码似乎不再起作用。
扩展程序如何检测已执行 Google Instant 搜索并显示结果?
答案仍然与您之前的(已删除的)答案相同 - DOM Mutation listeners。您定义要查找的节点类型,并对插入的节点做出反应。
从那时起,基于事件的方法就被弃用了,而新的方法是MutationObserver.
MutationObserver
您可能还想看看mutation-summary图书馆。
mutation-summary