Hot answers tagged

4

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

bug status-completed The interface doesn't close when pressing on the "give explicit write access", which is inconsistent with the behavior of the other buttons upon being pressed. It is also not clear if this worked or not, as there is no feedback and you need to go into the rooms info to make sure it indeed worked


2

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


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 ...


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]; ...


1

I did some bug fixing to this and posted it on Github: https://github.com/murukeshm/SEChatSound, and added more sounds. Modifications were only tested on recent versions of Google Chrome, and I don't know the media plugin that SE uses well enough to know if I broke anything.


1

Oneboxing Steam Store links customSites['store.steampowered.com'] = function(link, $obj) { // http://store.steampowered.com/app/377840/ $('head').append('<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/shu8/SE-Chat-Custom-Oneboxes/a043cfaae462d918f94558e188749089ef9d97cb/steam.css">'); var id = link.split('/')[4]; ...



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