Homotes

Dont Hurt Me

  1. // ==UserScript==
  2. // @name Homotes
  3. // @namespace Theflyinghobo
  4. // @version 1.18
  5. // @description Dont Hurt Me
  6. // @grant none
  7. // @copyright 2016
  8. // @include *://*.instasync.com/r/*
  9. // @include *://instasync.com/r/*
  10. // @match *://*.instasync.com/r/*
  11. // @match *://instasync.com/r/*
  12. // ==/UserScript==
  13.  
  14. // { src:"", width:, height:, title:''},
  15. // { src:"", width:, height:, name:''},
  16.  
  17.  
  18. var emotes = [
  19. { src:'http://i.imgur.com/fORk0Wt.jpg', width:90, height:80, title:'cwap' },
  20. { src:'http://i.imgur.com/szkGPF1.jpg', width:50, height:70, title:'bapst' },
  21. { src:'http://i.imgur.com/jrHDBkf.jpg', width:64, height:64, title:'banana' },
  22. { src:'http://i.imgur.com/r0VQMa6.jpg', width:96, height:64, title:'haram' },
  23. { src:'http://i.imgur.com/E4EyvAR.jpg', width:64, height:64, title:'noosepepe' },
  24. { src:'http://i.imgur.com/Ho7VPAN.jpg', width:64, height:64, title:'sharkpepe' },
  25. { src:'http://i.imgur.com/caAgvj0.jpg', width:64, height:64, title:'sanicpepe' },
  26. { src:'http://i.imgur.com/SALMjSA.jpg', width:45, height:60, title:'urkel' },
  27. { src:'http://i.imgur.com/RBrFjDi.jpg', width:64, height:64, title:'bernie' },
  28. { src:'http://i.imgur.com/wgnHtH0.jpg', width:60, height:80, title:'sike' },
  29. { src:'http://i.imgur.com/KruUWY4.jpg', width:60, height:36, title:'jeb' },
  30. { src:'http://i.imgur.com/DdftYf7.jpg', width:60, height:60, title:'gadget' },
  31. { src:'http://i.imgur.com/9jC8Upu.jpg', width:60, height:60, title:'checkem' },
  32. { src:'http://i.imgur.com/4c8CXar.jpg', width:60, height:60, title:'moist' },
  33. { src:'http://i.imgur.com/2Yw8sKo.jpg', width:60, height:60, title:'nemo' },
  34. { src:'http://i.imgur.com/LIv8ZLK.gif', width:60, height:60, title:'cis' },
  35. { src:'http://i.imgur.com/Tfi09dN.jpg', width:60, height:45, title:'wonka' },
  36. { src:'http://i.imgur.com/kbpku7n.gif', width:60, height:60, title:'javert' },
  37. { src:'http://i.imgur.com/B91p3ZC.jpg', width:69, height:90, title:'skip' },
  38. { src:'http://i.imgur.com/BfRcyTx.gif', width:70, height:40, title:'mfdoom' },
  39. { src:'http://i.imgur.com/zuLpFX4.jpg', width:55, height:55, title:'halal' },
  40. { src:'http://i.imgur.com/rOVG687.jpg', width:55, height:55, title:'zack' },
  41. { src:'http://i.imgur.com/rMTZNZN.jpg', width:55, height:55, title:'spiderpepe' },
  42. { src:'http://i.imgur.com/ry3xqAs.png', width:55, height:55, title:'hdpepe' },
  43. { src:'http://i.imgur.com/otH6mdE.png', width:55, height:55, title:'spongepepe' },
  44. { src:'http://i.imgur.com/Vsugc3y.jpg', width:55, height:55, title:'tardpepe' },
  45. { src:'http://i.imgur.com/w2cRn89.jpg', width:55, height:55, title:'firepepe' },
  46. { src:'http://i.imgur.com/aUKE6mp.jpg', width:55, height:55, title:'corruptpepe' },
  47. { src:'http://i.imgur.com/fgKD7RK.jpg', width:55, height:55, title:'heisenpepe' },
  48. { src:'http://i.imgur.com/VAuvmXM.jpg', width:55, height:55, title:'neonpepe' },
  49. { src:'http://i.imgur.com/lCWOFKI.jpg', width:55, height:40, title:'marco' },
  50. { src:'http://i.imgur.com/PnBRsJj.jpg', width:55, height:40, title:'carly' },
  51. { src:'http://i.imgur.com/9NEvEvP.jpg', width:55, height:40, title:'turtle' },
  52. { src:'http://i.imgur.com/hvscsyR.jpg', width:90, height:90, title:'zach' },
  53. { src:'http://i.imgur.com/pDXKU7f.jpg', width:90, height:90, title:'crunk' },
  54. { src:'http://i.imgur.com/vLqhT0w.jpg', width:60, height:80, title:'fred' },
  55. ];
  56.  
  57. function addEmotes(){
  58. emotes.forEach(function(emote){
  59. window.$codes[emote.title || emote.name] = $('<img>', emote)[0].outerHTML;
  60. });
  61. }
  62. function main(){
  63. if(!window.$codes || Object.keys(window.$codes).length === 0){
  64. setTimeout(main, 75);
  65. }else{
  66. addEmotes();
  67. }
  68. }
  69. if (window.document.readyState === 'complete') {
  70. main();
  71. } else {
  72. window.addEventListener('load', main, false);
  73. }