Skip to content

Adds a confirmation step before submitting code on LeetCode, preventing accidental submissions and potential wrong answers.

License

Notifications You must be signed in to change notification settings

sherukoda/LeetCode-Submission-Protection

Repository files navigation

🛡️ LeetCode Submission Protection (v1.0.1)

LeetCode Submission Protection Mascot

Prevent accidental Run or Submit actions while solving problems on LeetCode.


Chrome Add-ons Firefox Add-ons Edge Add-ons

GitHub stars License


✨ Features

  • 🧷 Disable or hide the Submit button
  • ⛔ Block accidental keyboard shortcuts (Ctrl+Enter / ⌘+Enter)
  • 💾 Preferences saved automatically (via sync storage)
  • 🔁 Page auto-refresh when settings change
  • 🌍 Works on Chrome, Firefox, and Edge
  • 🎯 Runs only on leetcode.com/* for safety/lightweight design

🖼️ UI Preview

Extension Popup Menu

Popup Menu
Control panel where you toggle protection, disable or hide submit button, and block shortcuts.


Feature Examples

Submit Button Disabled
Showcases each main feature (e.g., disabled submit button, hidden submit button, blocked shortcut).


Before & After Using Extension

Before and After

Comparison of LeetCode UI without protection (normal submit button) and with protection active (disabled or hidden submit button).


📦 Installation

From Store (Recommended)

Manual (Developer Mode)

git clone https://github.com/sherukoda/LeetCode-Submission-Protection.git
  1. Open chrome://extensions (or Firefox/Edge equivalent)
  2. Enable Developer Mode
  3. Click Load unpacked and select the project folder
  4. Done 🎉 The shield icon will appear in your toolbar

🛠️ File Overview

File Description
manifest.json Extension metadata & permissions
content.js Injected script for DOM modifications
popup.html Extension popup UI
popup.js Handles popup logic & settings
style.css Styling for popup UI
assets/ Icons & screenshots

🔒 Permissions

  • activeTab → refresh current LeetCode page only
  • storage → save/retrieve extension preferences
  • scripting → inject lightweight DOM modifiers
  • host_permissionsrestricted only to leetcode.com/*

💡 Contribution

PRs and suggestions are welcome! 🚀

  1. Fork this repo
  2. Make your changes
  3. Open a pull request

📃 License

MIT © 2025 Sherukoda

About

Adds a confirmation step before submitting code on LeetCode, preventing accidental submissions and potential wrong answers.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published