Alternate name: a userscript for makin' the fancy pictures happen
I've created a userscript that auto-converts MTG's mana and tap symbols to image form. A lot of us have wanted this for a while so I went ahead and made it exist. You can get it here on Greasyfork:
Board Games SE mana symbols
- Chrome users will need Tampermonkey for Chrome.
- Firefox users will need Tampermonkey for Firefox or Greasemonkey.
Credit: Mana symbols by micku on github, in turn based on the work of Goblin Hero and skibulk of Slightly Magic. Energy symbol by ahkren of Slightly Magic.
What's this script do?
This script will convert the following to fancy image icons:
- The five colors and snow mana:
{W} {U} {B} {R} {G} {S} - Tap, Untap, and the Energy counter symbol from Kaladesh (E):
{T} {Q} {E} - Generic mana (0 to 20), and the new C symbol for colorless mana:
{C} {0} {1} {2} {3} {4} {5} {6} {7} {8} {9}
{10} {11} {12} {13} {14} {15} {16} {17} {18} {19} {20} - X, Y and Z (the latter two just for fun):
{X} {Y} {Z} - Hybrid mana:
{W/U} {W/B} {U/B} {U/R} {B/R} {B/G} {R/G} {R/W} {G/W} {G/U}- Writing the letters in reverse (U/W vs W/U) is ok.
- 2/X hybrid mana:
{2/W} {2/U} {2/B} {2/R} {2/G} - Phyrexian mana, including the plain P symbol featured on Rage Extractor:
{WP} {UP} {BP} {RP} {GP} {P}
This script kicks in on any question page for this site (main or meta) when that question is tagged magic-the-gathering. It pays attention only to uppercase mana symbols in plain text. That means it ignores “{w/u}”, and it ignores code blocks and image alt text.
This script uses one sprite sheet so you're only loading one image.
With the script, the above section looks like this:
Recent changes (December 5th)
- New improved sprite sheet & symbol appearance. As of 1.11.0 this is a double-sized sprite sheet, which adds support for high-resolution displays (retina, tablets/laptops with screen zoom, etc). Credit for the sprite assets at top.
- Now works in HTTPS.
- When you copy text with a mana symbol, the plaintext symbol will now actually be on your clipboard. In other words, if you highlight and “go {R} burn!” you'll have
go {R} burn!
on your clipboard; previously you'd just getgo burn!
. (This feature also happens to make the script screen reader friendly, in case that helps anyone.) - After you perform or load an edit, the newly edited version of the post will also have mana symbols. Previously the script wouldn't prettify a newly-loaded version of a post until you refreshed.
- Added {P} (as featured on Rage Extractor), and more accurate {C} and {E} symbols.
Please let me know here if something's broken, or if there's something this script doesn't do that it should, or if there's some way I can improve where and how mana symbols are displayed.
Enjoy!