InstaEmotes

New maymays for you to love! Done by Man_of_Feel :^)

当前为 2014-11-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name InstaEmotes
  3. // @namespace http://use.i.E.your.homepage/
  4. // @version 5.8.3
  5. // @description New maymays for you to love! Done by Man_of_Feel :^)
  6. // @match http://instasynch.com/*
  7. // @grant none
  8. // @copyright 2014
  9. // ==/UserScript==
  10.  
  11. //{ src:"", width:, height:, title:''},
  12.  
  13. var oldOnConnected = window.global.onConnected,
  14. emotes = [
  15. { src:"http://i.imgur.com/RpznRYJ.gif", width:40, height:45, title:'yee'},
  16. { src:"http://i.imgur.com/6oThPdS.gif", width:49, height:54, title:'tip'},
  17. { src:"http://i.imgur.com/eYfA30K.png", width:48, height:58, title:'heil'},
  18. { src:"http://i.imgur.com/IADYHCP.png", width:58, height:58, title:'puke'},
  19. { src:"http://i.imgur.com/7AyGv1a.gif", width:60, height:74, title:'ayylmao'},
  20. { src:"http://i.imgur.com/fNkI3M5.gif", width:40, height:60, title:'gigalien'},
  21. { src:"http://i.imgur.com/RgnpAPE.gif", width:45, height:59, title:'ayylien'},
  22. { src:"http://i.imgur.com/jBji5uc.gif", width:43, height:63, title:'alien2'},
  23. { src:"http://i.imgur.com/nfDwcil.png", width:41, height:58, title:'gookfood'},
  24. { src:"http://i.imgur.com/BeaCBjD.png", width:37, height:40, title:'feek'},
  25. { src:"http://i.imgur.com/BeaCBjD.png", width:37, height:40, title:'feeksbadman'},
  26. { src:"http://i.imgur.com/cHKfWEJ.gif", width:68, height:51, title:'4u'},
  27. { src:"http://i.imgur.com/LNkPkIn.png", width:53, height:53, title:'topkek'},
  28. { src:"http://i.imgur.com/AXugRz8.png", width:40, height:50, title:'cunt'},
  29. { src:"http://i.imgur.com/qzKaSUr.png", width:35, height:36, title:'333'},
  30. { src:"http://i.imgur.com/og9In6D.png", width:43, height:40, title:'feelssmug'},
  31. { src:"http://i.imgur.com/HDCgmfx.jpg", width:30, height:50, title:'ragu'},
  32. { src:"http://i.imgur.com/QTWREHQ.png", width:42, height:49, title:'pull'},
  33. { src:"http://i.imgur.com/QTWREHQ.png", width:42, height:49, title:'riptheskin'},
  34. { src:"http://i.imgur.com/YM5gtsJ.png", width:79, height:98, title:'myfuckingsides'},
  35. { src:"http://i.imgur.com/oDLeCCu.gif", width:65, height:60, title:'sun'},
  36. { src:"http://i.imgur.com/tIoQzQX.png", width:34, height:45, title:'yuropoor'}
  37.  
  38. ];
  39.  
  40. function addEmotes(){
  41. for(var i = 0; i < emotes.length; i += 1){
  42. var parameter = emotes[i];
  43. window.$codes[parameter.title] = $('<img>', parameter)[0].outerHTML;
  44. }
  45. }
  46.  
  47. //load emotes everytime we connect to a room
  48. //makes sure emotes work even after going to the frontpage and back
  49. window.global.onConnected = function () {
  50. oldOnConnected();
  51. addEmotes();
  52. };
  53. //check if we are already connected and the script just loaded slow
  54. if(typeof(window.userInfo) !== 'undefined' && window.userInfo !== null){
  55. addEmotes();
  56. }