Hot answers tagged

6

2 ideas for drastically simplifying some command inputs: A bare command such as /edit or /delete should assume "the last message I sent". Note that it will not necessarily be the highest id, because that could be one of another user. Alternatively, if that implementation is too hard, avoiding the id number when the intent is obvious is still a nice idea, ...


5

For anyone interested in running this apps mobile chat interface on your desktop (as in a sidebar chat window with reply support!) the author has responded in record time to my request and provided a userscript version!


4

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


4

You can register a callback with Stack Exchange Chat, which gets called prior to the change happening in the DOM (i.e. if you want to find a new message in the DOM, you need to use a setTimeout() to act after the DOM change). Callbacks can be registered with CHAT.addEventHandlerHook(callback), which takes a function as its single argument. The callback ...


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


4

I did some bug fixing to this and posted it on Github: https://github.com/muru/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.


3

There is no official API provided for the chat network. As Marc's answer mentions, there are a number of community efforts to bridge the gap: Go go-sechat JavaScript ChatBot ChatExchange ThirdPlace ArtOfChatbot SO-ChatBot Boilerplate - Remove the plugins and you have a boilerplate where you can create your own bot. Documentation is in the ./docs folder ...


2

I think there is a bug: I was trying out the Clipboard feature, but I don't seem to be able to Delete/Paste items from the clipboard. If I try to delete an item, it always comes back if I click again on the "clipboard" button. and if I click Paste, nothing happens. I'm using Firefox 37.0.1 and Windows 7. In case it matters: I installed the following add-...


2

Seems like the keyboard navigation broke since the jQuery version was upgraded while fixing the scrolling bug. CTRL+Up will now both navigate upwards with the extension, and move the edited message marker (as though you pressed Up without CTRL).


2

and what exactly would you have? you are correct in that there is no officially supported API available for chat. Some fairly successful efforts have been made by the community (unrelated to SE) to reverse engineer the API that chat uses; but that is not the same thing as a supported and documented API. AFAIK there are no active plans to implement a direct ...


2

This "answer" relates to version 5a which has been superseded since. This is a minimal failing example: // ==UserScript== // @name Test // @namespace . // @description Test userscript. // @require http://code.jquery.com/jquery-1.7.1.min.js // @require http://josh.gitlin.name/userscripts/ThirdPlace.js // @include http:/...


2

Version 3.1 is available today. New improvements include: A configuration option that will allow you to mark unread items as read when you open your inbox. (This is implemented by loading the inbox in the background and ignoring the result) The "inbox item body" is now shown alongside the title of the post. Some small CSS fixes.


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

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


2

Known bugs If you have the Chat Modifications userscript, it seems this script will fail to work altogether. I'm investigating.


2

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


2

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', ''); } $.get("http://export....


1

Okay, here's a script that adds a button to launch those Easter eggs: Once installed, merely select the desired Easter egg from the drop-down then press the EEgg button. (Then weep for the poor puppy you could have petted/walked with that time.) To install, click here (Chat, Wheel of Blame and other Easter eggs install at GitHub). (Requires a userscript ...


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]; $.get(...


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 = json.items[0]....


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]; $.get("https://api.spotify.com/v1/...


1

bug Hope you're still updating this... I'm on the latest version 1.0.18 and using Chrome 65.0.3325.181 on Win 10. The latest update to Chrome extensions has caused a possible bug in the options page of this extension. See screenshot: There are more options below "HamStare", but they are inaccessible. A scroll bar is not there as well. I suspect this is ...


1

Here are a litany of Github attempts, from new to old: cabbage.js rebolbot.r3 soirc.py soxmpp.rb stackChat.py


1

Check out my userstyle version that does essentially the same (use with stylish stylus or adapt into a userscript): /* SE chat − safe for work image oneboxes */ @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("chat.stackexchange.com") { .ob-image, .ob-youtube {opacity: 0.1 !important;} .ob-image:hover, .ob-youtube:hover {opacity: 1 !...


1

There's unofficial collaborative Chat API Documentation for how everything in chat works. Its split up into a couple different parts: Authentication Receiving Events (Messages + other stuff) Sending Events/Messages User Information More information here: Stack Exchange Chat API Documentation and Bot Boilerplate (finally) Note: I started the ...


1

I to remember reporting this before and the problem being solved, but it's back: When I navigate through messages with CTRL+UP/DOWN, message by ignored users are silently traversed.


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