A Chrome/Edge extension that blocks code pasting on LeetCode and GeeksforGeeks to encourage learning through writing code yourself!
Created by Divyansh Singh
GitHub: divyanshsingh07
- Blocks code pasting on LeetCode and GeeksforGeeks problem pages
- Works with all paste methods (right-click, keyboard shortcuts, drag-drop)
- Shows a friendly message when paste is attempted
- Easy toggle to enable/disable the blocking
- Clean, non-intrusive notifications
- Visit the Chrome Web Store
- Search for "Code Paste Blocker"
- Click "Add to Chrome"
# Clone the repository
git clone https://github.com/divyanshsingh07/CopyPasteBlocker.git
# Navigate to the extension directory
cd CopyPasteBlocker- Download the extension files from GitHub
- Open Chrome/Edge and go to
chrome://extensions/(oredge://extensions/) - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the downloaded extension folder
- The extension is enabled by default
- Visit any LeetCode or GeeksforGeeks problem page
- Try to paste code - you'll see a friendly message instead
- Click the extension icon to toggle blocking on/off
- Encourages active learning through writing code
- Helps build muscle memory for coding
- Makes you think through problems instead of copying solutions
- Fun, encouraging messages when you try to paste
This extension:
- Only runs on LeetCode and GeeksforGeeks problem pages
- Does not collect any user data
- Does not track your browsing activity
- Only stores your preference for enabling/disabling the blocking
If you find any issues or have suggestions, please open an issue on GitHub.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
MIT License - Feel free to use and modify as needed!