Allows the use of Twitch emotes on Hitbox.
当前为
// ==UserScript==
// @name Hitbox Emotes
// @namespace Hitbox Emotes
// @description Allows the use of Twitch emotes on Hitbox.
// @include *.hitbox.tv/*
// @icon http://i.imgur.com/fa1Kkku.png
// @version 1.3.1
// ==/UserScript==
function hitbox_init()
{
console.log("Hitbox Emotes: Main script loaded.")
var MainEmotes = document.createElement('script');
MainEmotes.type = 'text/javascript';
MainEmotes.src = "http://www.hbemotes.x10.mx/v2/emotes"; //Thanks to BitOBytes!
var head = document.getElementsByTagName('head')[0];
if(head) head.appendChild(MainEmotes);
console.log("Hitbox Emotes: Main emotes loaded from " + MainEmotes.src)
var BackupEmotes = document.createElement('script');
BackupEmotes.type = 'text/javascript';
BackupEmotes.src = "https://cdn.rawgit.com/GamingTom/11142192/raw/emotes.js";
var head = document.getElementsByTagName('head')[0];
if(head) head.appendChild(BackupEmotes);
console.log("Hitbox Emotes: Backup emotes loaded from " + BackupEmotes.src)
var CustomEmotes = document.createElement('script');
CustomEmotes.type = 'text/javascript';
CustomEmotes.src = "https://dl.dropboxusercontent.com/u/23313911/emotes.js";
var head = document.getElementsByTagName('head')[0];
if(head) head.appendChild(CustomEmotes);
console.log("Hitbox Emotes: Custom emotes loaded from " + CustomEmotes.src)
}
window.onload = hitbox_init;