I'm a fan of xkcd and enjoy reading new comics when they come up (and noticing how relevant xkcd comics can be in real life). Some comics contain hidden references to something historic and obscure, usually in the title text, and leaves me unable to fully appreciate the humor of the comic. The explain xkcd wiki helped uncover many questions I've had, but it was slightly cumbersome having to switch to the wiki page in order to understand.
I've also always wanted to make a Chrome extension before, and was curious what went into making one. So, I made this extension to allow a seamless transition between comic and explanation, and also get a taste for developing a Chrome extension. If you love reading xkcd comics, consider installing the extension!
parser.js). It goes through the markup line by line, replacing any Wikitext syntax with the corresponding HTML, for example:
== Hello world == becomes
main.js), which is then parsed into HTML.
An "Explanation" button is inserted into the xkcd page right below the navigation buttons, which toggles the explanation from showing on the page.