Hot answers tagged

3

Notes All you need to do to add your own oneboxed site is add a function to the customSites object (ie. add a 'plugin' :) The function must be named as the URL you want to onebox (eg. SoundCloud -> soundcloud.com as the function name) The function must have the parameters link and $obj, in that order! link = the matched link; $obj = the message as a ...


2

What Gets Sent Madara Uchiha posted a comment asking about what information was being tracked. This answer should help clarify what's going on. The Client When the script sends a message to the server, it is one of four types: active - sent whenever the tab loses or gains focus. Other users will see your image fade when focus is lost. typing - sent ...


2

status-completed https://github.com/shu8/SEChat-githubOneboxer/issues/1 feature-request Show labels, milestones and assignee in ticket oneboxes. For example:


1

feature-request Also support pasting an image from the clipboard. Thank you for this, this is awesome. But if you also add the paste feature that imgur has (it also works on Stack Exchange posts, hit the "insert image" icon and Ctrl+V), I will worship you1. 1: For very specific definitions of "worship." Offer void on weekdays or days that start with "S." ...


1

Oneboxing links to Stack Exchange user profiles (the main site) customSites['stackexchange.com'] = function(link, $obj) { if(link.indexOf('/users/') > -1) { var user_id = link.split('/')[4]; $.getJSON("http://api.stackexchange.com/2.2/users/"+user_id+"/associated", function(json) { var oldestSiteUserId = ...


1

Oneboxing arXiv links customSites['arxiv.org'] = function(link, $obj) { $('head').append('<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/shu8/SE-Chat-Custom-Oneboxes/master/arxiv.css">'); var id = link.split('/')[4]; if (id.indexOf('pdf') > -1) { id = id.replace('.pdf', ''); } ...


1

Oneboxing Spotify Links customSites['play.spotify.com'] = function(link, $obj) { $('head').append('<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/shu8/SE-Chat-Custom-Oneboxes/master/spotify.css">'); if(link.indexOf('album') > -1) { var album_id = link.split('/')[4]; ...



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