DwarfTyrone shared Script

Custom Emotes

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

  1. /*$$$$$$ /$$$$$$ /$$$$$$
  2. | $$__ $|_ $$_//$$__ $$
  3. | $$ \ $$ | $$ | $$ \__/
  4. | $$$$$$$ | $$ | $$ /$$$$
  5. | $$__ $$ | $$ | $$|_ $$
  6. | $$ \ $$ | $$ | $$ \ $$
  7. | $$$$$$$//$$$$$| $$$$$$/
  8. |_______/|______/\______/
  9. /$$$$$$$ /$$ /$$$$$$ /$$$$$$ /$$ /$$
  10. | $$__ $| $$ /$$__ $$/$$__ $| $$ /$$/
  11. | $$ \ $| $$ | $$ \ $| $$ \__| $$ /$$/
  12. | $$$$$$$| $$ | $$$$$$$| $$ | $$$$$/
  13. | $$__ $| $$ | $$__ $| $$ | $$ $$
  14. | $$ \ $| $$ | $$ | $| $$ $| $$\ $$
  15. | $$$$$$$| $$$$$$$| $$ | $| $$$$$$| $$ \ $$
  16. |_______/|________|__/ |__/\______/|__/ \__/
  17. /$$ /$$/$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
  18. | $$$ | $|_ $$_//$$__ $$/$$__ $$/$$__ $$
  19. | $$$$| $$ | $$ | $$ \__| $$ \__| $$ \ $$
  20. | $$ $$ $$ | $$ | $$ /$$$| $$ /$$$| $$$$$$$$
  21. | $$ $$$$ | $$ | $$|_ $| $$|_ $| $$__ $$
  22. | $$\ $$$ | $$ | $$ \ $| $$ \ $| $$ | $$
  23. | $$ \ $$/$$$$$| $$$$$$| $$$$$$| $$ | $$
  24. |__/ \__|______/\______/ \______/|__/ |_*/
  25.  
  26.  
  27.  
  28. // ==UserScript==
  29. // @name DwarfTyrone shared Script
  30. // @namespace Rooms
  31. // @version 0.27
  32. // @description Custom Emotes
  33. // @grant none
  34. // @copyright 2015
  35. // @include *http://*.instasynch.com*
  36. // @include *http://instasynch.com*
  37. // @include *http://*.instasync.com*
  38. // @include *http://instasync.com*
  39. // ==/UserScript==
  40.  
  41. // { src:"", width:, height:, title:''},
  42. // { src:"", width:, height:, name:''},
  43.  
  44.  
  45. var emotes = [
  46. //old dwarfmemes
  47. { src:"https://i.ytimg.com/vi/Z6gG3tKDBlk/maxresdefault.jpg", width:100, height:60, title:'doit'},
  48. { src:"https://wwcdn.weddingwire.com/wedding/1120001_1125000/1123438/thumbnails/400x400_1346783188237-partyhard.jpg", width:110, height:110, title:'partyhard'},
  49. { src:"http://i.imgur.com/YqdnTBX.jpg", width:100, height:100, title:'bigblacknigga'},
  50. { src:"http://i.imgur.com/RFlgdxc.gif", width:90, height:120, title:'lipsuckin'},
  51. { src:"https://i.imgur.com/e59lUCu.gif", width:220, height:200, title:'bigblackgif'},
  52. { src:"http://i.imgur.com/c1hMV16.jpg", width:100, height:100, title:'fuckboy'},
  53. { src:"https://steamcommunity.com//economy/emoticon/:dappershark:", width:18, height:18, title:'dappershark'},
  54. { src:"http://images-cdn.moviepilot.com/image/upload/c_fill,h_296,w_480/t_mp_quality/screen-shot-2015-02-18-at-4-37-30-pm-the-russian-sleep-experiment-is-the-freakiest-story-ever-told-but-is-it-true-png-267188.jpg", width:120, height:100, title:'sleep'},
  55. { src:"https://i.imgur.com/Df8bSz6.gif", width:150, height:115, title:'snieg'},
  56. { src:"http://i.imgur.com/pm2jbj7.gif", width:150, height:94, title:'sack'},
  57. { src:"https://i.imgur.com/HdzRq4d.gif", width:125, height:100, title:'cut'},
  58. { src:"https://i.imgur.com/KlabckX.png", width:85, height:85, title:'tramplin'},
  59. { src:"http://images-cdn.moviepilot.com/image/upload/c_fill,h_296,w_480/t_mp_quality/screen-shot-2015-02-18-at-4-37-30-pm-the-russian-sleep-experiment-is-the-freakiest-story-ever-told-but-is-it-true-png-267188.jpg", width:1920, height:1280, title:'youaskedforthis'},
  60. { src:"https://i.imgur.com/09J9qW6.gif", width:80, height:60, title:'hikevin'},
  61. { src:"http://www.arigato.heisi.at/wcf/images/smilies/pusheen_hello.png", width:50, height:65, title:'hi'},
  62. //dipmotes
  63. { src:"http://i.imgur.com/wAYlycr.gif", width:50, height:49, title:'oooo'},
  64. { src:"http://i.imgur.com/ElR7zjL.png", width:50, height:50, title:'fsjal'},
  65. { src:"http://i.imgur.com/KXuKlX1.png", width:50, height:50, title:'post'},
  66. { src:"http://i.imgur.com/PCnx2sN.jpg", width:55, height:50, title:'uoykcuf'},
  67. //twat
  68. { src:"https://i.imgur.com/aXTehuF.jpg", width:185, height:250, title:'nagitwat'},
  69. { src:"https://i.imgur.com/o80OvsD.jpg", width:75, height:75, title:'danktwat'},
  70. //retired remotes
  71. //{ src:"http://i.imgur.com/k9xpUve.gif", width:100, height:100, title:'thefuck'},
  72. //{ src:"http://i.imgur.com/llw7y4f.gif", width:100, height:100, title:'canteven'},
  73. //{ src:"http://i.imgur.com/5MHy4wV.gif", width:95, height:70, title:'drunktwat'},
  74. //{ src:"http://i.imgur.com/y5vqwSl.jpg", width:56, height:75, title:'ohfuck'},
  75. //{ src:"http://i.imgur.com/L1ydcJP.gif", width:70, height:70, title:'lolilol'},
  76. //{ src:"http://i.imgur.com/8bGGKJL.gif", width:100, height:70, title:'loafening'},
  77. //{ src:"http://i.imgur.com/qVMBTzs.jpg", width:70, height:70, title:'bait'},
  78. //{ src:"http://i.imgur.com/wokwDxH.jpg", width:74, height:70, title:'rlytho'},
  79. //{ src:"hhttp://i.imgur.com/siA1Cve.gif", width:63, height:70, title:'jonstop'},
  80. //{ src:"http://i.imgur.com/E8Es0xC.jpg", width:217, height:70, title:'victory'},
  81. //{ src:"http://i.imgur.com/ELNtniv.png", width:70, height:68, title:'toplol'},
  82. //{ src:"http://i.imgur.com/m2jM85j.png", width:72, height:70, title:'toplel'},
  83. //{ src:"http://i.imgur.com/tQUFueD.gif", width:67, height:70, title:'delectable'},
  84. //{ src:"http://i.imgur.com/belpqK0.gif", width:250, height:250, title:'mindcrush'},
  85. //{ src:"http://i.imgur.com/2YOG5cO.gif", width:90, height:60, title:'judenpls'},
  86. ];
  87. function addEmotes(){
  88. emotes.forEach(function(emote){
  89. window.$codes[emote.title || emote.name] = $('<img>', emote)[0].outerHTML;
  90. });
  91. }
  92.  
  93. function main(){
  94. if(!window.$codes || Object.keys(window.$codes).length === 0){
  95. setTimeout(main, 75);
  96. }else{
  97. addEmotes();
  98. }
  99. }
  100. if (window.document.readyState === 'complete') {
  101. main();
  102. } else {
  103. window.addEventListener('load', main, false);
  104. }