We’re rewarding the question askers & reputations are being recalculated! Read more.
2 of 6 added 79 characters in body

One-box repositories, issue tickets and such on GitHub

GitHub links are posted in chat quite frequently, but the support of the appearance is somewhat poor:

<html><head><link rel="stylesheet" href="//cdn-chat.sstatic.net/chat/css/chat.stackoverflow.com.css?v=7b50967826f1"></head><body><div id="transcript"><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="timestamp">1:10 PM</div><div class="message" id="message-19853510"><a name="19853510" href="/transcript/5?m=19853510#19853510"><span style="display:inline-block;" class="action-link edits"><span class="img menu"> </span></span></a><div class="content">@Pro Quick Q; I'm trying to get the websocket url for chat (by posting the room's ID + my fkey to <code>http://chat. + host + /ws-auth</code>) by using .Net's HttpWebRequest/HttpWebResponse classes, but every time I just receive the "Oops, something went wrong" page, even though the URL is correct (I've tested it via Chrome's console, and I <i>do</i> get the right response). Would you have any idea what's to blame?</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="timestamp">1:21 PM</div><div class="message" id="message-19853528"><a name="19853528" href="/transcript/5?m=19853528#19853528"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><a class="reply-info" href="/transcript/5?m=19853510#19853510"> </a><div class="content">@Sam Huh, my bot was headed to that page too, when using the gistlab Mechanize code.</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853529"><a name="19853529" href="/transcript/5?m=19853529#19853529"><span style="display:inline-block;" class="action-link edits"><span class="img menu"> </span></span></a><div class="content">Yeah, well apparently that's the only way to get the url :/</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="message highlight" id="message-19853530"><a name="19853530" href="/transcript/5?m=19853530#19853530"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content"><a href="https://github.com/Vincentyification/JavaBot/issues/7" rel="nofollow"><code>https://github.com/Vincentyification/JavaBot/issues/7</code></a></div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853532"><a name="19853532" href="/transcript/5?m=19853532#19853532"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Shame github doesn't onebox.</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="message" id="message-19853533"><a name="19853533" href="/transcript/5?m=19853533#19853533"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content"><a href="//stackoverflow.com/questions/tagged/feature-request"><span class="ob-post-tag" style="background-color: #E0EAF1; color: #3E6D8E; border-color: #3E6D8E; border-style: solid;">feature-request</span></a> onebox github stuff like repositories and issue tickets</div><span class="flash"></span></div><div class="message" id="message-19853534"><a name="19853534" href="/transcript/5?m=19853534#19853534"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Actually, should I make an MSE thread? Even though it might get denied..</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853535"><a name="19853535" href="/transcript/5?m=19853535#19853535"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Sure, why not? :D</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="timestamp">1:24 PM</div><div class="message" id="message-19853536"><a name="19853536" href="/transcript/5?m=19853536#19853536"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Cool, "chatbot" tag exists on MSE.</div><span class="flash"></span></div><div class="message" id="message-19853537"><a name="19853537" href="/transcript/5?m=19853537#19853537"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">So maybe you can post a support question.</div><span class="flash"></span></div><div class="message" id="message-19853538"><a name="19853538" href="/transcript/5?m=19853538#19853538"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">It will help us as well :)</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853539"><a name="19853539" href="/transcript/5?m=19853539#19853539"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Nice, never knew that. Kk, I probably post something if I don't find a solution in the next few mins. ;)</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="message" id="message-19853540"><a name="19853540" href="/transcript/5?m=19853540#19853540"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">:D Good luck!</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853541"><a name="19853541" href="/transcript/5?m=19853541#19853541"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Thx, same to you. ;D</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div></div></body></html>

I suppose it would be prettier to one-box these issues, repositories and wiki posts etc into a one-boxed item, perhaps like this (hand-written CSS for prosperity):

.ob-github {
  padding: .8em 1.5em;
  background-color: White;
  color: #444444;
}
.ob-github-ticket img {
  height: 32px;
  width: 32px;
  float: left;
  margin-right: 4px;
}
.ob-github-ticket .title {
  margin-bottom: .5em;
  font-weight: 600;
}
.ob-github-ticket .title .title {
  margin-bottom: .5em;
  line-height: 1.1;
}
.ob-github-ticket .title .id,
.ob-github-ticket-meta .comments {
  margin-bottom: .5em;
  color: #aaa;
}
.ob-github-ticket-meta {
  color: #666666;
}
.ob-github-ticket-meta .author {
  font-weight: bold;
}
.ob-github-ticket-meta time {
  width: 87%;
}
.ob-github-ticket-meta p {
  font-weight: lighter;
}
<html><head><link rel="stylesheet" href="//cdn-chat.sstatic.net/chat/css/chat.stackoverflow.com.css?v=7b50967826f1"></head><body><div id="transcript"><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="timestamp">1:10 PM</div><div class="message" id="message-19853510"><a name="19853510" href="/transcript/5?m=19853510#19853510"><span style="display:inline-block;" class="action-link edits"><span class="img menu"> </span></span></a><div class="content">@Pro Quick Q; I'm trying to get the websocket url for chat (by posting the room's ID + my fkey to <code>http://chat. + host + /ws-auth</code>) by using .Net's HttpWebRequest/HttpWebResponse classes, but every time I just receive the "Oops, something went wrong" page, even though the URL is correct (I've tested it via Chrome's console, and I <i>do</i> get the right response). Would you have any idea what's to blame?</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="timestamp">1:21 PM</div><div class="message" id="message-19853528"><a name="19853528" href="/transcript/5?m=19853528#19853528"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><a class="reply-info" href="/transcript/5?m=19853510#19853510"> </a><div class="content">@Sam Huh, my bot was headed to that page too, when using the gistlab Mechanize code.</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853529"><a name="19853529" href="/transcript/5?m=19853529#19853529"><span style="display:inline-block;" class="action-link edits"><span class="img menu"> </span></span></a><div class="content">Yeah, well apparently that's the only way to get the url :/</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="message highlight" id="message-19853530"><a name="19853530" href="/transcript/5?m=19853530#19853530"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content"><div class="ob-github ob-github-ticket"><img title="Vogel612" src="https://avatars0.githubusercontent.com/u/7288995" /><a href="https://github.com/Vincentyification/JavaBot/issues/7" class="title"><span class="title">Sending messages with the mechanize approach fails</span>&nbsp;<span class="id">#7</span></a><div class="ob-github-ticket-meta"><span class="author">Vogel612</span> opened this issue <time datetime="2014-11-07T16:12:03Z" is="relative-time" title="Nov 8, 2014, 12:12 AM GMT+8">22 hours ago</time><p>Mechanize doesn't let us send messages yet. It seems that the Login to chat isn't succesfully mimicked yet, as the response is: "you must login to send messages"</p><p>A login to the SE-OpenId has been confirmed by checking the result page after login for the class "profile-me", that's given to<span>…</span>&nbsp;<span class="comments">9 comments</span></p></div></div></div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853532"><a name="19853532" href="/transcript/5?m=19853532#19853532"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Shame github doesn't onebox.</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="message" id="message-19853533"><a name="19853533" href="/transcript/5?m=19853533#19853533"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content"><a href="//stackoverflow.com/questions/tagged/feature-request"><span class="ob-post-tag" style="background-color: #E0EAF1; color: #3E6D8E; border-color: #3E6D8E; border-style: solid;">feature-request</span></a> onebox github stuff like repositories and issue tickets</div><span class="flash"></span></div><div class="message" id="message-19853534"><a name="19853534" href="/transcript/5?m=19853534#19853534"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Actually, should I make an MSE thread? Even though it might get denied..</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853535"><a name="19853535" href="/transcript/5?m=19853535#19853535"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Sure, why not? :D</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="timestamp">1:24 PM</div><div class="message" id="message-19853536"><a name="19853536" href="/transcript/5?m=19853536#19853536"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Cool, "chatbot" tag exists on MSE.</div><span class="flash"></span></div><div class="message" id="message-19853537"><a name="19853537" href="/transcript/5?m=19853537#19853537"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">So maybe you can post a support question.</div><span class="flash"></span></div><div class="message" id="message-19853538"><a name="19853538" href="/transcript/5?m=19853538#19853538"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">It will help us as well :)</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853539"><a name="19853539" href="/transcript/5?m=19853539#19853539"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Nice, never knew that. Kk, I probably post something if I don't find a solution in the next few mins. ;)</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-3622940 mine"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/w2od0.jpg?s=128&amp;g=1&amp;g&amp;s=16" alt="Unihedron"></div><div class="username"><a href="/users/3622940/unihedron" title="Unihedron">Unihedron</a></div></div></div><div class="messages"><div class="message" id="message-19853540"><a name="19853540" href="/transcript/5?m=19853540#19853540"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">:D Good luck!</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div><div class="monologue user-2246344"><div class="signature"><div class="tiny-signature"><div class="avatar avatar-16"><img width="16" height="16" src="http://i.stack.imgur.com/Y22En.png?s=128&amp;g=1&amp;g&amp;s=16" alt="Sam"></div><div class="username"><a href="/users/2246344/sam" title="Sam">Sam</a></div></div></div><div class="messages"><div class="message" id="message-19853541"><a name="19853541" href="/transcript/5?m=19853541#19853541"><span style="display:inline-block;" class="action-link"><span class="img menu"> </span></span></a><div class="content">Thx, same to you. ;D</div><span class="flash"></span></div></div><div class="clear-both" style="height:0">&nbsp;</div></div></div></body></html>