Codeforces Better!🎈
This is a Tampermonkey script designed to enhance your experience on the Codeforces website.
By adding a number of useful features and improving the website interface and user interaction, it will make your path to programming competitions more efficient and convenient.
Write ahead:Feedback Notes
If you have problems, please go to Github issues or feedback page feedback.
Please provide a detailed description of the problem, e.g.:link, screenshots, desired results, actual results, reproduction……
Friendly discussions as well as feature suggestions are welcome, but it is not the author's obligation to maintain the script and provide help, thank you for your understanding.
Key Features
Installing the script gives you:
- Dark Mode Support:Add Dark Mode to your website, so you don't hurt your eyes at night.
- Multilingual Website Translation:Replace the main text of your website with the language of your choice!
- Convenience Buttons:Add
MrakDown
, Copy
,Translate button to the page
- Topic Translation Function:Click on the
Translate
button to translate to the target language in one click, while making sure not to break the Latex formulas. - Clist Rating Score Display:gets the Rating score data for a topic from the clist.by website and displays it on the topic page.
- Code Editor & LSP Support:Integrated code editor at the bottom of the topic page, supporting auto-save, quick commit, online test run, etc.
- Rocky Valley Quick Jump:One click to jump to the corresponding page of this question in Rocky Valley
- Comment section page display:Improve the display of comment section, support page flip, jump, can choose the number of main floor displayed on each page.
- Recoloring of the leaderboard:Color gradient coloring of the Codeforces tournament leaderboard based on the "score/total" ratio.
- Some other small features……
Tip:Click on the CodeforcesBetter Settings button in the upper right corner of the entire page to open the settings panel.
Help text is provided for most functions and can be viewed by hovering over the question mark icon next to it.
Using Documents
For more details and instructions, visit the Github Wiki page at.
compatibility
browser (software)
| be in favor of | minimum version |
---|
Chrome | be in favor of | 96 |
Edge | be in favor of | 96 |
Chromium-based | Basic compatibility, but unexpected errors may occur | Chromium kernel version ≥96 |
FireFox (including mobile) | be in favor of | 103 |
Safari | unsupported | \ |
Script Manager
Only Tampermonkey script manager is supported.
Other plug-ins
There are no compatibility issues with mainstream CF-related plug-ins, so if you encounter compatibility issues, feedback is welcome.
mirror (computing)
Support official light site m1 / m2 / m3 , official mirror site https://mirror.codeforces.com/, unofficial mirror site https://codeforc.es
In addition, it is theoretically compatible with any other mirrors, you just need to add another line of comments // @match your mirror URL
and that's it!
How to contribute
If you have any ideas or feature requests, feel free to head over to Github to create PRs or Issues.
(express) thanks
- The following scripts were referenced in early development:AcWing content to markdown,Translator
- The CodeforcesBetter script uses the following open source libraries:turndown,jquery,MathJax,crypto-js,base64,chroma,xterm,dexie,monaco-editor,i18next,i18next-chained- backend
,i18next-localstorage-backendjs
- OJBetter_Bridge references the following repositoriesmonaco-language-serverand uses the following open source libraries:PyQt-Fluent-Widgets,PyYAML,tornado,ujson
- Special thanks to all those who provided feedback and suggestions.
Thank you guys, 0rz.