Userscript: Yahoo! Answers Untruncate

If you usually answer programming questions in Yahoo! Answers, you will see that most of the time, the code is not unreadable. One reason is that indentations are not preserved, and sometimes very long text will be truncated. For example, here’s one programming question:

As you see, some code is truncated. My userscript works by contacting Yahoo! Answers’ API to fetch the original question text as inputted by user and displays it instead of the built in one. Because of this, the question text is shown without truncating. Also, multiple spaces, tabs, and indentations are preserved. Here’s how it will look like after you install my userscript:

http://userscripts.org/scripts/show/80368

However, this userscript only works with the question text, and will not work with the answers text, because I can’t find a good way of determining the order of the answer that is shown in the page. Another reason is that I assume that you can use one of the paste bin sites to paste your code.

Get this userscript: http://userscripts.org/scripts/show/80368

This entry was posted in JavaScript. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>