Skip to content

deepPublicGit/leetcode-to-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Cookie Extractor

A Firefox browser extension that extracts cookies from LeetCode and saves them to a file.

Features

  • Only runs on the LeetCode website (https://leetcode.com/)
  • Extracts cookies from the site
  • Prints cookie key-value pairs to the console
  • Saves cookies to a file named leetcode_cookie_{current_date_time}.txt

Installation

Temporary Installation (for Development)

  1. Open Firefox and navigate to about:debugging
  2. Click on "This Firefox" in the left sidebar
  3. Click on "Load Temporary Add-on..."
  4. Navigate to the directory containing this extension and select the manifest.json file
  5. The extension will be loaded temporarily and will be removed when Firefox is closed

Permanent Installation

  1. Zip the contents of this directory (manifest.json, cookie.js, and any other files)
  2. Open Firefox and navigate to about:addons
  3. Click the gear icon and select "Install Add-on From File..."
  4. Select the zip file you created
  5. Follow the prompts to complete installation

Adding an Icon (Optional)

If you'd like to add an icon to the extension:

  1. Create a 48x48 pixel PNG image named icon.png
  2. Place it in the same directory as the manifest.json file
  3. Update the manifest.json file to include an "icons" section with a reference to your icon file

Usage

  1. Navigate to any page on https://leetcode.com/
  2. The extension will automatically:
    • Extract cookies from the site
    • Print them to the console (View > Browser Tools > Web Developer Tools > Console)
    • Save them to a file named leetcode_cookie_{current_date_time}.txt in your downloads folder

Permissions

This extension requires the following permissions:

  • cookies: To access and extract cookies from LeetCode
  • storage: To access localStorage for any cookie-related data
  • downloads: To save the extracted cookies to a file
  • *://leetcode.com/*: To only run on LeetCode website

Privacy Note

This extension extracts and saves cookies which may contain sensitive information. The data is saved locally to your computer and is not transmitted to any external servers. However, be cautious about sharing the saved cookie files as they may contain your session information.

About

Commit successful code submissions to GitHub automatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published