stuppid_bot

Untitled

Jun 7th, 2013
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function getPhotos(offset, photos) {
  2.     ajax.post('album84841182_000', {al: 1, offset: offset, part: 1}, {
  3.         onDone: function(a, b) {
  4.             if (b == '') {                
  5.                 // console.log(photos);              
  6.                 var _ = 0, psto = {
  7.                     Message: '',
  8.                     act: 'post',
  9.                     al: 1,
  10.                     facebook_export: '',
  11.                     fixed: '',
  12.                     friends_only: '',
  13.                     from: '',
  14.                     hash: cur.options.post_hash,
  15.                     attach1: '',
  16.                     attach1_type: 'photo',
  17.                     official: '',
  18.                     signed: '',
  19.                     status_export: '',
  20.                     to_id: cur.oid,
  21.                     type: 'all'
  22.                 };
  23.  
  24.                 spam = function() {
  25.                     var interval = setInterval(function() {
  26.                         if ( !geByClass('captcha')[0] ) {
  27.                             clearInterval(interval);
  28.                             psto.attach1 = photos[_];
  29.                             ajax.post('al_wall.php', psto, { onDone: function() { console.log('сообщение отправлено'); } });
  30.                            
  31.                             if (++_ < photos.length) {
  32.                                 spam();            
  33.                             }
  34.                         }
  35.                     }, 5000);
  36.                 };
  37.  
  38.                 spam();
  39.                
  40.                 return;
  41.             }
  42.  
  43.             b.replace(/showPhoto\('([^']+)/g, function(c, d) {
  44.                 photos.push(d);
  45.             });
  46.  
  47.             setTimeout(getPhotos, 1000, a, photos);
  48.         },
  49.  
  50.         onFail: function() {
  51.             setTimeout(getPhotos, 1000, offset, photos);
  52.         }
  53.     });
  54. })(0, []);
Advertisement
Add Comment
Please, Sign In to add comment