Skip to content

kairi003/Get-cookies.txt-LOCALLY

Repository files navigation

Get cookies.txt LOCALLY

Get cookies.txt, NEVER send information outside.

ss

This extension exports cookies.txt in Netscape or JSON format. The Netscape cookies.txt format is compatible with wget, curl, MozillaCookieJar(Python3), and more.

Rest assured that this extension never transmits your information externally. It features an open-source, unobfuscated source code that is readily available for inspection on GitHub or in the extension's installation directory.

To function correctly, this extension requires certain permissions, all of which are listed in the source code for transparency. Specifically, it now needs "Download management" to execute a more appropriate file export method, which was previously achieved through "link generation and automatic clicking" in versions before v0.3.x.

  • activeTab: To get the URL of the current active tab.
  • cookies: To get and export cookies (not write or send).
  • downloads: Only used to export local resources (cookies).
  • notifications: To notify updates.
  • hosts permissions: To get and export cookies (not write or send).

Installation

From WebStore

Chrome Web Store Mozilla Add-on

Chrome Web Store Chrome Web Store
Mozilla Add-on Mozilla Add-on

  • Depending on the status of the review, it may not be the latest version or may not be published yet.
  • Some features may be limited in the Firefox version.
  • You may need to allow access to site resources from the extension manager.

From source code (Google Chrome)

  1. Download and unzip this repository.
  2. Open Extensions(chrome://extensions/).
  3. Enable "Developer mode".
  4. Click on "Load Unpacked" and open the directory Get-cookies.txt-LOCALLY/src.

From source code (Firefox)

For Firefox, you need to patch the manifest file by merging src/manifest.json and src/manifest-firefox.json. One of the following methods can be taken.

  • Use firefox branch: the workflow has merged manifest on master.
  • Use other branches: you need to merge by npm run build:firefox, jq or manually.

Example of extension installation directory (Google Chrome)

Windows

%LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions\cclelndahbckbenkjhflpdbgdldlbecc

Mac

~/Library/Application Support/Google/Chrome/Default/Extensions/cclelndahbckbenkjhflpdbgdldlbecc

Linux

~/.config/google-chrome/Default/Extensions/cclelndahbckbenkjhflpdbgdldlbecc