Greasy Fork is available in English.
Dom变化监听
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/464529/1183884/onDomChange.js
Dom变化监听
使用示例:
onDomChange(el, (observer, mutation) => {
//your code
//if (mutation.type === 'childList'){
//do something
//}
//if(observer) observer.disconnect();
}, {childList: true});