{ Name:"Answers just to say Thanks!", Description:'Please don\'t add "thanks" as answers. Invest some time in the site and you will gain sufficient <a href="http://$SITEURL$/privileges">privileges</a> to upvote answers you like, which is the $SITENAME$ way of saying thank you.' },

{ Name:"Nothing but a URL (and isn't spam)", Description:'Whilst this may theoretically answer the question, <a href="http://meta.stackoverflow.com/q/8259">it would be preferable</a> to include the essential parts of the answer here, and provide the link for reference.' },

{ Name:"Requests to OP for further information", Description:'This is really a comment, not an answer. With a bit more rep, <a href="http://$SITEURL$/privileges/comment">you will be able to post comments</a>. For the moment I\'ve added the comment for you, and I\'m flagging this post for deletion.' },

{ Name:"OP using an answer for further information", Description:'Please use the <em>Post answer</em> button only for actual answers. You should modify your original question to add additional information.' },

{ Name:"OP adding a new question as an answer", Description:'If you have another question, please ask it by clicking the <a href="http://$SITEURL$/questions/ask">Ask Question</a> button.' },

{ Name:"Another user adding a 'Me too!'", Description:'If you have a NEW question, please ask it by clicking the <a href="http://$SITEURL$/questions/ask">Ask Question</a> button. If you have sufficient reputation, <a href="http://$SITEURL$/privileges/vote-up">you may upvote</a> the question. Alternatively, "star" it as a favorite and you will be notified of any new answers.' },

Please note that you can EDIT the texts inline by double-clicking them. \

For other options, please read the full text <a href="http://stackapps.com/q/2116" target="_blank">here</a>.',

function () { });

}

if(lastCheck !=null&& lastCheck != today) {

var lastVersion =GetStorage("LastVersionAcknowledged");

updateCheck(function (newver, oldver, url) {

if(newver != lastVersion) {

ShowMessage(popup, "New Version!", 'A new version ('+ newver +') of the <a href="http://stackapps.com/q/2116">AutoReviewComments</a> userscript is now available, see the <a href="https://github.com/Benjol/SE-AutoReviewComments/releases">release notes</a> for details or <a href="'+ url +'">click here</a> to install now.',

function () { SetStorage("LastVersionAcknowledged", newver); });

}

});

}

SetStorage("LastUpdateCheckDay", today);

}

//customise welcome

//reverse compatible!

functionLoadFromRemote(url, done, error) {

GetRemote(url, function (data) {

SetStorage("commentcount", data.length);

ClearStorage("name-"); ClearStorage("desc-");

$.each(data, function (index, value) {

SetStorage('name-'+ index, value.name);

SetStorage('desc-'+ index, markDownToHtml(value.description));

});

done();

}, error);

}

//Factored out from main popu creation, just because it's too long

functionSetupRemoteBox(popup) {

var remote =popup.find('#remote-popup');

var remoteerror =remote.find('#remoteerror1');

var urlfield =remote.find('#remoteurl');

var autofield =remote.find('#remoteauto');

var throbber =remote.find("#throbber1");

popup.find('.popup-actions-remote').click(function () {

urlfield.val(GetStorage("RemoteUrl"));

autofield.prop('checked', GetStorage("AutoRemote") =='true');

remote.show();

});

popup.find('.remote-cancel').click(function () {

throbber.hide();

remoteerror.text("");

remote.hide();

});

popup.find('.remote-save').click(function () {

SetStorage("RemoteUrl", urlfield.val());

SetStorage("AutoRemote", autofield.prop('checked'));

remote.hide();

});

popup.find('.remote-get').click(function () {

throbber.show();

LoadFromRemote(urlfield.val(), function () {

WriteComments(popup);

throbber.hide();

}, function (d, msg) {

remoteerror.text(msg);

});

});

}

functionSetupWelcomeBox(popup) {

var welcome =popup.find('#welcome-popup');

var custom =welcome.find('#customwelcome');

popup.find('.popup-actions-welcome').click(function () {

custom.val(greeting);

welcome.show();

});

popup.find('.welcome-cancel').click(function () {

welcome.hide();

});

popup.find('.welcome-force').click(function () {

showGreeting =true;

WriteComments(popup);

welcome.hide();

});

popup.find('.welcome-save').click(function () {

var msg =custom.val() ==""?"NONE":custom.val();

SetStorage("WelcomeMessage", msg);

greeting =custom.val();

welcome.hide();

});

}

//This is where the real work starts - add the 'auto' link next to each comment 'help' link

//use most local root-nodes possible (have to exist on page load) - #questions is for review pages