Remotes

Memes

目前为 2015-09-03 提交的版本。查看 最新版本

// ==UserScript==
// @name         Remotes
// @namespace    Intended for Unoeme's
// @version      0.16
// @description  Memes
// @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:"http://i.imgur.com/08e85B9.gif", width:67, height:50, title:'10'},
    { src:"http://i.imgur.com/mkZbyMJ.jpg", width:98, height:55, title:'4u'},
    { src:"http://i.imgur.com/7lOShaN.jpg", width:50, height:50, title:'bait'},
    { src:"http://i.imgur.com/Wqoqu4Y.jpg", width:98, height:55, title:'bigguy'},
    { src:"http://i.imgur.com/6irHkZQ.gif", width:46, height:55, title:'canteven'},
    { src:"http://i.imgur.com/e7b4yDj.gif", width:61, height:50, title:'cena'},
    { src:"http://i.imgur.com/hIGuhgF.png", width:62, height:50, title:'damagecontrol'},
    { src:"http://i.imgur.com/GpaV0TK.gif", width:48, height:60, title:'delectable'},
    { src:"http://i.imgur.com/SKy8E4s.gif", width:75, height:55, title:'drunktwat'},
    { src:"http://i.imgur.com/swU3vZO.jpg", width:37, height:50, title:'hi'},
    { src:"http://i.imgur.com/o9Mq4pX.gif", width:45, height:50, title:'jonstop'},
    { src:"http://i.imgur.com/p8U2Wxl.gif", width:76, height:50, title:'judenpls'},
    { src:"http://i.imgur.com/jtey67k.gif", width:68, height:50, title:'kick'},
    { src:"http://i.imgur.com/28tuY4J.gif", width:72, height:50, title:'loafening'},
    { src:"http://i.imgur.com/sYEavuH.gif", width:49, height:50, title:'lolilol'},
    { src:"http://i.imgur.com/PanqfwP.png", width:133, height:45, title:'mystery'},
    { src:"http://i.imgur.com/LYMjTKo.jpg", width:41, height:55, title:'ohfuck'},
    { src:"http://i.imgur.com/udh484q.jpg", width:63, height:60, title:'rlytho'},
    { src:"http://i.imgur.com/cwk6hiK.png", width:57, height:55, title:'shitnigger'},
    { src:"http://i.imgur.com/mmdFI44.png", width:52, height:50, title:'toplel'},
    { src:"http://i.imgur.com/zOThS9F.jpg", width:68, height:50, title:'trump'},
    { src:"http://i.imgur.com/BS1jpiX.png", width:50, height:50, name:'twaticus'},
    { src:"http://i.imgur.com/o9Mo1zk.jpg", width:140, height:45, title:'victory'},
    { src:"http://i.imgur.com/h6qHwAC.jpg", width:75, height:55, title:'wowremyourehuge'},
    ];

    
    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);
}