InstaEmotes

New maymays for you to love! Done by Child_of_Feel (MoF)

目前为 2015-01-25 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name InstaEmotes
  3. // @namespace http://use.i.E.your.homepage/
  4. // @version 8.9.6
  5. // @description New maymays for you to love! Done by Child_of_Feel (MoF)
  6. // @match http://instasync.com/*
  7. // @grant none
  8. // @copyright 2014
  9. // ==/UserScript==
  10.  
  11. //oldLoadUserlist = window.loadUserlist; (work with this later)
  12. //{ src:"", width:, height:, title:''},
  13.  
  14. var oldOnConnected = window.global.onConnected,
  15. emotes = [
  16. { src:"http://i.imgur.com/RpznRYJ.gif", width:40, height:45, title:'yee'},
  17. { src:"http://i.imgur.com/niahcKl.gif", width:45, height:35, title:'eey'},
  18. { src:"http://i.imgur.com/uDUO8Nw.gif", width:57, height:45, title:'freedum'},
  19. { src:"http://i.imgur.com/NiMJaW6.png", width:25, height:35, title:'kappa'},
  20. { src:"http://i.imgur.com/yzImse8.png", width:17, height:22, title:'myminisides'},
  21. { src:"http://i.imgur.com/4wunBBM.png", width:60, height:52, title:'slut'},
  22. { src:"http://i.imgur.com/e7agwHG.jpg", width:60, height:59, title:'gojira'},
  23. { src:"http://i.imgur.com/f1ECbQw.png", width:52, height:54, title:'(^:'},
  24. { src:"http://i.imgur.com/f1ECbQw.png", width:52, height:54, title:':^)'},
  25. { src:"http://i.imgur.com/Gx5wmqn.gif", width:67, height:50, title:'wow2'},
  26. { src:"http://i.imgur.com/eUt9Jdj.png", width:45, height:57, title:'dank'},
  27. { src:"http://i.imgur.com/sdhMkvZ.png", width:46, height:56, title:'cofe'},
  28. { src:"http://i.imgur.com/UrrFN9c.gif", width:50, height:61, title:'cia'},
  29. { src:"http://i.imgur.com/RoQiAtP.png", width:43, height:52, title:'expanddong'},
  30. { src:"http://i.imgur.com/8WGVGYh.gif", width:35, height:59, title:'cyrax'},
  31. { src:"http://i.imgur.com/eYfA30K.png", width:49, height:58, title:'heil'},
  32. { src:"http://i.imgur.com/dBYGKLE.png", width:57, height:57, title:'checkem'},
  33. { src:"http://i.imgur.com/7AyGv1a.gif", width:60, height:74, title:'ayylmao'},
  34. { src:"http://i.imgur.com/fNkI3M5.gif", width:40, height:60, title:'gigalien'},
  35. { src:"http://i.imgur.com/RgnpAPE.gif", width:45, height:59, title:'ayylien'},
  36. { src:"http://i.imgur.com/jBji5uc.gif", width:43, height:63, title:'alien2'},
  37. { src:"http://i.imgur.com/nfDwcil.png", width:40, height:56, title:'gookfood'},
  38. { src:"http://i.imgur.com/1ZAz974.jpg", width:45, height:56, title:'jimmies'},
  39. { src:"http://i.imgur.com/BeaCBjD.png", width:37, height:39, title:'feek'},
  40. { src:"http://i.imgur.com/BeaCBjD.png", width:37, height:40, title:'feeksbadman'},
  41. { src:"http://i.imgur.com/cHKfWEJ.gif", width:68, height:51, title:'4u'},
  42. { src:"http://i.imgur.com/4zsobUd.png", width:36, height:61, title:'disgusting'},
  43. { src:"http://i.imgur.com/TvtnuqI.gif", width:70, height:45, title:'yes'},
  44. { src:"http://i.imgur.com/QZ4qCEE.gif", width:68, height:60, title:'calcium'},
  45. { src:"http://i.imgur.com/cHKfWEJ.gif", width:68, height:51, title:'bane'},
  46. { src:"http://i.imgur.com/LNkPkIn.png", width:52, height:52, title:'topkek'},
  47. { src:"http://i.imgur.com/5pDD0HW.gif", width:55, height:55, title:'snab'},
  48. { src:"http://i.imgur.com/DxlIunk.png", width:60, height:60, title:'sweat'},
  49. { src:"http://i.imgur.com/EWhvuNJ.png", width:57, height:55, title:'whores'},
  50. { src:"http://i.imgur.com/qzKaSUr.png", width:36, height:37, title:'333'},
  51. { src:"http://i.imgur.com/HDCgmfx.jpg", width:30, height:50, title:'ragu'},
  52. { src:"http://i.imgur.com/b3ex5cx.png", width:42, height:49, title:'pull'},
  53. { src:"http://i.imgur.com/b3ex5cx.png", width:42, height:49, title:'riptheskin'},
  54. { src:"http://i.imgur.com/YM5gtsJ.png", width:99, height:118, title:'myfuckingsides'},
  55. { src:"http://i.imgur.com/oDLeCCu.gif", width:65, height:60, title:'iamthesun'},
  56. { src:"http://i.imgur.com/GI19OKs.png", width:41, height:45, title:'sanic2'},
  57. { src:"http://i.imgur.com/Wwk7Ce2.jpg", width:41, height:45, title:'haruka'},
  58. { src:"http://i.imgur.com/wAVQL4D.gif", width:60, height:47, title:'wop'},
  59. { src:"http://i.imgur.com/kXXQOwq.png", width:40, height:56, title:'modabuse'},
  60. { src:"http://i.imgur.com/1tzp8ao.png", width:37, height:50, title:'moot'},
  61. { src:"http://i.imgur.com/MkYjmDf.gif", width:60, height:25, title:'( ͡° ͜ʖ ͡°)'},
  62. { src:"http://i.imgur.com/rmQmFCa.png", width:42, height:40, title:'feelssuicidal'},
  63. { src:"http://i.imgur.com/zR8xP2G.png", width:39, height:39, title:'feelsmadman'},
  64. { src:"http://i.imgur.com/zR8xP2G.png", width:39, height:39, title:'feelsmad'},
  65. { src:"http://i.imgur.com/tIoQzQX.png", width:34, height:45, title:'yuropoor'}
  66.  
  67. ];
  68.  
  69. function addEmotes(){
  70. for(var i = 0; i < emotes.length; i += 1){
  71. var parameter = emotes[i];
  72. window.$codes[parameter.title] = $('<img>', parameter)[0].outerHTML;
  73. }
  74. }
  75.  
  76. //load emotes everytime we connect to a room
  77. //makes sure emotes work even after going to the frontpage and back
  78. window.global.onConnected = function () {
  79. oldOnConnected();
  80. addEmotes();
  81. };
  82. //check if we are already connected and the script just loaded slow
  83. if(typeof(window.userInfo) !== 'undefined' && window.userInfo !== null){
  84. addEmotes();
  85. }