/*
Anti-spam plugin
No spam in comments. No captcha.
wordpress.org/plugins/anti-spam/
*/
jQuery(function($){
$('.comment-form-ant-spm, .comment-form-ant-spm-2').hide(); // hide inputs from users
var answer = $('.comment-form-ant-spm input#ant-spm-a').val(); // get answer
$('.comment-form-ant-spm input#ant-spm-q').val( answer ); // set answer into other input
var current_date = new Date();
var current_year = current_date.getFullYear();
if ( $('#comments form input#ant-spm-q').length == 0 ) { // anti-spam input does not exist (could be because of cache or because theme does not use 'comment_form' action)
$('#comments form').append(''); // add whole input with answer via javascript to comment form
}
if ( $('#respond form input#ant-spm-q').length == 0 ) { // similar, just in case (used because user could bot have #comments)
$('#respond form').append(''); // add whole input with answer via javascript to comment form
}
if ( $('form#commentform input#ant-spm-q').length == 0 ) { // similar, just in case (used because user could bot have #respond)
$('form#commentform').append(''); // add whole input with answer via javascript to comment form
}
});
/*
playback timings (ms):
LoadShardBlock: 247.532 (3)
esindex: 0.013
captures_list: 266.921
CDXLines.iter: 13.806 (3)
PetaboxLoader3.datanode: 67.128 (4)
exclusion.robots: 0.461
exclusion.robots.policy: 0.44
RedisCDXSource: 1.839
PetaboxLoader3.resolve: 326.559 (2)
load_resource: 165.073
*/