Heavily inspired by the last chapter of this fanfiction. http://www.fimfiction.net/story/5669/1 However, it is not exactly the same, and builds more upon the elements introduced in it that were later satirized.
Twilight Sparkle, in this brief story, is presented as psychotic. Listening to her subconscious, she decides that all of her friends are somehow flawed, somehow illogical in manner, and that they must be fixed, even if it requires gruesome means to get there.