Greasy Fork 支持简体中文。

InstaEmotes

New maymays for you to love! Done by Man_of_Feel :^)

目前為 2014-10-25 提交的版本,檢視 最新版本

// ==UserScript==
// @name         InstaEmotes
// @namespace    http://use.i.E.your.homepage/
// @version      5.4
// @description  New maymays for you to love! Done by Man_of_Feel :^)
// @match        http://instasynch.com/*
// @grant        none
// @copyright    2014
// ==/UserScript==

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

var oldOnConnected = window.global.onConnected,
    emotes = [
    
    { src:"http://i.imgur.com/RpznRYJ.gif", width:40, height:45, title:'yee'},
    { src:"http://i.imgur.com/6oThPdS.gif", width:49, height:54, title:'tip'},
    { src:"http://i.imgur.com/Ydd9qtP.png", width:42, height:50, title:'heil'},
    { src:"http://i.imgur.com/IADYHCP.png", width:58, height:58, title:'puke'},
    { src:"http://i.imgur.com/fNkI3M5.gif", width:40, height:60, title:'ayylien'},
    { src:"http://i.imgur.com/fNkI3M5.gif", width:40, height:60, title:'ayy'},
    { src:"http://i.imgur.com/fNkI3M5.gif", width:40, height:60, title:'ayylmao'},
    { src:"http://i.imgur.com/nfDwcil.png", width:41, height:58, title:'gookfood'},
    { src:"http://i.imgur.com/BeaCBjD.png", width:37, height:40, title:'feek'},
    { src:"http://i.imgur.com/BeaCBjD.png", width:37, height:40, title:'feeksbadman'},
    { src:"http://i.imgur.com/cHKfWEJ.gif", width:70, height:53, title:'4u'},
    { src:"http://i.imgur.com/0qGr3WP.png", width:52, height:52, title:'topkek'},
    { src:"http://i.imgur.com/AXugRz8.png", width:39, height:45, title:'cunt'},
    { src:"http://i.imgur.com/qzKaSUr.png", width:35, height:36, title:'333'},
    { src:"http://i.imgur.com/og9In6D.png", width:43, height:40, title:'feelssmug'},
    { src:"http://i.imgur.com/tIoQzQX.png", width:34, height:45, title:'yuropoor'}

    ];

function addEmotes(){
    for(var i = 0; i < emotes.length; i += 1){
        var parameter = emotes[i];
        window.$codes[parameter.title] = $('<img>', parameter)[0].outerHTML;
    }
}

//load emotes everytime we connect to a room
//makes sure emotes work even after going to the frontpage and back
window.global.onConnected = function () {
    oldOnConnected();
    addEmotes();
};
//check if we are already connected and the script just loaded slow
 if(typeof(window.userInfo) !== 'undefined' && window.userInfo !== null){
    addEmotes();
}