Hot answers tagged

9

feature-request status-completed Can you implement some kind of support for those of us who are fine with any pronoun, i.e., have no preference? I realise I could probably write something like don’t/care into my profile, but that would be weird for those who visit my profile and are not aware of this script.


8

bug/feature-request status-completed Strip out the http://my.pronoun.is/ portion of the pronoun tag under the username, seeing as how you can't click on it anyway.


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!


5

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.


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

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

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

bug status-completed Seems like there are similar requests for users' info on Chat.SO that fails due to CORS-blocking. You might want to disable the script for Chat.SO so we don't make unneccessary requests that fail, or implement a workaround using GM_xmlhttpRequest. Workaround I made: https://github.com/samliew/SO-mod-userscripts/blob/master/lib/common....


3

bug status-completed Clicking the name of someone in chat breaks the userscript (pronouns no longer appear). To make it more generic, DOM updated to chat, and to main sites (.post-layout, comments, etc.) break the userscript.


3

feature-request Can this be made to work on the transcript? It doesn't, currently.


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

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', ''); }...


2

I made little changes to display a button in the end of the sidebar, that button display the feed and hide it after 10 seconds starting to count when you mouseover the button, so just in a fastmove in the button, you can check the feed and let it autohide. // ==UserScript== // @name SE Chat // @namespace http://tampermonkey.net/ // @version ...


2

bug status-completed DonAntonio's math.SE profile contains: ... at least shortly, her/his downvote, making it clear ... This is interpreted as "her/his" pronouns.


1

// If we're on a Q&A site, also cache all changes to the `users` object to save on API calls Can I purge this cache manually, e.g. after changing the About me entry and/or is there an automatic expiration period? (I implemented such in my user flair once [but it didn't work in FF then]).


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


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

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


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

There is now an extension that solved this problem. See this post for info.


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


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