Luma's blog

By Luma, history, 4 weeks ago, In English,

Hello Codeforces!

I made the user script to append the form to submit on Codeforces problem pages.

Sorry, this supports only modern browsers like Chrome and Firefox.

greasyfork link : https://greasyfork.org/en/scripts/371117-cf-fast-submit

Install

Install UserScript runner like Tampermonk and Greasymonkey to your browser.

(Sorry, I couldn't make it work well with Greasymonkey.)

Then, open install link and click install.

Usage

You can use it as you can see it on the submit page's form.

Specification

  • Support contest, gym and problemset problem pages.
  • Problem selection will be auto-selected and disabled. Problem ID is calculated from URL.
  • This tool gets form from the submit page using Ajax.
  • This tool never connect the other site.
  • If we open the submit page right away after the contest starts, we can't select the problem ID (because there's no option somehow).
    But don't worry. This script automatically retry if there's no option.
  • If 30 minutes left and you submit, this script automatically re-generate the form because sometimes the token expires.
    This script will drop neither your code nor file selection.

Comment

I implemented it as not disturbing users.

If you found some technical issues, rights issues or something anxious, please let me know that.

I welcome any feedback! (You know vs.? Please share in comments!)

Disclaimer of warranty

Use of this tool is at your sole risk. In no event will I be reliable to any party for any damages of any type.

Screenshots

Links


Great. So cool.

This tool is here thanks to Codeforces.

 
 
 
 
  • Vote: I like it  
  • +116
  • Vote: I do not like it  

»
4 weeks ago, # |
Rev. 3   Vote: I like it +8 Vote: I do not like it

thx for great work

»
4 weeks ago, # |
Rev. 2   Vote: I like it +12 Vote: I do not like it

I am getting this error:

Ignoring @match pattern http*://codeforces.com/contest/*/problem/* because: Error: @match: Invalid protocol (http*:) specified.

Is it only for http?

  • »
    »
    4 weeks ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Thanks. I fixed! Please update and check it out.

    EDIT: hmmm.... I checked using Chrome with tampermonkey, but nothing wrong with old version. Please let me know your environment. And is it fixed?

    • »
      »
      »
      4 weeks ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Now I could download the script but it does not work. I'm using Firefox Quantum.

      • »
        »
        »
        »
        4 weeks ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Sorry, I couldn't make a support.
        I confirmed that it works well with Tampermonkey and Firefox.

        sorry for inconvenience.

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Sorry for my slow debugging.

    I tried it on Firefox with Greasymonkey and confirmed that it doesn't work.

    I'm checking the way to fix it...

»
4 weeks ago, # |
  Vote: I like it +8 Vote: I do not like it

Now I could download the script but it does not work either. I'm using Chrome73

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks for feedback! I use the same version with Windows.
    It's strange...
    What problem page did you open?
    How doesn't it work? (Could you see the form or not?)

    Could you tell me what dev tool says? (CTRL + SHIFT + I, open Console tab)

    Thank you.

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Luma (previous revision, new revision, compare).

»
4 weeks ago, # |
  Vote: I like it +13 Vote: I do not like it

Nippon language wakaranai

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Luma (previous revision, new revision, compare).

»
4 weeks ago, # |
Rev. 3   Vote: I like it +8 Vote: I do not like it

Yesterday(4.13),When I took part in edu Contest,it couldn't work that jumped into submit page.But it can work out of Contest.

  • »
    »
    4 weeks ago, # ^ |
    Rev. 2   Vote: I like it +3 Vote: I do not like it

    Thanks for a comment.

    Hmmm, the old version (v1.1) was working well... Sorry, but I didn't test new version on the running contest. I'll try to test it on some contest.

    EDIT: I tested on virtual contest, but it works well.

    Sorry, but I couldn't test until the real contest is running.

    • »
      »
      »
      4 weeks ago, # ^ |
      Rev. 3   Vote: I like it 0 Vote: I do not like it

      Maybe Its my computer's matter.

      • »
        »
        »
        »
        4 weeks ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Some participants report similar issues.

        And now, I recall that I must write additional code to support ECR. (Seeing git log, wow, there's answer.)

        I'm fixing...

      • »
        »
        »
        »
        4 weeks ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Fixing has been done.

        If you use v1.1, please update.

    • »
      »
      »
      4 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      When I made (thanx to CountZero) tool like this the problem during real contest was longer load of codeforces pages — I had to increase some delays between transitions between pages, inserting of code and submit and so on. But even with these delays submit is much faster then manually

»
4 weeks ago, # |
  Vote: I like it +5 Vote: I do not like it

Really Impressive

»
4 weeks ago, # |
  Vote: I like it +8 Vote: I do not like it

It's a good one!!

»
4 weeks ago, # |
  Vote: I like it +12 Vote: I do not like it

Sorry, there was the bug that in ECR this script doesn't generate complete form.

Now, I fixed for the ECR.

AND IF THERE'S UNEXPECTED THROWN ERROR, THIS TOOL WILL REMOVE THE INCOMPLETE FORM FOR RELIABILITY.

Thank you for your feedback! Enjoy coding!

»
3 weeks ago, # |
  Vote: I like it +8 Vote: I do not like it

Not working when questions are of like C1, C2!
here

  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Oh... This is too bad. Thanks.

    I must do fix soon.

    • »
      »
      »
      3 weeks ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Thanks for making such an awesome tool ♥
      Must have cf tool after cf-predictor

»
3 weeks ago, # |
Rev. 2   Vote: I like it +6 Vote: I do not like it

Version 2.4 Update Notice

Very sorry for the unexpected behavior in the problem like "C1", "C2".

I apologize that this tool may have annoyed some participants.

That was fixed.

You may have seen the many generated forms.

Deleting the form on error was not complete.

This is also fixed.

Maybe, some saw the form generates many forms right away after the contest.

Above behavior caused this. And this was also fixed.

Thank you for using this tool and commenting.

EDIT : Sorry, I screwed up. I updated on the contest running. I'll keep in mind not to annoy participants.