Hello everyone, This extension will modify the submit through file block in the problem page so that we can paste our code there and submit.
Of course , if you liked submitting through file then it's useless for you. It is made for those who have a habit of pasting code in the separate submit page.
Links to the extension :
- Firefox : https://addons.mozilla.org/en-US/firefox/addon/submitify/
- Chrome & Opera : https://github.com/pritish-n/Submitify
It also redirects into a new tab and you don't have to open a new page every time you submit.
Thanks for reading and hope you like it.
UPD : I added the feature that now selects the code written in the text-area on clicking the submit button, So now it's easier to delete the previously written code.
UPD : I found link to another such tool : https://codeforces.net/blog/entry/66646
This extension is a much simplified version of the tool mentioned in the above blog.
when i try to load unpacked it is giving failed to load extension. Error: Manifest file is missing or unreadable Could not load manifest.
Have u extracted it ?
Extract the contents of the zip file u get from Github and select the Submitify Folder please.
I had the same problem, but when I clicked into the file name, for me its "Subtimify-Chrome-Master" I clicked on "Subtimify" and then pressed "Select Folder" It worked for me.
because we all know Codeforces isn't really serious about all the feature requests from its users XDdisagree.
Moreover can you tell a single advantage of this feature??? You will still have to compile it in your system i.e. you will have a saved file of your code then simply submit that file instead of crying that codeforces don't take us seriously
Suppose I have slow internet connection..
Case 1: I submit from the problem page using file, the page reloads into the status page. Will take time to get back to problem page if for some reason I want to read the problem again.
Case 2: I submit from Submit page, again I have to open that Submit page.
With this extension it may not make much of a difference. But during some contests the load on codeforces is really heavy and just coming back to the problem page may take 10+ secs.
I know the use cases are too small, but still Codeforces not having this feature had bothered me for quite a long time.
For Case 1, you can use
Ctrl + Click
to submit your solution, status page will open in new tab. But still, this extension would be useful for many.In the problemset page, filter by problem index(Div2A,Div1A) is yet another feature that we don't have as of yet. I mean how hard will it be to implement something like that?
I don't think it's needed because you can filter the problems according to ratings anyway.
Man, this is so good! Keep it up! I love this thing!
Thanks! Very useful feature, but it seems like a cheating a bit: opening of new tab gets some time, also we can open it in advance, but easier do not open this tab ever, right?) Not everyone has this extension during rounds, so not all participants in equal conditions
Well, no one is stopping anyone from using this. XD If anyone wants to use it, he/she is free to do so. A tool available to all isn't a cheating tool. ;)
if someone writes code in notepad instead of using modern IDE then he will not be as fast as others. And this doesn't mean people having modern IDEs are cheaters.
I have a question though, whenever I resubmit a solution, I have to manually highlight my past code and paste my new code in. Can you fix it? I know that in the "Submit" tab in codeforces, after I see a WA or something, I press the back arrow, and then I can resubmit my code without having to highlight the entire thing then pasting it back in there. Thanks!
Oh ok, I'll see what I can do about that. I'll reply here once I finish making the changes.
Thanks!
Ok ,I have added that feature, when after submitting you try to paste another code and you click on the textbox ,the pre-written text will be erased automatically.
I couldn't get it to behave exactly like the Submit-page because the page has to be reloaded for that. To stop reloading, I added that click-erase feature.
After submitting when I click on the textbox, the text doesn't disappear. Am I doing something wrong? I have to reload the page in order for the text to disappear...
It would be better if the field where we want to paste the code is focused when we load the problem page. This way we don't have to click in the box to paste the code. Just "ctrl+V" then "tab" and then "enter" will do the job :)
This is what you are looking for i guess.
Oh wow, I didn't know it existed... Thanks.. Time to take down the blog. XD
It's really useful! Thx a lot!
Nevertheless, I have added this feature too. Thanks for the suggestion.
It seems that for Google Chrome you have to use something like Tampermonkey and paste the source code there. Would it be too troublesome to create a chrome extension like Firefox's? That'd be really helpful, and would bring more users to it I think.
I couldn't get it to work with Tampermonkey, For some reason, it doesn't even submit the pasted-code. And I couldn't find any fix for it too.
Can you please add an option of choosing the file as well ? I know it does not makes much sense though.
.
Can you please add support for edu problems as well, Thanks in advance.
P.S. — The links to the problems are of the form https://codeforces.net/edu/*/problem/*. Example
Ok I'll update.
Update — pritishn has updated the repository with changes I suggested, to get the updated extension, I had to reinstall the tool completely using the instructions in the blog, till now i got this as the possible workaround as it was unpacked extension. So all those who were also waiting for it to be updated can follow atleast this and if someone has a better solution please suggest it here :).
does it work with Microsoft edge?
Nope
I think it does work (at least for Edge Chromium). Just follow the installation directions for Chrome, but go to edge://extensions/ rather than chrome://extensions/
Thanks!
Can something like this be made for cses/usaco? Thanks, this extension is really useful.