metal4chan

Emoticons for Vidya4chan. Done by CoF for MetalxXxGear.

当前为 2015-03-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name metal4chan
  3. // @namespace http://use.i.E.your.homepage/
  4. // @version 4.94
  5. // @description Emoticons for Vidya4chan. Done by CoF for MetalxXxGear.
  6. // @match http://old.instasync.com/rooms/v4c
  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/B6bBva0.gif", width:45, height:45, title:'yoshi'},
  19. { src:"http://i.imgur.com/F5qdDtE.gif", width:125, height:45, title:'kabi'},
  20. { src:"http://i.imgur.com/mkoBhqm.gif", width:55, height:65, title:'blue'},
  21. { src:"http://i.imgur.com/eqmUDB6.gif", width:52, height:50, title:'her'},
  22. { src:"http://i.imgur.com/ZsVKjbE.gif", width:68, height:50, title:'2scooby'},
  23. { src:"http://i.imgur.com/FBcmjnJ.gif", width:75, height:43, title:'penguin'},
  24. { src:"http://i.imgur.com/199ZHvl.gif", width:54, height:55, title:'strut'},
  25. { src:"http://i.imgur.com/ARJzqWc.gif", width:54, height:55, title:'kitty2'},
  26. { src:"http://i.imgur.com/FSVkUzE.gif", width:54, height:55, title:'chen2'},
  27. { src:"http://i.imgur.com/S417M86.gif", width:54, height:55, title:'buttjuice'},
  28. { src:"http://i.imgur.com/ELQA2fB.gif", width:54, height:55, title:'notabotnet'},
  29. { src:"http://i.imgur.com/HOdSCiN.gif", width:54, height:55, title:'laughinganime'},
  30. { src:"http://i.imgur.com/giQjsb3.gif", width:54, height:55, title:'mememe'},
  31. { src:"http://i.imgur.com/7VcUcYJ.gif", width:54, height:55, title:'duckgif'},
  32. { src:"http://i.imgur.com/wAVQL4D.gif", width:60, height:47, title:'wop'},
  33. { src:"http://i.imgur.com/l1jmNIC.gif", width:60, height:47, title:'miku3'},
  34. { src:"http://i.imgur.com/OEJhzIR.gif", width:70, height:70, title:'miku4'},
  35. { src:"http://i.imgur.com/RgnpAPE.gif", width:45, height:59, title:'ayylien'},
  36. { src:"http://i.imgur.com/7AyGv1a.gif", width:60, height:74, title:'ayylmao'},
  37. { src:"http://i.imgur.com/8WGVGYh.gif", width:35, height:59, title:'cyrax'},
  38. { src:"http://i.imgur.com/XNCKzV8.gif", width:40, height:60, title:'respectfulnod'},
  39. { src:"http://i.imgur.com/MMdhwkH.gif", width:40, height:60, title:'cry'},
  40. { src:"http://i.imgur.com/HWYBpFp.gif", width:50, height:60, title:'thom'},
  41. { src:"http://i.imgur.com/kauEfnn.gif", width:50, height:60, title:'marissa'},
  42. { src:"http://i.imgur.com/RRPNiqa.gif", width:50, height:60, title:'reimu'},
  43. { src:"http://i.imgur.com/vETtK.png", width17, height:17, title:'mytinysides'},
  44. { src:"http://i.imgur.com/4wunBBM.png", width:60, height:52, title:'slut'},
  45. { src:"http://i.imgur.com/Gx5wmqn.gif", width:67, height:50, title:'wow2'},
  46. { src:"http://i.imgur.com/vETtK.png", width:37, height:20, title:'mytinysides'},
  47. { src:"http://i.imgur.com/nfDwcil.png", width:40, height:56, title:'gookfood'},
  48. { src:"http://i.imgur.com/WFHNOxP.gif", width:60, height:60, title:'ae86'},
  49. { src:"http://i.imgur.com/bjnH4nN.gif", width:106, height:66, title:'ritsu'},
  50. { src:"http://smashboards.com/attachments/salty-duane-gif.34388/", width:60, height:74, title:'saltyduane'},
  51. { src:"http://s9.postimg.org/7jgdsbfe3/Joey_transparent.png", width:60, height:60, title:'joey'},
  52. { src:"https://i.areyoucereal.com/HGbLpu.gif", width:33, height:50, title:'snoop2'},
  53. { src:"http://i.imgur.com/AiqM7ep.gif", width:53, height:60, title:'kakyoin'},
  54. { src:"http://i.imgur.com/RDP8xDj.gif", width:50, height:60, title:'arthur'},
  55. { src:"http://i.imgur.com/A57Z837.gif", width:50, height:60, title:'clippy'},
  56. { src:"http://i.imgur.com/ojyywy4.gif", width:67, height:50, title:'kirino'},
  57. { src:"http://i.imgur.com/pKXZaQM.gif", width:67, height:50, title:'monkey'},
  58. { src:"http://i.imgur.com/72wnaaG.png", width:67, height:50, title:'hibiki'},
  59. { src:"http://i.imgur.com/EOW60AQ.gif", width:60, height:60, title:'sonic2'},
  60. { src:"http://i.imgur.com/uTUjZpq.png", width:54, height:55, title:'feelsscared'},
  61. { src:"http://i.imgur.com/yzWbdJ9.gif", width:60, height:60, title:'singinganime'},
  62.  
  63. ];
  64. function addEmotes(){
  65. for(var i = 0; i < emotes.length; i += 1){
  66. var parameter = emotes[i];
  67. window.$codes[parameter.title] = $('<img>', parameter)[0].outerHTML;
  68. }
  69. }
  70. //load emotes everytime we connect to a room
  71. //makes sure emotes work even after going to the frontpage and back
  72. window.global.onConnected = function () {
  73. oldOnConnected();
  74. addEmotes();
  75. };
  76. //check if we are already connected and the script just loaded slow
  77. if(typeof(window.userInfo) !== 'undefined' && window.userInfo !== null){
  78. addEmotes();
  79. }