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

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

Hello Everyone!

Recently I was exploring Codeforces APIs and thought that there is a need for an extension that shows problem difficulty as well as all the contest problems links together (as usually it takes some time switching from status/submission/problem page to dashboard to select a desired problem).

So, well here it is!
With the help of this extension, one can go through any problem to any other problem easily (also can go to a problem from status/submission/hack pages to the desired problem).

You can try this extension.

Steps to follow (for the installation)

Right now I haven't deployed/uploaded it on either Chrome or Firefox but you can install it locally!
You just have to clone this repo or can download via zip and load/unpack the folder over the chrome/firefox extension (with developer mode on). (guide for chrome)

UPD: To use this without unpacking the extension just copy-paste this userscript in tampermonkey or a similar tool.

UPD2: Updated the verdict thing as well. You can enter your codeforces handle to make verdict color work!

UPD3: Updated userscript is here. (Thanks to normankr07)

UPD4: The extension is now live on Mozilla Add-ons. 😇

UPD5: Updated the show/hide rating thing (check the repo).

Updated Look

Any suggestion would be helpful!

Happy Coding :)

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

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Nice work , really Helpful

»
8 месяцев назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

CoderDhanraj orz

»
8 месяцев назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

tnx that is realy helpful ;D

now i dont need to open N tabs during the contest

orz coderdhanraj

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

разверните его на Chrome, я заплачу

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Great extension!

coderdhanraj orz

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Good work. orz

»
8 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Where to enter CF handle? I can't find it.

  • »
    »
    8 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    To enter CF Handle click on the extension after unpacking it in chrome/firefox, After clicking on it a popup will appear like below.

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Good, Now make it for Firefox.

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

where to paste in temper monkey?

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Just solved two problems that i faced in a go.

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can it support Microsoft Edge?

»
8 месяцев назад, # |
Rev. 2   Проголосовать: нравится +9 Проголосовать: не нравится

I updated the userscript one to make it not shown when at homepages and blogs. Show the color with your current logged in handle. The source is here

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

please, upload it on the Chrome webstore quickly!!

  • »
    »
    8 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    TBH I've not taken the Chrome developer console membership yet as it costs some money :(

    Maybe in future, I will buy it then I will surely upload it there :) till then you can try it locally by unpacking stuff

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

will this work in ongoing contest ?

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Very nice! Maybe a good feature would be to add clist.by ratings when codeforces ones are not available.

  • »
    »
    8 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I am finding a proper api endpoint to fetch that if you get one then please do let me know!

    • »
      »
      »
      8 месяцев назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      I don't understand if it is possible, maybe it is better to just copy their algorithm python script to compute them.

    • »
      »
      »
      6 дней назад, # ^ |
        Проголосовать: нравится +3 Проголосовать: не нравится

      There is a field rating, you just need to pass the problem url

      https://clist.by/api/v4/problem/?url=https://codeforces.com/contest/1971/problem/A

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

orz

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

The userScript from 3rd update

it's not hiding the rating of unsolved problems

i hope it will be fixed or how to fix it

  • »
    »
    8 месяцев назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    I will add a click feature to show or hide the rating in the new update but a smaller good thing is that people usually want rating to be shown but not the other tags so this thing was covering that as well.

  • »
    »
    8 месяцев назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    If you want a quick fix try this, if you want to show all problem ratings again just change the : const ACshowrating = 1; to const ACshowrating = 0;

  • »
    »
    8 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I have added the click for that but I think it would be hard for a user script as we can't save anything in that, you will have to change things in the code to make that work, better you can unpack the newer version of the extension :)

    PS: Firefox add-on will also be updated, also I am working on getting the clist rating until codeforces provide the actual one.

    • »
      »
      »
      8 месяцев назад, # ^ |
      Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

      Actually sometimes it works , sometimes it doesn't
      UPD : working now , I'll tell as soon as the problem occurs again

»
8 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

It is great ... really greatful for it coderdhanraj