add cookie extraction function

This commit is contained in:
lolcat committed 2026-10-25 00:26:48 -04:00
1 parent 72f27922a8
commit 2a192b1bef
2 files changed
+24

No files matched your search

+7
View File
@@ -512,6 +512,13 @@ function attach_ws_events(ws){
send(ws, seqid, {status: false});
break;
case "get_cookies":
var cookies = await browser.cookies.getAll(msg.filters);
send(ws, seqid, {"cookies": cookies});
break;
default:
console.log(`ws: unhandled message "${msg.action}"`, msg);
break;