honestbleeps/Reddit-Enhancement-Suite — pull request #171 by DanGe42 (2012-07-15 06:26:42+00:00)
Title: Exclude comment codes from annotations

Currently, comment codes are detected as ordinary links, and are thus annotated. This unfortunately results in issues like this: http://www.reddit.com/r/Minecraft/comments/wk47e/sheep_art/c5e1frh. If you click on the comment, the two nice image arrays of sheep and cloth suddenly explode into this mess of annotations. Of course, we don't need these annotations because these images are not links; they're simply placeholders (comment codes) so that the subreddit's custom CSS can set the link's background image.

This pull request adds a function that checks whether a link is a comment code (`isCommentCode`). This function is used in the method `keyFocus`, which adds annotations to links found in a comment.

Let me know if you think this should be added as an additional option that can be tweaked as opposed to a default.