fix: popup.js action->cmd; add disable_dialogs.js with toast; update manifest

This commit is contained in:
Jiaqing Liang
2026-04-07 12:17:18 +08:00
parent b525684378
commit 25fe3e42fd
4 changed files with 33 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ async function fetchCookies() {
try {
const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
if (!tab?.url) { out.textContent = 'No active tab'; return; }
const resp = await chrome.runtime.sendMessage({ action: 'cookies', url: tab.url });
const resp = await chrome.runtime.sendMessage({ cmd: 'cookies', url: tab.url });
if (!resp?.ok) { out.textContent = 'Error: ' + (resp?.error || 'unknown'); return; }
if (!resp.data.length) { out.textContent = '(no cookies)'; return; }
// 展示带标记