// ==UserScript==
// @name Tuvaremotes Z
// @namespace Tuvaro
// @version 3.53
// @description New maymays
// @grant none
// @copyright 2016
// @include *://*.instasync.com/r/*
// @include *://instasync.com/r/*
// @match *://*.instasync.com/r/*
// @match *://instasync.com/r/*
// ==/UserScript==
// { src:"", width:, height:, title:''},
// { src:"", width:, height:, name:''},
var emotes = [
{ src:'http://dl.dropboxusercontent.com/u/13049328/robotnik.png', width:64, height:64, title:'peace' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/lepointy.gif', width:64, height:64, title:'pointy' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/rapetime2.png', width:120, height:96, title:'rapehd' },
{ src:'http://i.imgur.com/MCEZvBi.jpg', width:120, height:96, title:'forhim' },
{ src:'http://i.imgur.com/4aGWEjk.jpg', width:80, height:70, title:'howdareyou' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/1414518384612.png', width:80, height:64, title:'harold' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/oil.png', width:64, height:64, title:'oil' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/123jew.jpg', width:87, height:76, title:'123jew' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/6ff.gif', width:160, height:120, title:'getout' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/1367921949649.gif', width:86, height:86, title:'hotdogs' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/diebronyscum.gif', width:96, height:54, title:'brony' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/eggbaby.jpg', width:64, height:64, title:'eggbaby' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/yehaw.jpg', width:90, height:75, title:'yehaw' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/babyjesus.gif', width:96, height:64, title:'babyjesus' },
{ src:'http://i.imgur.com/ZQV1oz3.jpg', width:64, height:50, title:'gamergrill' },
{ src:'http://i.imgur.com/wRyZbgY.jpg', width:72, height:96, title:'loyalty' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tittays.jpg', width:64, height:64, title:'tittays' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/blowit.png', width:90, height:90, title:'blowit' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/cringe2.gif', width:64, height:64, title:'cringehd' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/wimmin.gif', width:80, height:60, title:'wimmin' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/emofdr.png', width:54, height:54, title:'emofdr' },
{ src:'http://i.imgur.com/myhO4eG.png', width:64, height:64, title:'douge' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/ogrelord.png', width:64, height:64, title:'ogrelord' },
{ src:'http://i.imgur.com/WRX3Szn.gif', width:64, height:50, title:'trump' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/feelclub.jpg', width:64, height:77, title:'feelsclub' },
{ src:'http://i.imgur.com/zbBp9vY.png', width:64, height:64, title:'killfrog' },
{ src:'http://i.imgur.com/dCpMFGg.png', width:72, height:96, title:'trooperfrog' },
{ src:'https://dl.dropboxusercontent.com/u/13049328/tuvaremotes/pussyallday.gif', width:100, height:80, title:'dragon' },
{ src:'http://dl.dropboxusercontent.com/u/13049328/tuvaremotes/doggystyle.jpg', width:96, height:54, title:'doggystyle' },
{ src:'http://i.imgur.com/waG9l0D.jpg', width:64, height:64, title:'ultrafrog' },
{ src:'http://https://dl.dropboxusercontent.com/u/13049328/tuvaremotes/realorfake.jpg', width:128, height:52, title:'science' },
{ src:'https://dl.dropboxusercontent.com/u/13049328/tuvaremotes/gucci.gif', width:99, height:60, title:'gucci' },
{ src:'http://i.imgur.com/DfOXbu3.png', width:64, height:64, title:'tuvaro' },
{ src:'http://i.imgur.com/DfOXbu3.png', width:64, height:64, title:'tuv' },
{ src:'https://dl.dropboxusercontent.com/u/13049328/tuvaremotes/mlghd.gif', width:86, height:48, title:'mlghd' },
{ src:'http://i.imgur.com/ZOk0BMd.gifv', width:100, height:80, title:'moneymoney' }
];
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);
}