Custom Emotes!!!
当前为
// ==UserScript==
// @name JudgeZexion's Custom Emotes
// @namespace Rooms
// @version 1.33
// @description Custom Emotes!!!
// @grant none
// @copyright 2015
// @include *://*.instasynch.com/*
// @include *://instasynch.com/*
// @include *://*.instasync.com/*
// @include *://instasync.com/*
// ==/UserScript==
// { src:"", width:, height:, title:''},
// { src:"", width:, height:, name:''},
var emotes = [
{ src:"https://i.ytimg.com/vi/Z6gG3tKDBlk/maxresdefault.jpg", width:80, height:40, title:'doit'},
{ src:"https://wwcdn.weddingwire.com/wedding/1120001_1125000/1123438/thumbnails/400x400_1346783188237-partyhard.jpg", width:90, height:90, title:'partyhard'},
{ src:"http://i.imgur.com/YqdnTBX.jpg", width:90, height:90, title:'bigblacknigga'},
{ src:"http://i.imgur.com/RFlgdxc.gif", width:120, height:90, title:'lipsuckin'},
{ src:"https://i.imgur.com/e59lUCu.gif", width:100, height:100, title:'lipsuckin'},
];
function addEmotes(){
emotes.forEach(function(emote){
window.$codes[emote.title || emote.name] = $('<img>', emote)[0].outerHTML;
});
}
function main(){
if(!window.$codes || Object.keys(window.$codes).length === 0){
setTimeout(main, 75);
}else{
addEmotes();
}
}
if (window.document.readyState === 'complete') {
main();
} else {
window.addEventListener('load', main, false);
}