Skip to content

WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。

6.0 KB
Raw Blame
{
  "schemaVersion": 1,
  "id": "buddy-fuel-station-close-on-account-switch",
  "revision": 3,
  "upgradeFromContentHashes": [
    "7409d4d92618b59326e56629f4d9ba804ae30a4e36d7d5ed156042b9a3a744bd",
    "9c47a98a2fd9e50263290126ea3702df05d690f950b097a4a61871b6cd7bce77"
  ],
  "name": "页面就绪后自动关闭首页弹窗",
  "description": "页面就绪后立即检查首页弹窗与运营位,每 300 毫秒补查,持续约 30 秒;重新出现的弹窗继续关闭,快速切换账号时重新检测新页面。",
  "enabled": true,
  "trigger": {
    "type": "pageReady",
    "types": [
      "pageReady"
    ],
    "oncePerNavigation": true,
    "restartOnNavigation": true
  },
  "schedule": {
    "type": "manual"
  },
  "variables": {},
  "steps": [
    {
      "op": "logic.repeat",
      "times": 100,
      "steps": [
        {
          "op": "logic.catch",
          "steps": [
            {
              "op": "dom.click",
              "locator": {
                "kind": "css",
                "value": "#fuel-compact-close",
                "visible": true
              }
            },
            {
              "op": "dom.wait",
              "locator": {
                "kind": "css",
                "value": "#fuel-compact-close",
                "visible": true
              },
              "until": {
                "state": "hidden"
              },
              "timeoutMs": 750
            },
            {
              "op": "notify.toast",
              "id": "fuel-close",
              "level": "success",
              "message": "识别到 Buddy 加油站弹窗,已关闭"
            }
          ],
          "onError": []
        },
        {
          "op": "logic.catch",
          "steps": [
            {
              "op": "dom.click",
              "locator": {
                "kind": "css",
                "value": "button.wb-related-playbooks__dismiss-today",
                "visible": true
              }
            },
            {
              "op": "dom.wait",
              "locator": {
                "kind": "css",
                "value": "button.wb-related-playbooks__dismiss-today",
                "visible": true
              },
              "until": {
                "state": "hidden"
              },
              "timeoutMs": 750
            },
            {
              "op": "notify.toast",
              "id": "playbooks-close",
              "level": "success",
              "message": "已关闭相关玩法推荐,今日不再展示"
            }
          ],
          "onError": []
        },
        {
          "op": "logic.catch",
          "steps": [
            {
              "op": "dom.click",
              "locators": [
                {
                  "kind": "css",
                  "value": "button[data-track-id=\"home_growth_close\"]",
                  "visible": true
                },
                {
                  "kind": "css",
                  "value": ".wb-slot--home-growth button.wb-slot--closable-close",
                  "visible": true
                }
              ]
            },
            {
              "op": "dom.wait",
              "locators": [
                {
                  "kind": "css",
                  "value": "button[data-track-id=\"home_growth_close\"]",
                  "visible": true
                },
                {
                  "kind": "css",
                  "value": ".wb-slot--home-growth button.wb-slot--closable-close",
                  "visible": true
                }
              ],
              "until": {
                "state": "hidden"
              },
              "timeoutMs": 750
            },
            {
              "op": "notify.toast",
              "id": "growth-close",
              "level": "success",
              "message": "已关闭「做任务赢积分好礼」入口"
            }
          ],
          "onError": []
        },
        {
          "op": "logic.catch",
          "steps": [
            {
              "op": "dom.click",
              "locators": [
                {
                  "kind": "css",
                  "value": "button.activity-bubble__close",
                  "visible": true
                },
                {
                  "kind": "css",
                  "value": "button.claw-welcome-activity-card__close",
                  "visible": true
                },
                {
                  "kind": "css",
                  "value": "div[style*=\"width: 213px\"][style*=\"pointer-events: auto\"] > div[style*=\"height: 124px\"] > div[style*=\"height: 40px\"] > button[type=\"button\"][style*=\"width: 16px\"][style*=\"height: 16px\"]",
                  "visible": true,
                  "intent": "dismiss"
                }
              ]
            },
            {
              "op": "dom.wait",
              "locators": [
                {
                  "kind": "css",
                  "value": "button.activity-bubble__close",
                  "visible": true
                },
                {
                  "kind": "css",
                  "value": "button.claw-welcome-activity-card__close",
                  "visible": true
                },
                {
                  "kind": "css",
                  "value": "div[style*=\"width: 213px\"][style*=\"pointer-events: auto\"] > div[style*=\"height: 124px\"] > div[style*=\"height: 40px\"] > button[type=\"button\"][style*=\"width: 16px\"][style*=\"height: 16px\"]",
                  "visible": true,
                  "intent": "dismiss"
                }
              ],
              "until": {
                "state": "hidden"
              },
              "timeoutMs": 750
            },
            {
              "op": "notify.toast",
              "id": "activity-close",
              "level": "success",
              "message": "已关闭首页活动弹窗"
            }
          ],
          "onError": []
        },
        {
          "op": "logic.delay",
          "ms": 300
        }
      ]
    }
  ],
  "onSuccess": [],
  "onFailure": []
}