// ==UserScript==
// @name          SoftPedia Report Signature
// @author        Ciuly  
// @namespace     http://www.ciuly.com
// @description   reports a signature on the dedicated thread
// @include       http://forum.softpedia.com/index.php?showtopic=*
// @require       http://www.ciuly.com/greasemonkey/aa_all_common.user.js
// @require       http://www.ciuly.com/greasemonkey/aa_sp_common.user.js
// ==/UserScript==

(function(wnd){

  wnd.ciuly_ReportSig = function (uid){
	wnd.ciuly_progress_show();
	wnd.ciuly_progress_log("Posting...");
	var r = wnd.ciuly_reply(28, 35114, "http://forum.softpedia.com/index.php?showuser="+uid);
	wnd.ciuly_progress_hide();
	return false;
  };

  function addButton(postid, uname, uid){
    return "&nbsp;<button class=\"button\" name=\"Report Sig\" title=\"Report signature in dedicated thread\" onclick=\"return ciuly_ReportSig('"+uid+"')\">Report Sig</button>&nbsp;";
  } 

  if (wnd.ipb_md5_check){
    wnd.ciuly_on_every_post(addButton);
  }

})(window.wrappedJSObject || window);