User:Dragonjet/scripts/CommentQuote.js

(function($, ArticleComments){	"use strict";	function AddButtons{		$("#article-comments-ul .comment").each(function{ $(".tools", this).prepend('Quote'); });		$(".quoteBtn").on("click", function{ var origMsg = $(".article-comm-text", $("#"+$(this).data("id"))).id; $("#article-comm.wikiaEditor").text("> "+origMsg); return true; });	}	$(window).load(function{ if(ArticleComments){ var realFunc = ArticleComments.addHover; ArticleComments.addHover = function { var result = realFunc.apply(this, arguments); AddButtons; return result; };		}	});

}(jQuery, window.ArticleComments));