#### 1、入口

[图片附件未整合: ../../../../_assets/321877746349244416/001-9df73def29.png]

#### 2、示例代码

```javascript
const layoutId = '1112366057102008528';

if (window.ebdFormSdk?.getCardStore?.()?.layoutId === layoutId) {
  // 等待元素加载的工具函数
  function waitForElement(selector, callback, options = {}) {
    const { parent = document.body, observerOptions = { childList: true, subtree: true } } = options;
    const element = parent.querySelector(selector);
    if (element) {
      callback(element);
      return;
    }

    const observer = new MutationObserver(() => {
      const foundElement = parent.querySelector(selector);
      if (foundElement) {
        callback(foundElement);
        observer.disconnect();
      }
    });

    observer.observe(parent, observerOptions);
  }

  // 先等待卡片加载
  waitForElement(`.weapp-ebdf-cardv-layoutMultiId-${layoutId}`, (card) => {
    // 在卡片内等待评论区加载并隐藏
    waitForElement('.weapp-ebdf-cardv-comment', (comment) => {
      comment.style.display = 'none';
    }, { parent: card });

    // 在卡片内等待更多按钮加载并隐藏
    waitForElement('.weapp-ebdf-adaptive-buttons-navigation-moreWrap', (moreWrap) => {
      moreWrap.style.display = 'none';
    }, { parent: card });
  });
}
```
