Github repository of CG Enhancer
The goal of this script is to make the user's life easier, especially during multi/contests. It comes with a bunch of features (see below for an exhaustive or-so list).
The script currently works on chrome, chromium and firefox. It might work on chromium-based browser, such as opera and safari, but was not tested.
It is only my second time using javascript (and first with jquery/angular) so the code is without doubt full of atrocities, bad habits and more. Feel free to report them or to improve the code if you're brave enough to have a look at it. :)
Angular debug mode is used for the agent panel (quick selection and such) and might use a lot of RAM. You can disable it by setting useAgentModule
to false
.
This tool is a userscript. It has to be installed through a userscript manager, such as Tampermonkey or Violentmonkey. Greasemonkey is not supported. If you have none, consider violentmonkey which is open source. When installed, click here to install CG Enhancer.
Note that since it is only beta testing, yoir browser might crash when trying the script. Be ready. If it crashes repeatedly, refreshing the tab before almost instantly the first time might help. If not, open the console and send me the error if there is any.
The script currently has no option panel. However since it's a userscript, any user can modify it.
Options are to be found at the beginning of the script (line 25 or around). Look for //options
in the source code. As of today, two options are available:
- useAgentModule: allow the agent options. This is the only part of the script that uses the angular debug mode. This mode might use a lot of RAM, so disable it to save some if CG is slower than usual. Default:
true
- forceExternRequest: Make the leaderboard api request extern. It allows you to play against AIs of higher leagues in the agent panel but this might disrupt other features if you are not in the top1000. Default:
false
- enableSound: self-explanatory. Default:
false
- notifToRemove: Array storing the different notifications to remove. They are about 30 different types of notifications on CG, a list is available above this option. Default:
['clash-invite', 'following']
- Disable sound
- Disable
clash-invite
andfollow
notifications For further personalization, look for// disallow sound for notifications
and// notifications
in the source code (no panel yet).
- disable community red notification at the top while browsing CG.
- Full screen console if CG sync is used.
- Swap button like CG spunk
- Button for fast selection (IDE / Arena / Boss agents)
- Input for fast player selection ('Magus', 'Azkellas'). You can only access bots from your league and below.
- Display the full date
- Possibility to rename submits
- Possibility to save the rank and the elo of submits
- Possibility to hide submits from the list
- Disable the tv-battle at opening (game is still loaded but not displayed)
- Show opponents' rankings (if in the top1000)
- Highlight unexpected results (winning against a better opponent / losing against a worse opponent)
- Display draws (with angular debug mode enabled)
- Possibility to erase submits (bin tab)
- Possibility to create tabs
- Automatically store the submit rank
- Add winrates (with cgstats)
- Highlight timeouts
- Replace the
<input/>
fast agent choice by a reactive<ng-select>
(help needed) - Add the possibility to chose between the local leaderboard (current div and lower) and global leaderboard (from legend to bottom) to chose agents
- Synchronize storage data for multi browser support (requires making it an app)
- Possitility to resize it (vertical)
- Minimize the console output (horizontal)