Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Screenshot

reply links on comments

About

This user script adds a little "reply" link to each comment. Clicking this link will

  1. fetch the rest of the comments, if some of them were hidden
  2. show the "add comment" text box
  3. pre-populate the text box with "@" and the name of the user you're replying to (removing spaces).

Be aware that there's no guarantee that the replied-to user will be notified of the comment -- all the @-reply caveats still apply (see the blog or the community faq for some information).

Download

install / update scriptview source

Platform

I have tested this script in Chrome (Windows 7), Chromium (Fedora 14), and Firefox + Greasemonkey (both OSes).

Contact

This script is created by Benjamin Dumke. Note that this is a free-time project of mine, and has nothing to do with my employment at Stack Overflow. See my profile for contact details; you can also often find me in the Tavern on Meta Stack Overflow chat.

share|improve this question
    
The script somehow seems to swallow certain characters at times, e.g. infensus was turned into inensus. –  H.B. Aug 2 '11 at 1:31
    
Please make it work with other sites as well. –  LifeH2O Aug 8 '11 at 14:51
    
Loving this script, especially after a couple minor tweaks –  freiheit Aug 13 '11 at 18:54
    
@H.B.: Any chance the f was a unicode character instead of a standard f? –  freiheit Aug 13 '11 at 18:55
    
@freiheit: No idea, i should have linked to the profile, cannot find it anymore... –  H.B. Aug 13 '11 at 19:17
    
@freiheit: He/she just posted another question, (profile), you could try the reply button on this question for example. –  H.B. Aug 14 '11 at 0:38
    
How is this script affected by meta.stackoverflow.com/q/53404? Will you still maintain it? –  Tshepang Jan 25 '12 at 22:28
1  
@Tshepang: It still works, and I'm still using it myself. I have found myself using the tab completion more and more, but I also still use this script. –  balpha Jan 26 '12 at 7:30
1  
It does seem to like to eat the first non-capitalized 'f' in someone's name. –  Ullallulloo Feb 3 '12 at 0:05
    
This does not work with usernames which contain only non-ascii characters like in tex.stackexchange.com/q/74494/5763: When replying to "ガベージコレクタ" the script eats the complete username (with FF15 on Win7). –  Martin Schröder Sep 28 '12 at 13:26
    
@MartinSchröder Ah yeah, I never fixed that... (To be honest, I haven't been using this script much since we put the tab autocompleter in). I'll fix it over the weekend; it's easy enough. –  balpha Sep 28 '12 at 14:17
    
@MartinSchröder Fixed now. –  balpha Sep 30 '12 at 17:22
    
Doesn't work on stackapps.com as it seems –  Oliver Salzburg Dec 18 '12 at 11:59
1  
Stackoverflow finally seems to support https, but your script is hardcoded for http://. –  Martin Schröder Jan 5 at 11:07
add comment

1 Answer

I would like to suggest

  1. Add stackapps.com to list of sites
  2. Allow the common "upside-down" unicode characters that have become trendy lately (and some users are using in their names now).
  3. Allow basic greek alphabet, since that also seems popular (lot of math and science symbols are greek)

Diff format, tested and working for me in Chrome:

--- 68252.user.js.orig  2011-08-13 11:15:22.000000000 -0700
+++ 68252.user.js   2011-08-13 11:51:49.000000000 -0700
@@ -15,6 +15,7 @@
 // @include        http://meta.answers.onstartups.com/*
 // @include        http://mathoverflow.net/*
 // @include        http://area51.stackexchange.com/proposals/*
+// @include        http://stackapps.com/*
 // @author         Benjamin Dumke
 // ==/UserScript==

@@ -82,7 +83,13 @@
                             ,'\u00e0','\u00e1','\u00e2','\u00e3','\u00e4','\u00e5','\u00e6','\u00e7'
                             ,'\u00e8','\u00e9','\u00ea','\u00eb','\u00ec','\u00ed','\u00ee','\u00ef'
                             ,'\u00f1','\u00f2','\u00f3','\u00f4','\u00f5','\u00f6'         
-                            ,'\u00f8','\u00f9','\u00fa','\u00fb','\u00fc','\u00fd'         ,'\u00ff').join('');
+                            ,'\u00f8','\u00f9','\u00fa','\u00fb','\u00fc','\u00fd'         ,'\u00ff'
+                            // upside-down lowercase from http://www.fileformat.info/convert/text/upside-down-map.htm
+                            ,'\u0250','\u0254','\u01dd','\u025f','\u0183','\u0265','\u0131','\u027e'
+                            ,'\u029e','\u0283','\u026f','\u0279','\u0287','\u028c','\u028d','\u028e'
+                            // basic greek http://en.wikipedia.org/wiki/Greek_alphabet
+                            ,'\u0370-\u03FF'
+                            ).join('');

     var bad = new RegExp("[^" + goodletters + "\\w.'-]", "ig");
share|improve this answer
    
Upside-down and greek because the hard-to-type usernames are exactly the ones I want to use a reply button for. –  freiheit Aug 13 '11 at 19:37
1  
Actually, all this script (in its current version) really needs is to remove spaces, so the character whitelist isn't really necessary anymore (I really thought I had made this change already, but it looks like I never did). I'll add your characters to stackapps.com/questions/2050/threaded-comments, though. And good point about updating the site list; will do. Thanks! –  balpha Aug 13 '11 at 20:20
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .