A browser script that automatically syncs LeetCode problem information to Notion when you successfully submit a solution.
- 🔄 Automatically detects successful submissions
- 📝 Collects problem metadata:
- Problem title
- Problem URL
- Difficulty level
- Topic tags
- 🚀 Syncs data to Notion via n8n webhook
- 📱 Shows notification on sync success/failure
- Arc Browser installed
- n8n server running locally on port 5678
- Notion account and workspace setup
- Create a new Arc Boost for LeetCode
- Copy the script into the boost editor
- Set up your n8n webhook URL in the
N8N_WEBHOOK_URLconstant - Configure your n8n workflow to receive data and sync with Notion
- Script monitors for successful solution submissions on LeetCode
- Upon successful submission, it collects:
- Problem name
- Problem URL
- Difficulty level
- Topic tags
- Sends collected data to n8n webhook
- Displays a notification indicating sync status
// Main functions
checkForSubmitButton() // Monitors submit button
checkSubmissionResult() // Checks submission status
collectData() // Gathers problem information
collectAndSendData() // Sends data to webhook
showNotification() // Displays status messagesThis project is licensed under the MIT License - see the LICENSE file for details