Hitbox Emotes

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

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

  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 and mod badges 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.4
  10. // ==/UserScript==
  11.  
  12. function style_init()
  13. {
  14. var CustomStyle = document.createElement('link');
  15. CustomStyle.setAttribute('rel', 'stylesheet');
  16. CustomStyle.setAttribute('type', 'text/css');
  17. CustomStyle.setAttribute('href', 'https://dl.dropboxusercontent.com/u/23313911/css/CustomStyle.css')
  18. var head = document.getElementsByTagName('head')[0];
  19. if (head) {
  20. head.appendChild(CustomStyle);
  21. console.log("Hitbox Emotes: Custom style loaded")
  22. }
  23. }
  24.  
  25. function javascript_init()
  26. {
  27. var MainEmotes = document.createElement('script');
  28. MainEmotes.type = 'text/javascript';
  29. MainEmotes.src = "https://dl.dropboxusercontent.com/u/23313911/javascript/MainEmotes.js";
  30. var BackupEmotes = document.createElement('script');
  31. BackupEmotes.type = 'text/javascript';
  32. BackupEmotes.src = "https://cdn.rawgit.com/GamingTom/11142192/raw/fdd206a1a9e892a0f0c55f1de253981d980fa0e8/MainEmotes.js";
  33. var CustomEmotes = document.createElement('script');
  34. CustomEmotes.type = 'text/javascript';
  35. CustomEmotes.src = "https://dl.dropboxusercontent.com/u/23313911/javascript/CustomEmotes.js";
  36. var CustomBadges = document.createElement('script');
  37. CustomBadges.type = 'text/javascript';
  38. CustomBadges.src = "https://dl.dropboxusercontent.com/u/23313911/javascript/CustomBadges.js";
  39. var head = document.getElementsByTagName('head')[0];
  40. if (head) {
  41. head.appendChild(MainEmotes);
  42. console.log("Hitbox Emotes: Main emotes loaded from " + MainEmotes.src)
  43. head.appendChild(BackupEmotes);
  44. console.log("Hitbox Emotes: Backup emotes loaded from " + BackupEmotes.src)
  45. head.appendChild(CustomEmotes);
  46. console.log("Hitbox Emotes: Custom emotes loaded from " + CustomEmotes.src)
  47. head.appendChild(CustomBadges);
  48. console.log("Hitbox Emotes: Custom badges loaded")
  49. }
  50. }
  51.  
  52. style_init();
  53. window.onload = javascript_init;