A Brave/Chrome browser extension that adds a floating "Push to GitHub" button on every Codeforces problem page. After solving a problem, push your solution directly to your private GitHub repo — organized by concept (e.g., digit-dp, diameter, bitmask, etc.).
- Floating button on all CF problem pages (problemset + contest + gym)
- Auto-fetches your latest accepted submission via CF API
- Concept folder picker — create a new folder or add to an existing one
- Lists existing folders from your GitHub repo (live)
- Multi-language support —
.cpp,.py,.java,.rs,.go,.kt, and more - Custom commit messages
- Secure — GitHub PAT stored locally in extension storage (never sent anywhere except GitHub API)
- Premium dark UI — GitHub-inspired dark mode modal
my-cf-solutions/
├── digit-dp/
│ ├── 1553E_Carr_Partition.cpp
│ └── 1372E_Omkar_Beautiful_Permutations.cpp
├── diameter/
│ └── 1156G_Lucky_Path.cpp
├── bitmask-dp/
│ └── 1209G_Across_the_Universe.cpp
└── graphs/
└── 1076E_Vasyas_Function.cpp
- Open Brave → go to
brave://extensions - Enable Developer mode (top right toggle)
- Click "Load unpacked"
- Select this folder:
cf-github-pusher/
- Click the CF GitHub Pusher icon in the toolbar
- Fill in:
- GitHub PAT — Create one at github.com/settings/tokens with
reposcope - GitHub Repo — e.g.
yourname/cf-solutions(must exist, can be private) - CF Handle — your Codeforces username (e.g.
tourist)
- GitHub PAT — Create one at github.com/settings/tokens with
- Click Save Settings
- Go to any Codeforces problem page and solve it (get Accepted)
- Click the floating green "Push to GitHub" button (bottom-right corner)
- In the modal:
- Pick "Create new folder" → type a concept name (e.g.
digit-dp) - OR pick "Add to existing" → choose from dropdown (populated from your repo)
- OR pick "No folder" → pushes to repo root
- Pick "Create new folder" → type a concept name (e.g.
- Click 🚀 Push Solution
- Done! Check your repo on GitHub.
- You must be logged in to Codeforces in the same browser — source code is fetched from your submission page
- The CF API only returns submissions for the last 30 results — make sure your AC is recent
- If CF handle fetch fails, make sure your CF profile is public
- Icons directory (
icons/) is referenced inmanifest.jsonbut not included — the extension works without them, or add your own 16×16, 48×48, 128×128 PNG files
| File | Purpose |
|---|---|
manifest.json |
MV3 extension manifest |
background.js |
Service worker: CF API, GitHub API, submission code extraction |
content.js |
Injected into CF problem pages: floating button + modal UI |
content.css |
Styles for the button and modal |
popup.html |
Extension settings popup |
popup.js |
Settings save/load logic |
popup.css |
Popup styling |