Prettier Codewars

Polish Codewars with cleaner training pages, better editor typography, responsive fixes, subtle typing effects, and promotion cleanup.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
NihilDigit
今日安裝
1
安裝總數
1
評價
0 0 0
版本
1.1.0
建立日期
2026-05-21
更新日期
2026-05-21
尺寸
18.2 KB
授權條款
MIT
腳本執行於

Prettier Codewars

Polish Codewars with cleaner training pages, better editor typography, responsive fixes, subtle typing effects, and promotion cleanup.

Features

  • Hides Codewars promotion, partner, referral, and house ad blocks.
  • Fixes kata training header controls on medium-width screens.
  • Fixes profile Rank Breakdown layout on medium-width screens.
  • Uses local Maple Mono NF when available, falling back to Maple Mono webfont.
  • Enables CodeMirror line wrapping.
  • Tunes CodeMirror font size, line height, current line, and horizontal overflow.
  • Keeps the kata description panel focused on .description-content.
  • Adds small orange typing sparks and dark delete-annihilation particles.
  • Adds Tampermonkey menu options for toggling editor polish, line wrapping, typography, and typing effects.

Configuration

Edit the config object near the top of the userscript:

const config = {
  hidePromotions: true,
  useMapleMono: true,
  tuneCodeMirror: true,
  lineWrapping: true,
  typingSparks: true,
  deleteAnnihilation: true,
  editorFontSize: "15px",
  editorLineHeight: 1.55
};

These settings can also be changed from the Tampermonkey userscript menu.

Notes

  • No external JavaScript libraries are used.
  • Maple Mono webfont is loaded from jsDelivr/Fontsource only when the browser cannot resolve the local font.
  • The script is designed for normal userscript page-load execution, not hot module replacement.