Advertisement
Guest User

Hitbox Emotes stupidity fix

a guest
May 13th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Hitbox Emotes
  3. // @namespace    https://twitter.com/gamingtom
  4. // @namespace    https://github.com/GamingTom/HitboxEmotes
  5. // @namespace    https://streamtip.com/h/gamingtom
  6. // @version      1.3.9
  7. // @description  The original Hitbox Emotes script with ober 15,000 emotes! - Request your custom emotes and mod badges here!
  8. // @match        http://www.hitbox.tv/*
  9. // @grant        none
  10. // ==/UserScript==
  11. /* jshint -W097 */
  12. 'use strict';
  13.  
  14. //Feel free to donate! https://streamtip.com/h/gamingtom
  15.  
  16. function style_init() {
  17.   var CustomStyle = document.createElement('link');
  18.   CustomStyle.setAttribute('rel', 'stylesheet');
  19.   CustomStyle.setAttribute('type', 'text/css');
  20.   CustomStyle.setAttribute('href', 'https://dl.dropboxusercontent.com/u/23313911/Hitbox%20Emotes/css/CustomStyle.css');
  21.    
  22.   var head = document.getElementsByTagName('head')[0];
  23.   if (head) {
  24.       head.appendChild(CustomStyle);
  25.     console.log("Hitbox Emotes: Custom style loaded");
  26.   }
  27. }
  28.  
  29. function javascript_init() {   
  30.   var TwitchGlobal = document.createElement('script');
  31.   TwitchGlobal.type = 'text/javascript';
  32.   TwitchGlobal.src = "http://tomdevs.com/h/emotescript/javascript/twitchGlobal.js";
  33.  
  34.   var TwitchSub = document.createElement('script'); //Thanks to the http://twitchemotes.com api!
  35.   TwitchSub.type = 'text/javascript';
  36.   TwitchSub.src = "http://tomdevs.com/h/emotescript/javascript/twitchSub.js";
  37.  
  38.   /*var BackupEmotes = document.createElement('script');
  39.   BackupEmotes.type = 'text/javascript';
  40.   BackupEmotes.src = "https://dl.dropboxusercontent.com/u/23313911/Hitbox%20Emotes/javascript/EmotesBackup.js";*/
  41.  
  42.   var CustomEmotes = document.createElement('script');
  43.   CustomEmotes.type = 'text/javascript';
  44.   CustomEmotes.src = "https://dl.dropboxusercontent.com/u/23313911/Hitbox%20Emotes/javascript/CustomEmotes.js";
  45.  
  46.   var CustomBadges = document.createElement('script');
  47.   CustomBadges.type = 'text/javascript';
  48.   CustomBadges.src = "https://dl.dropboxusercontent.com/u/23313911/Hitbox%20Emotes/javascript/CustomBadges.js";
  49.  
  50.   /*var FourCCBoards = document.createElement('script');
  51.   FourCCBoards.type = 'text/javascript';
  52.   FourCCBoards.src = "http://pastebin.com/raw/U9H5wgGY";
  53.  
  54.   var VGLTeams = document.createElement('script');
  55.   VGLTeams.type = 'text/javascript';
  56.   VGLTeams.src = "";
  57.  
  58.   var FourCCExtra = document.createElement('script');
  59.   FourCCExtra.type = 'text/javascript';
  60.   FourCCExtra.src = "";*/
  61.    
  62.   var head = document.getElementsByTagName('head')[0];
  63.   if (head) {
  64.     head.appendChild(TwitchGlobal);
  65.     console.log("Hitbox Emotes: Global Twitch emotes loaded from " + TwitchGlobal.src);
  66.     head.appendChild(TwitchSub);
  67.     console.log("Hitbox Emotes: Subscriber Twitch emtoes loaded from " + TwitchSub.src);
  68.     //head.appendChild(BackupEmotes);
  69.     //console.log("Hitbox Emotes: Backup emotes loaded from " + BackupEmotes.src); 
  70.     head.appendChild(CustomEmotes);
  71.     console.log("Hitbox Emotes: Custom emotes loaded from " + CustomEmotes.src);
  72.     head.appendChild(CustomBadges);
  73.     //head.appendChild(FourCCBoards);
  74.     //head.appendChild(VGLTeams);
  75.     //head.appendChild(FourCCExtra);
  76.   }
  77. }
  78.  
  79. style_init();
  80. javascript_init();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement