Skip to content

Instantly share code, notes, and snippets.

@chimo
chimo / config.php
Last active January 3, 2016 02:19 — forked from mrvdb/*vc-diff*.diff
Adding the following to SN's config.php should prepend the @-nickname of the person you're replying to in the web-UI's textarea.
function replyAtMention($action) {
$action->inlineScript('(function ($) {
SN.U.NoticeReply = function () {};
$("#content .notice_reply").die("click")
.live("click", function (e) {
e.preventDefault();
var $notice = $(this).closest("li.notice"),
replyNick = "@" + $notice.find(".vcard.author a.url").attr("title");