Hitbox Emotes

The original Hitbox Emotes script with ober 13,000 emotes! - Request your custom emotes here!

当前为 2014-08-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Hitbox Emotes
  3. // @namespace Hitbox Emotes
  4. // @description The original Hitbox Emotes script with ober 13,000 emotes! - Request your custom emotes here!
  5. // @include *.hitbox.tv/*
  6. // @include *.vgstreams.com/*
  7. // @include *.multistream.xuzia.com/*
  8. // @icon http://i.imgur.com/fa1Kkku.png
  9. // @version 1.3.3
  10. // ==/UserScript==
  11.  
  12. function hitbox_init()
  13. {
  14. console.log("Hitbox Emotes: Main script loaded.")
  15.  
  16. var MainEmotes = document.createElement('script');
  17. MainEmotes.type = 'text/javascript';
  18. MainEmotes.src = "https://dl.dropboxusercontent.com/u/23313911/MainEmotes.js";
  19. var BackupEmotes = document.createElement('script');
  20. BackupEmotes.type = 'text/javascript';
  21. BackupEmotes.src = "https://cdn.rawgit.com/GamingTom/11142192/raw/fdd206a1a9e892a0f0c55f1de253981d980fa0e8/MainEmotes.js";
  22. var CustomEmotes = document.createElement('script');
  23. CustomEmotes.type = 'text/javascript';
  24. CustomEmotes.src = "https://dl.dropboxusercontent.com/u/23313911/CustomEmotes.js";
  25. var style = document.createElement('style');
  26. style.textContent = ".chatBody .smiley {max-height: 32px !important;width: auto !important;height: auto !important;}";
  27. var head = document.getElementsByTagName('head')[0];
  28. if (head) {
  29. head.appendChild(MainEmotes);
  30. console.log("Hitbox Emotes: Main emotes loaded from " + MainEmotes.src)
  31. head.appendChild(BackupEmotes);
  32. console.log("Hitbox Emotes: Backup emotes loaded from " + BackupEmotes.src)
  33. head.appendChild(CustomEmotes);
  34. console.log("Hitbox Emotes: Custom emotes loaded from " + CustomEmotes.src)
  35. head.appendChild(style);
  36. console.log("Hitbox Emotes: Custom style loaded")
  37. }
  38. }
  39.  
  40.  
  41. window.onload = hitbox_init;