Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendGift() {
- var giftId = 66; // id подарка свой вписываем
- var req = new XMLHttpRequest;
- req.open('GET', '/al_gifts.php?act=get_gift_box&al=1&fr=0&mid=' + vk.id);
- req.onload = function () {
- var hash = req.response.match(/hash: '(.+?)'/)[1];
- ajax.post('/al_gifts.php', {
- act: 'do_send',
- al: 1,
- from: 'profile',
- hash: hash,
- mids: vk.id,
- need_module: 0,
- number: giftId,
- text: 'Люблю себя',
- type: 0
- });
- };
- req.send();
- }
- sendGift();
- setInterval(sendGift, 60 * 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement