Skip to content

hobovsky/polyglot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Polyglot (Codewars userscript)

Polyglot is a Tampermonkey userscript with small, opt-in quality-of-life improvements for Codewars. It focuses on making everyday workflows faster by surfacing information that's already there, smoothing out UI friction, and adding a few "why isn't this built-in?" conveniences.

Install

  1. Install the Tampermonkey browser extension (from your browser's extension/add-ons store).
  2. Download the script from the latest release: https://github.com/hobovsky/polyglot/releases/latest/download/polyglot.js
  3. In Tampermonkey, create a new userscript and paste in the contents of polyglot.js (or import the downloaded file if your Tampermonkey/browser supports it).
  4. If your browser blocks userscripts by default, check Tampermonkey's FAQ / your browser's extension settings (sometimes called "developer mode").

That's it - Tampermonkey should pick up updates automatically (depending on your Tampermonkey settings).

Features (quick view)

Click a feature to jump to details + a screenshot.

Feature details (expand for screenshots)

Copy buttons on code blocks - copy code in one click
  • Adds "copy to clipboard" controls on code blocks across Codewars (solutions, discourse, kata descriptions, comments).
  • Saves a bunch of annoying text selection in scrollable code panes.

copy_buttons_on_code_blocks

Raw markdown toggle - view the original markdown
  • Adds a toggle that switches between rendered markdown and the raw markdown source.
  • Handy when code blocks are missing or formatting is broken: raw markdown preserves indentation and line breaks.

raw_markdown_toggle

Attempted languages in discourse - see which languages the author attempted
  • Shows which languages a user attempted a kata in under their discourse posts.
  • Indicates which of those solutions are viewable to you (based on Codewars visibility rules).
  • Some entries may be non-clickable if you're not eligible to view that solution in that language.

attempted_languages_in_discourse

Beta kata: rank vote breakdown - see the vote distribution
  • Displays a visual breakdown (histogram) of difficulty votes for beta kata.
  • Helps approvers/authors see consensus vs. polarization instead of guessing from min/max/average.
  • Read-only: it doesn't modify votes or approval logic.

beta_kata_rank_vote_breakdown

Rank-up notifications - get a heads-up when you climb
  • Shows a notification when you rank up (for leaderboards Polyglot tracks).
  • Avoids the "did that submission change anything?" manual checking loop.

Solution timestamps - add missing chronology
  • Displays timestamps for solution groups to give more context when browsing.
  • Useful when you're trying to understand "what changed when" across submissions.

solution_timestamps

Custom navigation links - pin your deep links
  • Lets you pin frequently used internal pages (filtered searches, collections, kata lists) into the sidebar.
  • Treats Codewars more like a daily workspace than a site you "browse".

custom_navigation_links

Leaderboards improvements - less navigation, more signal
  • Defaults leaderboards to "Solved kata" (instead of "Overall").
  • Automatically scrolls leaderboards to show your row/position.

CodeMirror editor tweaks - configure tabs and indentation
  • Lets you configure a few CodeMirror editor behaviors (e.g. tab size, tabs vs spaces, auto-closing brackets/parentheses).

codemirror_editor_tweaks

Solutions tabbed by language - find the language you want fast
  • Groups solutions by programming language and shows them as tabs.
  • Makes multi-language profiles much easier to navigate.

Past solutions tabbed by language - faster reuse in the kata trainer
  • Applies language tabs to "My past solutions" inside the kata trainer.
  • Helps when you revisit a kata in multiple languages (or have a long solution history).

Always-visible spoiler toggle (discourse) - no more invisible controls
  • Makes the "Spoiler" toggle under discourse posts permanently visible.
  • Reduces accidental spoiler/unspoiler clicks caused by hover-only controls.

Uninstall

Disable or remove the script in Tampermonkey.

Contributing

Issues and PRs are welcome.

  • For bug reports, the most helpful things are: page URL, browser, Tampermonkey version, steps to reproduce, and any console errors.
  • Design preference: features should be opt-in (configurable on/off), so people can keep their Codewars UI the way they like it.

Credits

License

MIT. See LICENSE.

About

TamperMonkey user script which improves user experience with CodeWars (or at least tries to).

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors