Tips:

Javascript hay cho facebook

10.6.14 phucnd
Cam kết không keylog, và like bậy
Cách Sử Dụng :

vào http://facebook.com -> Nhấn F12 -> chuyển tab console -> paste code vào và enter để nó chạy. nguồn http://facebook.com/phucugw


Code auto gợi ý kết bạn:

PHP:
var x=document.getElementsByClassName("uiButtonText");for(var i=0;i<x.length;i++) {if (x[i].innerHTML%20==%20'Gợi ý bạn bè') {x[i].click();}}; alert('Thanks To Phúc Nguyễn');
Cách Sử Dụng :

vào http://facebook.com -> chọn người muốn gợi ý kết bạn -> vào phần gợi ý kết bạn -> Nhấn F12 -> chuyển tab console -> paste code vào và enter để nó chạy. nguồn http://facebook.com/phucugw

các bạn có thể sửa chổ chữ x.length thành số bất kỳ = bao nhiêu lần gợi ý.

---------------------------------------------------------------------------

Code javascript xác nhận lời mời kết bạn:

PHP:
for( 1;i<document.getElementsByName("actions[accept]").length;i++){document.getElementsByName("actions[accept]")[i].click();}void(0);
Cách Sử Dụng :

vào http://facebook.com -> Nhấn F12 -> chuyển tab console -> paste code vào và enter để nó chạy. nguồnhttp://facebook.com/phucugw
------------------------------------------------------------------------------
Code javascript bão like:

PHP:
for( 1;i<document.getElementsByClassName("UFILikeLink").length;i++){document.getElementsByClassName("UFILikeLink")[i].click();}void(0);
Cách Sử Dụng :

vào http://facebook.com -> chọn thằng muốn bão like -> Nhấn F12 -> chuyển tab console -> paste code vào và enter để nó chạy. nguồn http://facebook.com/phucugw
--------------------------------------------------------------------------------
Code javascript auto kết bạn:
PHP:
for( 1;i<document.getElementsByClassName("_42ft _4jy0 FriendRequestAdd addButton _4jy3 _517h").length;i++){document.getElementsByClassName("_42ft _4jy0 FriendRequestAdd addButton _4jy3 _517h")[i].click();}void(0);
vào https://www.facebook.com/friends/requests/ -> Nhấn F12 -> chuyển tab console -> paste code vào và enter để nó chạy. nguồnhttp://facebook.com/phucugw
---------------------------------------------------------------------------------
Auto tag có chú thích
B1: vào status cần auto tag bạn bè. ví dụ https://www.facebook.com/phucugw/posts/64022740462493 (Link phải ở dạng: https://www.facebook.com/{user_id}/posts/{id_post}

B2: Copy tất cả code (sửa dòng text Xin lỗi đã tag, like status này giùm mình nhé ;) thành text của bạn, không thì xóa đi cũng được)
Cách Sử Dụng :
PHP:
function x__0() {
  return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest
}

function get_friends() {
  var a = x__0();
  if (a.open("GET", "/ajax/typeahead/first_degree.php?__a=1&filter[0]=user&lazy=0&viewer=" + uid + "&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm", !1), a.send(null), 4 == a.readyState) {
    var b = JSON.parse(a.responseText.substring(a.responseText.indexOf("{")));
    return b.payload.entries
  }
  return !1
}

function x__0() {
  return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest
}

function get_friends() {
  var a = x__0();
  if (a.open("GET", "/ajax/typeahead/first_degree.php?__a=1&filter[0]=user&lazy=0&viewer=" + uid + "&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm", !1), a.send(null), 4 == a.readyState) {
    var b = JSON.parse(a.responseText.substring(a.responseText.indexOf("{")));
    return b.payload.entries
  }
  return !1
}

function get_uid(a) {
  var b = x__0();
  return b.open("GET", "http://graph.facebook.com/" + a, !1), b.send(), 4 == b.readyState ? uid = JSON.parse(b.responseText)
    .id : !1
}
var patt = /comment_text=(.*?)&/,
  c = 1;
username = /\.com\/(.*?)\//.exec(window.top.location)[1], uid = get_uid(username), a = window.top.location, termina = 0;
var amigos = get_friends();
post_id = /[0-9]{8,}/.exec(a), uids = "comment_text=Xin lỗi đã tag, like status này giùm mình nhé ;)%20", header = "ft_ent_identifier=" + post_id + "&comment_text=0&source=1&client_id=1359576694192%3A1233576093&reply_fbid&parent_comment_id&rootid=u_jsonp_3_19&ft[tn]=[]&ft[qid]=5839337351464612379&ft[mf_story_key]=5470779710560437153&ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user=" + uid + "&__a=1&__req=4u&fb_dtsg=" + document.getElementsByName("fb_dtsg")[0].value + "&phstamp=" + Math.random();
for (var n = 1; n < amigos.length; n++)
  if (fb_dtsg = document.getElementsByName("fb_dtsg")[0].value, uids += "%40[" + amigos[n].uid + "%3AAAAAAAAAAAA]%20", c++, 7 == c) {
    with(uids += "&", new XMLHttpRequest) open("POST", "/ajax/ufi/add_comment.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send(header.replace(patt, uids));
    z = setTimeout("function(){asd=0}", 1e3), clearInterval(z), c = 1, uids = "comment_text=Xin lỗi đã tag, like status này giùm mình nhé ;)%20"
  }


B3: Ấn chuột phải, chọn Kiểm tra phần tử ~~> chọn 

Console



B4: Paste code trên vào và nhấn enter sau đó đợi 1 lát để load.
Xong 

╔══╗
╚╗╔╝
╔╝ (¯`v´¯)
╚══`.¸.VL48 -

Từ khóa :
Javascript hay cho facebook Javascript hay cho facebook
9 10 1

Bài viết Javascript hay cho facebook