问答 › 查看内容
返回列表

隐藏-新建-表格填报卡片

25 1
发表于 昨天 18:15 | 查看全部 阅读模式
隐藏-新建-表格填报卡片

评论1

观小豪楼主Lv.1 发表于 昨天 18:15 | 查看全部
插件代码:


  1. <div>(() => {
  2.   const apply = () => {
  3.     document.querySelectorAll('.create-card-type.REPORT_FORM').forEach((icon) => {
  4.       const cardItem = icon.closest('.cursor-pointer')
  5.       if (cardItem) {
  6.         cardItem.style.setProperty('display', 'none', 'important')
  7.       }
  8.     })
  9.   }

  10.   const start = () => {
  11.     apply()
  12.     new MutationObserver(apply).observe(document.body, {
  13.       childList: true,
  14.       subtree: true,
  15.     })
  16.   }

  17.   if (document.readyState === 'loading') {
  18.     document.addEventListener('DOMContentLoaded', start, { once: true })
  19.   } else {
  20.     start()
  21.   }
  22. })()</div>
复制代码



回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

微信服务号
联系我们
电话:400-880-0750
邮箱:hello@guandata.com
Copyright © 2001-2026 观远社区 版权所有 All Rights Reserved. 浙 ICP 备15006424号-3
去回复 去发帖 返回顶部
快速回复 返回顶部 返回列表