Instasynch emotes loader

adds emotes

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

// ==UserScript==
// @name        Instasynch emotes loader
// @namespace   Bibby
// @description adds emotes
// @source      https://github.com/BibbyTube/Emotes
// @version     1.05
// @license     GPL-3.0
// @author      faqqq
// @grant       none

// @include     http://*.instasynch.com/*
// @include     http://instasynch.com/*

// @icon        http://i.imgur.com/bw2Zthys.jpg
// @icon64      http://i.imgur.com/f3vYHNNs.jpg
// ==/UserScript==

var oldOnConnected = window.global.onConnected,
    emotes = [
    //{ src:"http://i.imgur.com/uWCIsFe.jpg", width:55, height:55, title:'anita'},
    ];

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址