我对“DOMSubtreeModised”活动进行了解释(这是令人痛心的消息),但我很想知道,是否有办法在一页上发现每个单角的变化(我知道,这确实可能代价高昂,但目的却是这样)。
Basically, I want to know whenever an <a>
tag (node) is created/modified so I can quickly scan its .href and see if it matches a pattern I m looking for (if it is, I want to redirect it to run my JS (irrelevant to this) instead of navigating to said link). I need this to be generic (I don t know IDs/divs/anything except that they re <a href>
s, and they have a specific URL pattern I m looking for.
我知道,即便如此,这种支持也是零敲碎打的,但现在仅仅被用作 Chrome(Firefox在不久之后,因此我不得不与它一道,因此,现在它应该成为一种oka。
让我知道是否还有其他问题。 感谢!