CodeForces Daily POTD (Problem of the Day) Tamper Monkey Script

Revision en2, by hermit_parth, 2025-12-29 20:43:15

Hi,

I wrote a simple Tampermonkey script that adds a POTD (Problem of the Day) button on Codeforces.
Clicking it will give you a problem with a rating similar to your current rating.

Links:
- Download Script (GreasyFork)
- GitHub Repo


DESIGN CHOICES

  1. Minimize API Calls During Contests
    All API calls are done only when clicking "POTD", making the button slightly slower to respond, but keeping page refresh fast and lag-free during contests.

  2. User-Specific POTD
    Each user gets a different POTD, depending on their current rating (curr_rating).

  3. Rating Range
    POTD will be in the range: [curr_rating - neg_delta*100, curr_rating + pos_delta*100]

  • curr_rating is rounded down.
  • Example: If a user's rating is 1650, POTD can be one of [1400, 1500, 1600, 1700, 1800].
  • You can change the distribution by modifying the neg_delta and pos_delta constants.
  1. Unsolved Problems Only
    POTD will always be an unsolved problem, unlike LeetCode where POTD can be already solved.
    This ensures a truly user-specific challenge.

  2. Regenerating POTD
    After solving a POTD, clicking the button again gives a new unsolved problem.
    This makes the POTD button work as both a Problem of the Day and a random problem generator.


If you have any feedback or feature requests, let me know—I’ll try to add them!

Tags codeforces, daily, potd

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hermit_parth 2025-12-29 20:43:15 852
en1 English hermit_parth 2025-12-29 20:37:19 1428 Initial revision (published)