Removedor Div Modal

Userscript para remoção de elemento

目前为 2024-04-10 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/492176/1358057/Removedor%20Div%20Modal.js

  1. //@version 1.0
  2.  
  3. function checkAndRemoveModal() {
  4. const modal = document.querySelector(".modal-backdrop.fade");
  5. if (modal) {
  6. modal.remove();
  7. }
  8. }
  9.  
  10. // Call the function initially to check for existing modal
  11. checkAndRemoveModal();
  12.  
  13. // Set an interval to check and remove the modal every 100 milliseconds (adjustable)
  14. setInterval(checkAndRemoveModal, 100);