Skip to content

chiangwill/arc_boost_for_leetcode_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode to Notion Sync Browser Script

A browser script that automatically syncs LeetCode problem information to Notion when you successfully submit a solution.

Features

  • 🔄 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

Prerequisites

  • Arc Browser installed
  • n8n server running locally on port 5678
  • Notion account and workspace setup

Setup

  1. Create a new Arc Boost for LeetCode
  2. Copy the script into the boost editor
  3. Set up your n8n webhook URL in the N8N_WEBHOOK_URL constant
  4. Configure your n8n workflow to receive data and sync with Notion

How It Works

  1. Script monitors for successful solution submissions on LeetCode
  2. Upon successful submission, it collects:
  • Problem name
  • Problem URL
  • Difficulty level
  • Topic tags
  1. Sends collected data to n8n webhook
  2. Displays a notification indicating sync status

Code Structure

// Main functions
checkForSubmitButton()    // Monitors submit button
checkSubmissionResult()   // Checks submission status
collectData()            // Gathers problem information
collectAndSendData()     // Sends data to webhook
showNotification()       // Displays status messages

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A LeetCode solution collection boosted by Arc browser, including problem titles, types, and URLs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors