-12

I think this would be really useful. There's a Chrome plugin that provides some great functionality, but sometimes you just need to break out a disapproving look immediately in another browser, and I think SE chat needs to support this.

Can we have a ಠ_ಠ button please?

 ಠ_ಠ

14
  • 16
    Whoever downvotes this hates fun and should be banned. Commented Aug 27, 2013 at 15:55
  • 23
    ಠ_ಠ​​​​​​​​​​​​ Commented Aug 27, 2013 at 15:58
  • 4
    "but sometimes you just need to break out a disapproving look immediately" I don't see why using a plugin or userscript would delay your expression of disapproval.
    – user200500
    Commented Aug 27, 2013 at 15:58
  • 1
    @GnomeSlice It should be possible to write a userscript that works for GreaseMonkey as well as Chrome. If you're using IE, well, ಠ_ಠ.
    – user200500
    Commented Aug 27, 2013 at 16:00
  • 2
    that face looks more like it's lacking sleep than disapproving.
    – Spudley
    Commented Aug 27, 2013 at 16:05
  • @Spudley it looks better when it's not bolded. Commented Aug 27, 2013 at 16:08
  • 2
    We all hate fun on Meta
    – Bart
    Commented Aug 27, 2013 at 16:13
  • 4
    I'm afraid that this would lead us down the slippery slope towards widespread acceptance of all emoticons.
    – Bill the Lizard Mod
    Commented Aug 27, 2013 at 16:17
  • 6
    Why not just wait for the other users in the room to flag the message as their way of showing their ಠ_ಠ​​​​​​​​​​​​
    – random Mod
    Commented Aug 27, 2013 at 16:19
  • I dispute that such a button would be "fun". If we are going to have fun on meta, go for the gusto!
    – Jon Ericson StaffMod
    Commented Aug 27, 2013 at 16:19
  • 5
    It is not even Friday in Iceland yet...and it is always Friday in Iceland.
    – user7116
    Commented Aug 27, 2013 at 16:32
  • (」゚ペ)」ಥ_ಥ(⌐■_■)
    – user1228
    Commented Aug 27, 2013 at 16:47
  • 3
    Why all the downvotes? ಠ_ಠ​​​​ Do u even chat bro?​​​​​​​​
    – TCPMAN.EXE
    Commented Aug 27, 2013 at 17:33
  • @TCPMAN.EXE(−_−;)
    – Cole Tobin
    Commented Dec 18, 2013 at 15:35

1 Answer 1

18

Here's something that should work as a userscript in both GreaseMonkey (Firefox) and Chrome:

// ==UserScript==
// @name          Disapproval Button
// @author        Asad
// @version       1.0
// @namespace     pleaseletthisbeauniquenamespace
// @description   Grimace disapprovingly more efficiently than ever
// @include       http://chat.stackexchange.com/rooms/*
// @include       http://chat.stackoverflow.com/rooms/*
// @include       http://chat.meta.stackexchange.com/rooms/*
// ==/UserScript==


(function go() {
    var buttonsContainer = document.getElementById("chat-buttons"),
        newButton = document.createElement("button");

    newButton.setAttribute("class", "button");
    newButton.id = "disapproval-button";
    newButton.innerHTML = "ಠ_ಠ"

    buttonsContainer.appendChild(newButton);

    newButton.addEventListener("click", function(e){
        var editorCell = this.parentElement.previousElementSibling,
            textarea = editorCell.getElementsByTagName("textarea")[0],
            text = textarea.value,
            selStart = textarea.selectionStart,
            selEnd = textarea.selectionEnd;
        textarea.value = text.slice(0, selStart) + "ಠ_ಠ" + text.slice(selEnd);
        textarea.focus();
        textarea.selectionStart = textarea.selectionEnd = selStart + 3;
    });
})();

To install in Chrome:

  1. Put the snippet above in a file called whateveryoufancy.user.js on your desktop or somewhere
  2. Open Tools > Extensions in Chrome and drag the file onto the page you land on.

To install in Firefox + GreaseMonkey, simply drag and drop the file into any browser window.

enter image description here

7
  • I have no idea how to use this, but thanks I guess. Commented Aug 27, 2013 at 17:13
  • @GnomeSlice Let me know if you run into problems.
    – user200500
    Commented Aug 27, 2013 at 17:31
  • It works! Doesn't auto-focus back to the text back after click, but not a big deal I guess. Thanks! =P Commented Aug 27, 2013 at 17:44
  • @GnomeSlice Sorry, that was an oversight on my part. Should be fixed now (update your text file with the new version, drag it again).
    – user200500
    Commented Aug 27, 2013 at 17:50
  • 17
    I tried to install this on my wife. It did not work. But she did give me this look. So I guess it did work after all.
    – Andrew Barber Mod
    Commented Aug 27, 2013 at 19:01
  • 2
    @AndrewBarber Try installing it on your wife's browser next time. (More seriously though, what went wrong?)
    – user200500
    Commented Aug 27, 2013 at 19:04
  • @Asad Oh, no; you nailed the problem. So to speak... I was installing it on the Wife, not the Browser! ;)
    – Andrew Barber Mod
    Commented Aug 27, 2013 at 19:09

You must log in to answer this question.

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