Hot answers tagged

47

I think this is a good idea. No, these are not videos. They are gifs in a smaller format. Gifs auto-play, these are just gifs that are higher quality and slightly longer. There are no ads, no sound, and it's becoming very popular on imgur and will most likely, render the .gif format obsolete. I think we should stick with the times and allow this feature in....


29

There's not much to it. :) XKCD provides comic data in JSON that we can easily consume, it's a comic that gets quoted a bunch in chat, and at one point a developer cared enough to write-up the parser for the onebox.


27

Since this is presented better I've voted to close this post as a dupe of this. I made a suggestion there that I'll reproduce below. I would like this feature as well, but on the other hand I don't want every link to onebox. I propose something like the following: Gets oneboxed Link by itself (current behavior) https://meta.stackexchange.com/q/120285/...


20

Unacceptable. Fixed with high priority.


17

I like this idea, but would take it one step further. ThinkGeek has fairly complete OpenGraph metadata on it, i.e.: <meta property="og:type" content="product"/> <meta property="og:title" content="Star Trek Cookie Cutters"/> <meta property="og:url" content="http://www.thinkgeek.com/product/ed0a/?cpg=fbl_ed0a"/> <meta property="og:image"...


17

User scripts to the rescue! Works exactly as specified above: Collapse: Expand: So far I've only tested this in Chrome but I expect it to work in any (sane) environment. I've thrown this together pretty quickly, so there may be a few gremlins. If you see anything that doesn't work in the wild, let me know - preferably with a reproducible example ;-) ...


15

Done and done (including some last-minute fixes for some different url constructions)


15

Updated version from chat user Ascii-only: https://github.com/somebody1234/star-thumn Added a "lightbox" for viewing the images on left click without switching tabs Fixed a problem where the script does not load sometimes So... I built this! It's a userscript, direct install link: Click Here (Needs Greasemonkey on Firefox).


12

To get your SE link to "onebox" you must post it on its own line, as its own message. For your example your first line would be i18n astonishing problem: Send that and then as your second line put the link to your question: http://stackoverflow.com/questions/24797758


11

While that may seem more convenient, I expect it would be used poorly and result in a lot of broken wikipedia boxes due to word choice, capitalization issues, etc. It doesn't take long to find and post an exact wikipedia link for the user posting it, but it would be annoying and take a lot more people's time every time they saw a oneboxed disambiguation ...


11

Wikipedia has an API method that attempts to return the best image for a page. It might be worth investigating using that to select the image.


11

I have changed chat to accept up to 15-character subdomains for Wikipedias, and I've also added the dash. If I didn't miss any, zh-classical is the longest one, so this should catch all of them.


10

This icon is supplied by amazon.com at https://www.amazon.com/favicon.ico: The favicon is to be displayed with the URL in the address bar, next to shortcuts, etc. It is nominally supplied as a 16x16 image, which explains the pixelation when shown at 48x48: After some investigation: The ICO format allows for supplying several resolutions in the resource. ...


9

I've built a small C# library designed with this in mind: https://github.com/Zirak/CSOpenGraph It's mostly complete, but having no knowledge of what Stackoverflow uses internally, I pretty much picked the first Html parser which cropped up; however, with such a small thing, I'm sure it'll be a trivial change. As the README says, I've tested it on all sites ...


8

Embarrassingly late to this party, but: this should be fixed in a few minutes.


8

Damnit, Shog knows my weak spot. I wrote a quick 'n dirty userscript (source) to patch this until it's fixed properly. Tested in Chrome on the example in the question and the one that prompted the bounty, but it should work in Firefox too.


8

Regex, it's always the regex. Seriously now, the reason is a rogue trailing slash you have in the URL, which is not supposed to be there. If you browse to the ordinary question URL which is https://gaming.stackexchange.com/questions/257112/how-do-i-change-my-name-on-steam the comment links will onebox just fine, e.g. https://gaming.stackexchange.com/...


7

Apparently, Wiktionary now works in chat. Enjoy! Although....apparently it doesn't work all that well -- see the follow-up question.


7

As these things go, it wasn't that easy... but it's done and will be out in the next deployment: Support for multiple parameters (e.g. http://www.youtube.com/watch?&v=ieFVN-PKLSA) Support for shortened links (e.g. http://youtu.be/ieFVN-PKLSA) Support for fragments or parameters with start time (e.g. http://youtu.be/ieFVN-PKLSA?t=3s or http://www.youtube....


7

It seems to me this is because the onebox reads the wikitext of the page and then ignores any templates or special markup. So, for example: {{Nihongo|'''Mount Fuji'''|富士山|Fuji-san|extra={{IPA-ja|ɸɯꜜdʑisaɴ|IPA|Fuji-san.ogg}}}}, located on Honshu Island, is the highest [[mountain]] in [[Japan]] at {{Convert|3776.24|m|ft|0|abbr=on}}. is rendered as: , ...


7

Downside of the script from Tim is that when hovering over the link the broken link is shown. My script fixes the DOM. // ==UserScript== // @name Fix broken double links // @namespace http://stackoverflow.com/users/578411/rene // @version 0.1 // @description fix one-one-boxes // @author rene // @match *://chat.meta....


7

Wikiwand is a really nice plugin that beautifies wikipedia Wikipedia is beautiful, and oneboxes too. Use the Wikipedia url instead of using Wikiwand.


7



6

Fixed with extreme prejudice. dog pictures with HILARIOUS captions http://icanhascheezburger.files.wordpress.com/2012/03/advice-animals-memes-animal-memes-insanity-pup-try-fixing-that.png


6

IACR's ePrint This would be super useful on Crypto.SE and possibly other sites where cryptography gets discussed (Math.SE, Security.SE, and the likes). For example, one of our users recently published a tutorial there. From the link you can extract title, author, abstract, etc and display it in chat.


6

I've made a userscript to do this. The result? Exactly as you imagined :) It's based largely off my Github oneboxer, just modified to work for SoundCloud. It uses the SoundCloud API to get any relevant information and displays it in a pretty manner. This will only look good if the linked track has a description and possibly some tags; otherwise it ...


6

I've made a 'plugin' for this to be used with my custom onebox userscript at Stack Apps. It uses the arXiv API to get the title, author and abstract. The logo is from the Android app. The end onebox: It works for both links to the PDFs or just the abstract page You can install the custom onebox userscript from GitHub All you need to do then is paste ...


6

The first thing that would be required would be an API method that accepted the id (1299 and 1859 in the above) or the full uri (any of the 4 links), and returned the data in a machine-processable format - something like the search response would be ideal, but the search does not accept ids (it does a title search). Technically we could scrape the html, but ...


Only top voted, non community-wiki answers of a minimum length are eligible