CF FetchCodes EN
Sayan Paul · Firefox
Fetch Accepted Codes of CodeForces Friends This Firefox extension retrieves the accepted solutions of all your CodeForces-friends for a given problem on the platform.
截图
简介
CF FetchCodes: Learn from Friends' Solutions
Stuck on a CodeForces problem? Unlock the collective wisdom of your circle!
CF FetchCodes is a powerful browser extension designed to supercharge your Competitive Programming journey. It seamlessly integrates into the CodeForces problem page, allowing you to instantly view accepted solutions from your friends without ever leaving the tab.
Whether you are looking for a different approach, an optimization hack, or just inspiration, CF FetchCodes brings your friends' code directly to you.
🚀 New in this Update (v25.12.7):
- Smart Session Management: No more confusing "Failed to load" errors! The extension now detects if your CodeForces session has expired and provides a direct "Login & Retry" button inside the list.
- One-Click Retry: Fetch failed? You can now retry fetching a specific code instantly without refreshing the entire page.
- Enhanced Error Feedback: Clearly distinguishes between Hidden/Private codes (which can't be viewed) and Auth Errors (which just need a quick login).
✨ Key Features:
- 👀 Instant Code Access: See a list of all friends who have accepted the current problem.
- ⚡ Lazy Loading: To save bandwidth and speed up the page, code is only downloaded when you click a specific friend.
- 🛡️ Robust Auth Handling: Seamlessly handles background session timeouts, ensuring you can continue browsing friends' codes even if your login cookie expires.
- 🎨 Native Syntax Highlighting: Read code comfortably with coloring that matches the CodeForces environment (Supports C++17/20, Python 3, Java, and more).
- 🔗 Quick Navigation: Includes direct links to the original submission and your friend's profile.
- 📊 Progress Status: A real-time progress bar shows you the status of checking your friends' submissions.
- Safety-First Architecture: Uses "Human-Like" delays and randomized jitter to strictly adhere to CodeForces API limits and keep your account safe.
🛠️ How to use:
1. Install CF FetchCodes.
2. Navigate to any CodeForces problem page.
3. Look for the "→ Accepted Codes of Friends" box in the right sidebar.
4. Click "Show Codes".
5. Click on any friend's name in the list to expand and study their solution!
⚠️ Important Notes:
- Contest Integrity: To maintain fair play, this extension does not work during live contests. It is designed for practice and upsolving.
- Privacy: You can only view submissions that are public. Private or gym submissions are restricted by CodeForces API rules.
🤝 Contribute & Support
CF FetchCodes is an open-source initiative built by the community, for the community. We love pull requests!
- Found a bug or have a feature request?
- Want to improve the code?
👉 Head over to our GitHub: https://github.com/sa-paul/CF_FetchCodes
🔮 Upcoming Features:
We are constantly coding to make this tool better. Here is what is in the pipeline:
- 🌙 Dark Mode: A sleek dark theme for late-night coding sessions.
- 🎨 Custom Themes: Choose your favorite editor color scheme.
- 🤖 AI Code Explainer: An AI companion to break down complex logic in your friends' code.
📜 Release Notes
Version 25.12.7 (Stability & Authentication Fixes)
- Fix: Resolved the "Failed to load code" issue reported by users.
- New: Added a "Session Expired" state with a smart Login & Retry button.
- New: Improved detection logic to differentiate between locked/private submissions and connection errors.
- Improvement: The "Retry" button now re-fetches code specifically for that user without reloading the whole list.
Version 25.11.21 (Major Overhaul)
- UI Redesign: Replaced the pop-up modal with a sleek, scrollable Accordion list.
- Stable System: Implemented "Human-Like" delays and randomized jitter.
- Performance: Added a caching layer; code is now stored in memory after the first fetch.
- Bug Fix: Fixed an issue where the extension interfered with CodeForces' native hover events.
Version 0.1.1
- Security: Enhanced compliance with Manifest V3 policies for better security and stability.
Version 0.1.0
- Initial Launch: Added basic code fetching, syntax highlighting, and sidebar integration.
CF FetchCodes 是做什么的
CF FetchCodes 是一款面向 Firefox 的搜索增强类扩展,主要用来补充搜索结果、切换搜索引擎、过滤无效结果。官方对它的介绍是:Fetch Accepted Codes of CodeForces Friends This Firefox extension retrieves the accepted solutions of all your CodeForces-friends for a given problem on the platform.在Firefox 附加组件商店(AMO)上,它当前版本 25.12.7,评分 3(1 人评价),约 30 名用户。
适合什么人用
从功能定位看,CF FetchCodes 更适合每天大量搜索、希望结果更干净准确的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 CF FetchCodes
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
CF FetchCodes 是免费的吗?
CF FetchCodes 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
CF FetchCodes 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
CF FetchCodes 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 CF FetchCodes?
在扩展管理页找到 CF FetchCodes,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 1
activeTab


