Prevent accidental Run or Submit actions while solving problems on LeetCode.
- 🧷 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
Control panel where you toggle protection, disable or hide submit button, and block shortcuts.
Showcases each main feature (e.g., disabled submit button, hidden submit button, blocked shortcut).
Comparison of LeetCode UI without protection (normal submit button) and with protection active (disabled or hidden submit button).
git clone https://github.com/sherukoda/LeetCode-Submission-Protection.git
- Open
chrome://extensions
(or Firefox/Edge equivalent) - Enable Developer Mode
- Click Load unpacked and select the project folder
- Done 🎉 The shield icon will appear in your toolbar
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 |
activeTab
→ refresh current LeetCode page onlystorage
→ save/retrieve extension preferencesscripting
→ inject lightweight DOM modifiershost_permissions
→ restricted only toleetcode.com/*
PRs and suggestions are welcome! 🚀
- Fork this repo
- Make your changes
- Open a pull request
MIT © 2025 Sherukoda