DwarfTyrone shared Script

Custom Emotes

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

 /*$$$$$$ /$$$$$$ /$$$$$$                     
| $$__  $|_  $$_//$$__  $$                    
| $$  \ $$ | $$ | $$  \__/                    
| $$$$$$$  | $$ | $$ /$$$$                    
| $$__  $$ | $$ | $$|_  $$                    
| $$  \ $$ | $$ | $$  \ $$                    
| $$$$$$$//$$$$$|  $$$$$$/                    
|_______/|______/\______/                     
                                              
                                              
 /$$$$$$$ /$$       /$$$$$$  /$$$$$$ /$$   /$$
| $$__  $| $$      /$$__  $$/$$__  $| $$  /$$/
| $$  \ $| $$     | $$  \ $| $$  \__| $$ /$$/ 
| $$$$$$$| $$     | $$$$$$$| $$     | $$$$$/  
| $$__  $| $$     | $$__  $| $$     | $$  $$  
| $$  \ $| $$     | $$  | $| $$    $| $$\  $$ 
| $$$$$$$| $$$$$$$| $$  | $|  $$$$$$| $$ \  $$
|_______/|________|__/  |__/\______/|__/  \__/
                                              
                                              
 /$$   /$$/$$$$$$ /$$$$$$  /$$$$$$  /$$$$$$   
| $$$ | $|_  $$_//$$__  $$/$$__  $$/$$__  $$  
| $$$$| $$ | $$ | $$  \__| $$  \__| $$  \ $$  
| $$ $$ $$ | $$ | $$ /$$$| $$ /$$$| $$$$$$$$  
| $$  $$$$ | $$ | $$|_  $| $$|_  $| $$__  $$  
| $$\  $$$ | $$ | $$  \ $| $$  \ $| $$  | $$  
| $$ \  $$/$$$$$|  $$$$$$|  $$$$$$| $$  | $$  
|__/  \__|______/\______/ \______/|__/  |_*/ 



// ==UserScript==
// @name         DwarfTyrone shared Script
// @namespace    Rooms
// @version      0.24
// @description  Custom Emotes
// @grant        none
// @copyright    2015
// @include     *http://*.instasynch.com*
// @include     *http://instasynch.com*
// @include     *http://*.instasync.com*
// @include     *http://instasync.com*
// ==/UserScript==

//    { src:"", width:, height:, title:''},
//    { src:"", width:, height:, name:''},


var emotes = [
//old dwarfmemes
    { src:"https://i.ytimg.com/vi/Z6gG3tKDBlk/maxresdefault.jpg", width:100, height:60, title:'doit'},
    { src:"https://wwcdn.weddingwire.com/wedding/1120001_1125000/1123438/thumbnails/400x400_1346783188237-partyhard.jpg", width:110, height:110, title:'partyhard'},
    { src:"http://i.imgur.com/YqdnTBX.jpg", width:100, height:100, title:'bigblacknigga'},
    { src:"http://i.imgur.com/RFlgdxc.gif", width:90, height:120, title:'lipsuckin'},
    { src:"https://i.imgur.com/e59lUCu.gif", width:220, height:200, title:'bigblackgif'},
    { src:"http://i.imgur.com/c1hMV16.jpg", width:100, height:100, title:'fuckboy'},
    { src:"https://steamcommunity.com//economy/emoticon/:dappershark:", width:18, height:18, title:'dappershark'},
    { src:"http://images-cdn.moviepilot.com/image/upload/c_fill,h_296,w_480/t_mp_quality/screen-shot-2015-02-18-at-4-37-30-pm-the-russian-sleep-experiment-is-the-freakiest-story-ever-told-but-is-it-true-png-267188.jpg", width:120, height:100, title:'sleep'},
    { src:"https://i.imgur.com/Df8bSz6.gif", width:150, height:115, title:'snieg'},
    { src:"http://i.imgur.com/pm2jbj7.gif", width:150, height:94, title:'sack'},
    { src:"https://i.imgur.com/HdzRq4d.gif", width:125, height:100, title:'cut'},
    { src:"https://i.imgur.com/KlabckX.png", width:85, height:85, title:'tramplin'},
    { src:"http://images-cdn.moviepilot.com/image/upload/c_fill,h_296,w_480/t_mp_quality/screen-shot-2015-02-18-at-4-37-30-pm-the-russian-sleep-experiment-is-the-freakiest-story-ever-told-but-is-it-true-png-267188.jpg", width:1920, height:1280, title:'youaskedforthis'},
    { src:"https://i.imgur.com/09J9qW6.gif", width:80, height:60, title:'hikevin'},
    { src:"http://www.arigato.heisi.at/wcf/images/smilies/pusheen_hello.png", width:75, height:100, title:'hi'},
//dipmotes
    { src:"https://i.imgur.com/aXTehuF.jpg", width:185, height:250, title:'nagitwat'},
    { src:"http://i.imgur.com/wAYlycr.gif", width:50, height:49, title:'oooo'},
    { src:"http://i.imgur.com/ElR7zjL.png", width:50, height:50, title:'fsjal'},
    { src:"http://i.imgur.com/KXuKlX1.png", width:50, height:50, title:'post'},
    { src:"http://i.imgur.com/PCnx2sN.jpg", width:55, height:50, title:'uoykcuf'},
//retired remotes
    //{ src:"http://i.imgur.com/k9xpUve.gif", width:100, height:100, title:'thefuck'},
    //{ src:"http://i.imgur.com/llw7y4f.gif", width:100, height:100, title:'canteven'},
    //{ src:"http://i.imgur.com/5MHy4wV.gif", width:95, height:70, title:'drunktwat'},
    //{ src:"http://i.imgur.com/y5vqwSl.jpg", width:56, height:75, title:'ohfuck'},
    //{ src:"http://i.imgur.com/L1ydcJP.gif", width:70, height:70, title:'lolilol'},
    //{ src:"http://i.imgur.com/8bGGKJL.gif", width:100, height:70, title:'loafening'},
    //{ src:"http://i.imgur.com/qVMBTzs.jpg", width:70, height:70, title:'bait'},
    //{ src:"http://i.imgur.com/wokwDxH.jpg", width:74, height:70, title:'rlytho'},
    //{ src:"hhttp://i.imgur.com/siA1Cve.gif", width:63, height:70, title:'jonstop'},
    //{ src:"http://i.imgur.com/E8Es0xC.jpg", width:217, height:70, title:'victory'},
    //{ src:"http://i.imgur.com/ELNtniv.png", width:70, height:68, title:'toplol'},
    //{ src:"http://i.imgur.com/m2jM85j.png", width:72, height:70, title:'toplel'},
    //{ src:"http://i.imgur.com/tQUFueD.gif", width:67, height:70, title:'delectable'},
    //{ src:"http://i.imgur.com/belpqK0.gif", width:250, height:250, title:'mindcrush'},
    //{ src:"http://i.imgur.com/2YOG5cO.gif", width:90, height:60, title:'judenpls'},
];
    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);
}