Item logo image for Copy Cookies

Copy Cookies

Item media 1 (screenshot) for Copy Cookies

Overview

Copy cookies to clipboard

# CopyCookies Chrome Extension Copy all cookies used in the current tab to the clipboard. You can invoke this extension using the shortcut key `Ctrl+Shift+K`. It functions similarly to the export feature of [EditThisCookie](http://editthiscookie.com/). The copied cookie objects, formatted in JSON, can be used with tools like [puppeteer](https://github.com/puppeteer/puppeteer). For example, the cookies will be copied in a JSON format like this: ```json [[ { "domain": ".example.com", "expirationDate": 1777466749.229935, "hostOnly": false, "httpOnly": false, "name": "_sess_id", "path": "/", "sameSite": "no_restriction", "secure": true, "session": false, "storeId": "0", "value": "abcd1234-5678-90ef-ghij-klmnopqrstuv" }, { "domain": ".example.com", "expirationDate": 1750682748, "hostOnly": false, "httpOnly": false, "name": "_tracking_id", "path": "/", "sameSite": "lax", "secure": false, "session": false, "storeId": "0", "value": "trk.1.1700000000000.123456789012345678" }, ... ] ``` ## Code Reference The following code snippet (from `popup.js`) demonstrates the updated implementation. It uses `currentWindow: true` for reliably obtaining the active tab and leverages the modern Clipboard API with async/await to copy the cookies: ```js (async function() { let [tab] = await chrome.tabs.query({active: true, currentWindow: true}); if (tab.url) { chrome.cookies.getAll({ "url": tab.url }, async cookies => { try { await navigator.clipboard.writeText(JSON.stringify(cookies)); console.log("Cookies copied to clipboard."); } catch (err) { console.error("Failed to copy cookies: ", err); } }); } else { console.error("Unable to retrieve the tab URL."); } })(); ``` ## Privacy Policy This extension requires the following permissions: - **cookies**: To access and retrieve cookies from the current tab. - **clipboardWrite**: To copy the cookies to the clipboard. - **host_permissions**: To allow the extension to retrieve cookies from any site (`*://*/*`). **Note:** This permission does not allow the extension to view your currently open websites in real time. It only enables cookie retrieval from any site when the extension is activated by the user. ### Data Collection This extension does **not** collect, store, or transmit any user data. All operations are performed locally within your browser. The extension accesses cookies from the current tab only when explicitly triggered by the user, immediately copying them to the clipboard without storing any data. ## Security This extension is open source. You can review the code in the [CopyCookies GitHub Repository](https://github.com/sammrai/copycookies.git) to ensure its safety. All operations are performed entirely within your local browser environment, and no data is transmitted to external servers. ## License This project is licensed under the Apache License 2.0. See the [LICENSE](./LICENSE) file for details.

0 out of 5No ratings

Google doesn't verify reviews. Learn more about results and reviews.

Details

  • Version
    1.0.0
  • Updated
    March 29, 2025
  • Size
    22.8KiB
  • Languages
    English
  • Developer
    Email
    saku0aab@gmail.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

The developer has disclosed that it will not collect or use your data. To learn more, see the developer’s privacy policy.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Support

For help with questions, suggestions, or problems, visit the developer's support site

Related

Copy-n-Paste: Clipboard Upload Simplified

4.7(66)

Simplify uploading copied screenshots, images, files from your clipboard to webpages.

Copy URL of All Tabs

0.0(0)

Copy, Copy all Tabs URLs to the clipboard. Paste, Open Tabs all the URLs in the clipboard.

Enable Copy Paste Extension

0.0(0)

Enable copy paste on websites that have disabled copy paste

Cookie Deleter

4.0(3)

Deletes cookies for specified sites

Copy Paste URLs

5.0(2)

Copy opened tabs URLs to clipboard or paste URLs from clipboard to create multiple tabs at once

Get cookies.txt LOCALLY

4.8(57)

Get cookies.txt, NEVER send information outside with open-source

투더쿠키, 쿠키 추출 및 저장 도구

5.0(3)

웹사이트의 쿠키를 추출하고 저장하는 도구입니다.

Enable Copy Paste - E.C.P

4.0(102)

Enable copy paste on websites that have disabled copy paste.

StorageAce

4.8(16)

Easily manage Cookies, Local Storage and Session Storage for the selected tab.

Shortkeys (Custom Keyboard Shortcuts)

3.4(760)

Custom keyboard shortcuts for your browser

Copy Cookies

4.7(11)

Copy cookies to clipboard

Absolute Enable Right Click & Copy Mv3

0.0(0)

Restore right click, copy, paste, and text selection on any site that blocks it. Bypass most web copy restrictions easily.

Copy-n-Paste: Clipboard Upload Simplified

4.7(66)

Simplify uploading copied screenshots, images, files from your clipboard to webpages.

Copy URL of All Tabs

0.0(0)

Copy, Copy all Tabs URLs to the clipboard. Paste, Open Tabs all the URLs in the clipboard.

Enable Copy Paste Extension

0.0(0)

Enable copy paste on websites that have disabled copy paste

Cookie Deleter

4.0(3)

Deletes cookies for specified sites

Copy Paste URLs

5.0(2)

Copy opened tabs URLs to clipboard or paste URLs from clipboard to create multiple tabs at once

Get cookies.txt LOCALLY

4.8(57)

Get cookies.txt, NEVER send information outside with open-source

투더쿠키, 쿠키 추출 및 저장 도구

5.0(3)

웹사이트의 쿠키를 추출하고 저장하는 도구입니다.

Enable Copy Paste - E.C.P

4.0(102)

Enable copy paste on websites that have disabled copy paste.

Google apps