Skip to content

Bulk import cookies for multiple domains #18

Description

@investblog

Context

Currently import writes cookies only for the current site's domain. Anti-detect and multi-account workflows require importing a full cookie set spanning multiple domains (e.g. facebook.com + instagram.com + google.com) in one action.

Proposal

  • Import dialog accepts JSON/Netscape with cookies for any domain
  • Each cookie is written using its own domain field via browser.cookies.set({ url, ... })
  • Construct URL from cookie's domain + path + secure flag
  • Show summary after import: "Imported 45 cookies for 6 domains"
  • Warning if import contains cookies for sensitive domains

Technical Notes

  • browser.cookies.set() requires a url parameter — construct from http(s)://domain/path
  • If secure: true, use https://; otherwise http://
  • Domain with leading . → strip dot for URL construction
  • Needs <all_urls> permission (already have it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions