setupContextMenu function exported

Last updated: 2026-03-01T23:25:47.058Z

Metrics

LOC: 25 Complexity: 1 Params: 0

Signature

setupContextMenu(): : void

Source Code

export function setupContextMenu(): void {
  chrome.contextMenus.create({
    id: "fill-all-fields",
    title: "Fill All - Preencher todos os campos",
    contexts: ["page"],
  });

  chrome.contextMenus.create({
    id: "fill-all-save-form",
    title: "Fill All - Salvar dados do formulário",
    contexts: ["page"],
  });

  chrome.contextMenus.create({
    id: "fill-all-field-rule",
    title: "Fill All - Criar regra para este campo",
    contexts: ["editable"],
  });

  chrome.contextMenus.create({
    id: "fill-all-export-e2e",
    title: "Fill All - Exportar script E2E (Playwright)",
    contexts: ["page"],
  });
}

Dependencies (Outgoing)

graph LR setupContextMenu["setupContextMenu"] sendToSpecificTab["sendToSpecificTab"] setupContextMenu -->|uses| sendToSpecificTab style setupContextMenu fill:#dbeafe,stroke:#2563eb,stroke-width:2px click setupContextMenu "2ffc26e0cf740034.html" click sendToSpecificTab "3da88adecaec2d24.html"
TargetType
sendToSpecificTab uses

Impact (Incoming)

graph LR setupContextMenu["setupContextMenu"] handleMessage["handleMessage"] handleMessage -->|calls| setupContextMenu style setupContextMenu fill:#dbeafe,stroke:#2563eb,stroke-width:2px click setupContextMenu "2ffc26e0cf740034.html" click handleMessage "58fadf6b36b326d5.html"
SourceType
handleMessage calls