metal4chan

Emoticons for Vidya4chan. Done by CoF for MetalxXxGear.

当前为 2015-01-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name metal4chan
  3. // @namespace http://use.i.E.your.homepage/
  4. // @version 4.27
  5. // @description Emoticons for Vidya4chan. Done by CoF for MetalxXxGear.
  6. // @match http://instasync.com/*
  7. // @grant none
  8. // @copyright 2015
  9. // ==/UserScript==
  10. //{ src:"", width:, height:, title:''},
  11. var oldOnConnected = window.global.onConnected,
  12. emotes = [
  13. { src:"http://i.imgur.com/1tME9i9.gif", width:50, height:49, title:'mako'},
  14. { src:"http://i.imgur.com/EOJVmvF.gif", width:53, height:55, title:'skeletal'},
  15. { src:"http://i.imgur.com/xv1O1si.gif", width:45, height:48, title:'ryu'},
  16. { src:"http://i.imgur.com/Q029MEI.gif", width:62, height:50, title:'dubass'},
  17. { src:"http://i.imgur.com/IcHOs.gif", width:62, height:50, title:'harahu'},
  18. { src:"http://i.imgur.com/bQJOClf.gif", width:62, height:50, title:'shotgun'},
  19. { src:"http://i.imgur.com/3VeLz9S.gif", width:62, height:50, title:'xenomorph'},
  20. { src:"http://i.imgur.com/jxX66P1.gif", width:62, height:50, title:'nigger'},
  21. { src:"http://i.imgur.com/ojpDDL6.gif", width:62, height:50, title:'ghost'},
  22. { src:"http://i.imgur.com/JvRiObq.gif", width:62, height:50, title:'anime'},
  23. { src:"http://i.imgur.com/3EbZG8T.gif", width:62, height:50, title:'booty'},
  24. { src:"http://i.imgur.com/RKDtQWt.gif", width:62, height:50, title:'clapping'},
  25. { src:"http://i.imgur.com/KYk8suv.gif", width:62, height:50, title:'stop2'},
  26. { src:"http://i.imgur.com/B6bBva0.gif", width:45, height:45, title:'yoshi'},
  27. { src:"http://i.imgur.com/F5qdDtE.gif", width:125, height:45, title:'kabi'},
  28. { src:"http://i.imgur.com/mkoBhqm.gif", width:55, height:65, title:'blue'},
  29. { src:"http://i.imgur.com/eqmUDB6.gif", width:52, height:50, title:'her'},
  30. { src:"http://i.imgur.com/ZsVKjbE.gif", width:68, height:50, title:'2scooby'},
  31. { src:"http://i.imgur.com/FBcmjnJ.gif", width:75, height:43, title:'penguin'},
  32. { src:"http://i.imgur.com/199ZHvl.gif", width:54, height:55, title:'strut'},
  33. { src:"http://i.imgur.com/ARJzqWc.gif", width:54, height:55, title:'kitty2'},
  34. { src:"http://i.imgur.com/aQP4djX.gif", width:54, height:55, title:'anime2'},
  35. { src:"http://i.imgur.com/cqlff3P.gif", width:54, height:55, title:'pandadance'},
  36. { src:"http://i.imgur.com/Y71EUG3.gif", width:54, height:55, title:'arthur'},
  37. { src:"http://i.imgur.com/7OJcsQo.gif", width:54, height:55, title:'anime3'},
  38. { src:"http://i.imgur.com/VeeZhQK.gif", width:54, height:55, title:'comfydog'},
  39. { src:"http://i.imgur.com/WkdS2Vf.gif", width:54, height:55, title:'miku3'},
  40. { src:"http://i.imgur.com/cT9fiY2.gif", width:54, height:55, title:'anime4'},
  41. { src:"http://i.imgur.com/FSVkUzE.gif", width:54, height:55, title:'chen2'},
  42. { src:"http://i.imgur.com/ouIN19V.gif", width:54, height:55, title:'alizee'},
  43. { src:"http://i.imgur.com/EFftKaJ.gif", width:54, height:55, title:'dhalsim'},
  44. { src:"http://i.imgur.com/xLZ3sMe.gif", width:54, height:55, title:'brushie'},
  45. { src:"http://i.imgur.com/0ehDF7A.gif", width:54, height:55, title:'jin'},
  46. { src:"http://i.imgur.com/pUeFbQl.gif", width:54, height:55, title:'wry'},
  47. { src:"http://i.imgur.com/bFuQDUZ.gif", width:54, height:55, title:'ken'},
  48. { src:"http://i.imgur.com/I1JEBxn.gif", width:54, height:55, title:'fap'},
  49. { src:"http://i.imgur.com/S417M86.gif", width:54, height:55, title:'buttjuice'},
  50. { src:"http://i.imgur.com/wZ5JmnS.gif", width:54, height:55, title:'anime5'},
  51. { src:"http://i.imgur.com/ELQA2fB.gif", width:54, height:55, title:'notabotnet'},
  52. { src:"http://i.imgur.com/HOdSCiN.gif", width:54, height:55, title:'laughinganime'},
  53. { src:"http://i.imgur.com/giQjsb3.gif", width:54, height:55, title:'mememe'},
  54. { src:"http://i.imgur.com/7VcUcYJ.gif", width:54, height:55, title:'duckgif'},
  55. { src:"http://i.imgur.com/2djp8O7.gif", width:54, height:55, title:'tao'},
  56. { src:"http://i.imgur.com/zm9JFiG.gif", width:54, height:55, title:'drums'},
  57. { src:"http://i.imgur.com/kxnynG9.gif", width:54, height:55, title:'samus'},
  58. { src:"http://i.imgur.com/MKeU5Do.gif", width:54, height:55, title:'jc'},
  59. { src:"http://i.imgur.com/a9tT6xJ.gif", width:54, height:55, title:'earthbound'},
  60. { src:"http://i.imgur.com/CjP6iU8.png", width:10, height:15, title:'mytinysides'},
  61.  
  62. ];
  63. function addEmotes(){
  64. for(var i = 0; i < emotes.length; i += 1){
  65. var parameter = emotes[i];
  66. window.$codes[parameter.title] = $('<img>', parameter)[0].outerHTML;
  67. }
  68. }
  69. //load emotes everytime we connect to a room
  70. //makes sure emotes work even after going to the frontpage and back
  71. window.global.onConnected = function () {
  72. oldOnConnected();
  73. addEmotes();
  74. };
  75. //check if we are already connected and the script just loaded slow
  76. if(typeof(window.userInfo) !== 'undefined' && window.userInfo !== null){
  77. addEmotes();
  78. }