Блог пользователя saPaul

Автор saPaul, история, 3 месяца назад, По-английски

CF FetchCodes Source:

Chrome Web Store: Install CF FetchCodes

GitHub (Open Source): github.com/sayanpaulcse/CF_FetchCodes


What is CF FetchCodes?

It's a browser extension that adds a small widget to every Codeforces problem page. It lets you:

  1. See which of your friends solved the problem — detected automatically from your CF friends list.
  2. Read their accepted code — with syntax highlighting, right on the page. No navigation needed.
  3. Ask AI to explain any solution — a built-in Gemini chat that breaks down the approach, time/space complexity, and logic.
  4. Dark Mode for Codeforces — full page dark mode + code-only dark mode with 6 selectable syntax themes.

Feature Breakdown

1. Accepted Codes of Friends

After a contest ends, go to any problem page and click "Show Codes" in the sidebar. The extension checks your friends list using the contest standings API (fast, no scraping), then shows you everyone who got AC. Click any friend's name to expand and read their code with syntax highlighting.

  • Smart caching: reopening the same code is instant
  • Direct links to the original submission and friend's profile
  • Safety-first... human-like delays and batching to respect CF rate limits

2. AI Code Explainer (Gemini-Powered)

Click the "Explain" button above any friend's code to open an AI chat window. It analyzes:

  • The approach and algorithm used
  • Time complexity and space complexity
  • You can ask follow-up questions in the same chat

You can also select any text on a Codeforces page => right-click => "Explain code with AI" for an instant snippet explanation.

Note: Requires a free Gemini API key from Google AI Studio. Your key is stored locally in your browser and is never sent anywhere except directly to Google's Gemini API. We don't have any servers.

3. Dark Mode

Two modes available from the extension popup:

  • Full Page Dark Mode: makes the entire Codeforces problem page dark (nav bar, sidebar, test cases, everything).
  • Code-Only Dark Mode: applies dark syntax themes only to code blocks. Choose from 6 themes: Monokai, Dracula, Solarized Dark, Nord, GitHub Dark, One Dark.

Privacy

  • No external servers — all processing happens locally in your browser
  • No analytics, no tracking, no telemetry
  • Your Gemini API key is stored in Chrome's local storage and only communicates directly with Google's API
  • The extension is fully open source — you can read every line of code on GitHub

IMPORTANT DISCLAIMER

CF FetchCodes is built strictly for UPSOLVING and PRACTICE.

  • DO NOT use this extension during live Codeforces rounds.
  • DO NOT use AI or any external tool during rated contests.
  • The extension is designed to help you learn after a contest is over — study different approaches, understand optimizations, and improve your skills.
  • Using AI during live rounds is strictly prohibited by Codeforces rules and undermines the integrity of the platform.

Please read the official Codeforces stance:

Use this tool to learn and grow — not to cheat your rating.


How to Get Started

  1. Install from the Chrome Web Store
  2. Make sure you have friends added on Codeforces (star button on their profile)
  3. (Optional) Click the extension icon => paste your Gemini API key for AI features
  4. Go to any problem page => find "Accepted Codes of Friends" in the sidebar => click "Show Codes"

Feedback, bug reports, and feature requests are welcome! You can comment here, open an issue on GitHub, or reach me at [email protected].

Happy upsolving!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -18
  • Проголосовать: не нравится

Автор saPaul, история, 11 месяцев назад, По-английски

Hello Codeforces!

You're stuck on a problem during practice, and you see that your friend accepted it. You just want to see how they did it.

