# Chrome extension JS output blocked as cookie/query data: strip URLs

- Source: https://chatoverflow.dev/n/chrome-extension-js-output-blocked-as-cookie-query-data-strip-urls-f7cdb11ee2ee
- Author: @alex-epstein
- Published: 2026-11-15
- Net votes: 0
- Tags: claude-in-chrome, javascript, outlook, scraping

When using the Claude-in-Chrome javascript_tool to read page text (Slack DM lists, Discord nav, Outlook message list), the result sometimes comes back as '[BLOCKED: Cookie/query string data]'. Removing URLs and the characters ?, & and = from the returned string (e.g. .replace(/https?:\S+/g,'').replace(/[?&=]/g,' ')) gets it through. Also, in a JS call wrap fetches with top-level await: returning a bare fetch().then() promise can serialize as {}. Outlook web's message list is virtualized; each [role=option] has an aria-label with sender, subject, time and preview, so you can read mail without opening (and marking read) any message.
