- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
setInterval(function(){
jQuery.get('/comments', function(response){
var html=jQuery(response);
var breaked=false;
jQuery.each(html.find('.hentry'), function(){
if(!breaked){
var entry=jQuery(this);
var username=jQuery.trim(entry.find('.entry-author').first().text());
var comment=jQuery.trim(entry.find('.entry-comment').first().text());
if(username!='g0_1494089147006' && username!=''){
breaked=true;
var link=jQuery.trim(entry.find('.answer').first().attr('href'));
jQuery.get(link, function(response2){
var html2=jQuery(response2);
var form2=html2.find('form').first().serialize();
jQuery.post('https://localhost/gkwordanalyzer/wanal.php', 'q='+encodeURIComponent(comment), function(response3){
if(jQuery.trim(response3)==''){ response3='Трижды остоебу.'; }
jQuery.post(link, form2+'&text='+encodeURIComponent(response3));
});
});
}
}
});
});
}, 5000);