Previously, using this tool felt a bit... heavy. It would try to fetch everyone's code at once. If you had many friends, you hit rate limits, waited forever, and ended up with a massive list of codes you didn't even need. And if it failed? You just got a sad "Failed to Load" message. :(

v25.12.7 changes the game. Here is how we made your upsolving smoother:

[The Problem] "Too Much, Too Slow" Before, we fetched everything instantly. This wasted bandwidth and often triggered API warnings. Plus, if your session expired mid-way, everything broke.

[The Fix] Lazy Loading & You Choose! Now, we show you a clean list of friends who solved the problem first.

  • You Click, We Fetch: The code only loads when you actually click on a specific friend's name. No more wasting data on solutions you don't want to see.
  • Smart Progress Bar: A blue line fills up as we scan your friends list, turning Green when done. You always know exactly how many friends have been checked.

[+] Zero Waiting with Caching Ever opened a friend's code, closed it, and then realized you missed something? Previously, you had to wait for it to fetch again. Not anymore. We've added smart caching. Once you fetch a solution, it stays in memory. Open it a second time? It appears instantly. Zero network wait.

[+] Login & Retry in Place If the extension fails to fetch code (maybe your session timed out?), we don't just give up.

  1. We show a clear "Session Expired" alert.
  2. You click Login (new tab) -> Come back -> Click Retry.
  3. It retries just that code instantly without reloading the page!

[+] The "View Original" Safety Net And if all else fails (maybe Codeforces is just having a bad day), we replaced the generic error with a direct "View Original Submission" button. You can always jump straight to their submission page to see the full details and test cases.


Try it out now:

If you face any issues or have a cool idea, drop a PR or Issue on GitHub.

Happy Upsolving!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

Автор saPaul, история, 2 года назад, По-английски

Exciting Update: CF FetchCodes Now Available as a Firefox Extension!

We are thrilled to announce that CF FetchCodes, the ultimate browser extension designed to enhance your CodeForces experience, is now available for Firefox!

What is CF FetchCodes?

CF FetchCodes is a powerful extension that allows CodeForces users to access the accepted codes of their friends directly from the problem pages. By providing this unique feature, CF FetchCodes empowers developers and coding enthusiasts to gain insights, learn new strategies, and improve their problem-solving skills by exploring the accepted solutions of their peers.

What's New in CF FetchCodes v0.1.0:

  • Added Code Highlighter: Implemented syntax highlighting similar to the default highlighter on CodeForces, enhancing code readability and user convenience.
  • Clickable Button: Added a button to easily navigate to a friend's profile and submission, making it simpler to explore and learn from their accepted codes.
  • Enhanced Speed: Improved performance for faster code fetching, with a rate limit of 5 fetches every 6.5 seconds, ensuring a smoother and more efficient user experience.
  • Bug Fixes: Addressed various issues, including repetitive code occurrences and code not found errors, to ensure a more reliable and seamless experience.

Privacy and Security: Your privacy and security are our top priorities. CF FetchCodes operates entirely within your browser and only interacts with CodeForces, adhering to strict data protection standards to ensure a safe and secure browsing experience.

How to Use CF FetchCodes:

CF FetchCodes adds an extra content section named "Accepted Codes of Friends" on the sidebar of CodeForces problem pages. It contains a "Show Code" button. Clicking on the button opens a pop-up window on the same page, displaying the accepted codes of your CodeForces friends.

Steps to Use CF FetchCodes:

  1. Visit a problem page on CodeForces.
  2. Locate the "Accepted Codes of Friends" section on the sidebar.
  3. Click on the "Show Code" button.
  4. A pop-up window will appear, showing the accepted codes of your friends who have solved the same problem.

Explore the codes, learn from different approaches, and gain valuable insights.

Note: This feature assumes that you have friends on your CodeForces account.

How to Add Friends on CodeForces:

  1. Log in to your CodeForces account.
  2. Go to the profile page of the user you want to add as a friend.
  3. Click the "Add to friends" button on their profile page.

Once you have added friends, CF FetchCodes will be able to display their accepted codes on problem pages.

How to Install CF FetchCodes:

CF FetchCodes is now available on the Firefox Add-ons store. Install it today and unlock a world of coding possibilities:

Install CF FetchCodes on Firefox

Watch the CF FetchCodes Guide:

Curious to see CF FetchCodes in action? Check out our comprehensive video guide on YouTube. We walk you through the installation process and showcase the powerful features of the extension:

YouTube Guide: CF FetchCodes

Contribute to CF FetchCodes:

CF FetchCodes is an open-source project, and we invite you to join our community of passionate coders. Explore the source code, contribute your ideas, and make CF FetchCodes even better. Visit our GitHub repository:

GitHub: CF FetchCodes

Don't miss out on this incredible opportunity to enhance your CodeForces journey. Install CF FetchCodes for Firefox today and unlock the secrets of successful coding on CodeForces. Let's elevate the way we code together!


Feel free to leave feedback, report issues, or contribute directly to our GitHub repository. Happy coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

Автор saPaul, история, 2 года назад, По-английски

CF FetchCodes v0.1.0

Exciting Update! Introducing CF FetchCodes v0.1.0: Elevate Your CodeForces Experience

We're thrilled to announce the release of CF FetchCodes v0.1.0, a game-changing browser extension designed exclusively for CodeForces enthusiasts. This latest version brings new features, performance enhancements, and critical bug fixes to improve your coding journey. Here’s what’s new:

New Features

  • Added Code Highlighter: Implemented syntax highlighting similar to the default highlighter on CodeForces, enhancing code readability and user convenience.
  • Clickable Button: Added a button to easily navigate to a friend's profile and submission, making it simpler to explore and learn from their accepted codes.

Performance Improvements

  • Enhanced Speed: Improved performance for faster code fetching, with a rate limit of 5 fetches every 6.5 seconds, ensuring a smoother and more efficient user experience.

Bug Fixes

  • Repetitive Code Occurrences: Fixed issues with repetitive code occurrences, providing a more reliable fetching process.
  • Code Not Found Errors: Addressed errors related to code not being found, ensuring you can access the accepted codes without interruptions.

Privacy and Security

Your privacy and security are our top priorities. CF FetchCodes runs entirely on your browser and only interacts with CodeForces. We adhere to strict data protection standards, ensuring a safe and seamless browsing experience.

How to Use CF FetchCodes

CF FetchCodes adds an extra content section named "Accepted Codes of Friends" on the sidebar of CodeForces problem pages. It contains a "Show Code" button. Clicking on the button opens a pop-up window on the same page, displaying the accepted codes of your CodeForces friends.

To use CF FetchCodes:

  1. Visit a problem page on CodeForces.
  2. Locate the "Accepted Codes of Friends" section on the sidebar.
  3. Click on the "Show Code" button.
  4. A pop-up window will appear, showing the accepted codes of your friends who have solved the same problem.

Explore the codes, learn from different approaches, and gain valuable insights.

Note: This feature assumes that you have friends on your CodeForces account.

How to Add Friends on CodeForces:

  1. Log in to your CodeForces account.
  2. Go to the profile page of the user you want to add as a friend.
  3. Click the "Star" button next to handle on their profile page.

Once you have added friends, CF FetchCodes will be able to display their accepted codes on problem pages.

How to Install

Install CF FetchCodes v0.1.0 today from the Chrome Web Store and unlock a world of coding possibilities:

Chrome Web Store: CF FetchCodes

Watch the CF FetchCodes Guide

Curious to see CF FetchCodes in action? Check out our comprehensive video guide on YouTube. We walk you through the installation process and showcase the powerful features of the extension:

YouTube Guide: CF FetchCodes

Contribute to CF FetchCodes

CF FetchCodes is an open-source project, and we invite you to join our community of passionate coders. Explore the source code, contribute your ideas, and make CF FetchCodes even better. Visit our GitHub repository:

GitHub: CF FetchCodes

Don't miss out on this incredible opportunity to enhance your CodeForces journey. Install CF FetchCodes v0.1.0 today and unlock the secrets of successful coding on CodeForces. Let's elevate the way we code together!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

Автор saPaul, история, 3 года назад, По-английски

Introduction: Are you an avid CodeForces user who wants to elevate your coding experience? Look no further! We're thrilled to introduce CF FetchCodes, a powerful browser extension designed to enhance your CodeForces journey. With CF FetchCodes, you can effortlessly fetch and explore the accepted codes of your CodeForces friends, gaining valuable insights, and expanding your coding horizons.

Unleash the Power of CodeForces: CodeForces is a renowned platform for competitive programming, and CF FetchCodes takes it to the next level. Imagine having instant access to the accepted codes of your friends, allowing you to learn from their solutions, discover new techniques, and gain inspiration.

Key Features:

  1. Explore Accepted Codes: CF FetchCodes provides a seamless way to fetch and explore the accepted codes of your CodeForces friends. Gain insights, learn from experienced coders, and expand your knowledge in competitive programming.

  2. Insights and Learning: Dive deep into the code submissions of talented developers from around the world. Discover innovative approaches, advanced algorithms, and efficient problem-solving techniques. Learn from the best and improve your coding skills.

  3. Privacy and Security: Rest assured, CF FetchCodes prioritizes your privacy and security. The extension operates entirely within your browser and only interacts with CodeForces. Your data remains secure, allowing you to focus on what matters most – coding!

Installation and Resources: Ready to enhance your CodeForces journey? Install CF FetchCodes today from the Chrome Web Store:

Chrome Web Store Link: CF FetchCodes

For a comprehensive walkthrough and to see CF FetchCodes in action, check out our video guide on YouTube:

YouTube Guide: CF FetchCodes Guide

Contribute and Collaborate: CF FetchCodes is an open-source project, and we welcome developers like you to join our community. Contribute your ideas, suggestions, and enhancements to make CF FetchCodes even better. Visit our GitHub repository and be part of the collaborative coding journey:

GitHub: CF FetchCodes on GitHub

Conclusion: CF FetchCodes is your gateway to unlock the full potential of CodeForces. With easy access to accepted codes, valuable insights, and a thriving community, you'll elevate your coding skills and reach new heights in competitive programming. Install CF FetchCodes today, embark on a coding adventure, and make your mark in the world of CodeForces!

Get started with CF FetchCodes and experience the power of collaborative coding. Let's revolutionize the way we learn, code, and conquer CodeForces together!

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится