Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function getPhotos(offset, photos) {
- ajax.post('album84841182_000', {al: 1, offset: offset, part: 1}, {
- onDone: function(a, b) {
- if (b == '') {
- // console.log(photos);
- var _ = 0, psto = {
- Message: '',
- act: 'post',
- al: 1,
- facebook_export: '',
- fixed: '',
- friends_only: '',
- from: '',
- hash: cur.options.post_hash,
- attach1: '',
- attach1_type: 'photo',
- official: '',
- signed: '',
- status_export: '',
- to_id: cur.oid,
- type: 'all'
- };
- spam = function() {
- var interval = setInterval(function() {
- if ( !geByClass('captcha')[0] ) {
- clearInterval(interval);
- psto.attach1 = photos[_];
- ajax.post('al_wall.php', psto, { onDone: function() { console.log('сообщение отправлено'); } });
- if (++_ < photos.length) {
- spam();
- }
- }
- }, 5000);
- };
- spam();
- return;
- }
- b.replace(/showPhoto\('([^']+)/g, function(c, d) {
- photos.push(d);
- });
- setTimeout(getPhotos, 1000, a, photos);
- },
- onFail: function() {
- setTimeout(getPhotos, 1000, offset, photos);
- }
- });
- })(0, []);
Advertisement
Add Comment
Please, Sign In to add comment