InstaEmotes

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

目前為 2014-12-05 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         InstaEmotes
// @namespace    http://use.i.E.your.homepage/
// @version      6.5.1
// @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/eYfA30K.png", width:48, height:58, title:'heil'},
    { src:"http://i.imgur.com/7AyGv1a.gif", width:60, height:74, title:'ayylmao'},
    { src:"http://i.imgur.com/fNkI3M5.gif", width:40, height:60, title:'gigalien'},
    { src:"http://i.imgur.com/RgnpAPE.gif", width:45, height:59, title:'ayylien'},
    { src:"http://i.imgur.com/jBji5uc.gif", width:43, height:63, title:'alien2'},
    { 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:68, height:51, title:'4u'},
    { src:"http://i.imgur.com/LNkPkIn.png", width:53, height:53, title:'topkek'},
    { src:"http://i.imgur.com/AXugRz8.png", width:40, height:50, title:'cunt'},
    { src:"http://i.imgur.com/qzKaSUr.png", width:35, height:36, title:'333'},
    { src:"http://i.imgur.com/HDCgmfx.jpg", width:30, height:50, title:'ragu'},
    { src:"http://i.imgur.com/QTWREHQ.png", width:42, height:49, title:'pull'},
    { src:"http://i.imgur.com/QTWREHQ.png", width:42, height:49, title:'riptheskin'},
    { src:"http://i.imgur.com/YM5gtsJ.png", width:79, height:98, title:'myfuckingsides'},
    { src:"http://i.imgur.com/oDLeCCu.gif", width:65, height:60, title:'sun'},
    { src:"http://i.imgur.com/iVOmDCI.jpg", width:47, height:47, title:'bueno'},
    { src:"http://i.imgur.com/Wwk7Ce2.jpg", width:41, height:45, title:'haruka'},
    { 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();
}