let body = document.querySelector("iframe").contentDocument.body;
let observer = new MutationObserver((mutationsList, observer) => {
  for (let mutation of mutationsList) {
    if (mutation.removedNodes.length > 0) {
      console.log(mutation);
      console.log(mutation.removedNodes)
    }
  }
});
observer.observe(body, { subtree: true, childList: true });

以上是监控代码;
删除图片的代码没有包含在内,自己控制

相关文章:

  • 2021-11-14
  • 2021-07-31
  • 2021-08-15
  • 2022-12-23
  • 2021-04-06
  • 2022-02-19
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2021-12-23
  • 2021-06-02
  • 2021-08-06
  • 2021-12-05
  • 2021-12-15
相关资源
相似解决方案