whatis4chan

dans

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

// ==UserScript==
// @name         whatis4chan
// @namespace    http://use.i.E.your.homepage/
// @version      0.01
// @description  dans
// @match        http://old.instasync.com/rooms/v4c
// @grant        none
// @copyright    2015
// ==/UserScript==
  
var oldOnConnected = window.global.onConnected,
    emotes = [
   
    { src:"http://i.imgur.com/Uf2bQIB.gif", width:40, height:67, title:'dans'},

   ];
 
function addEmotes(){
    for(var i = 0; i < emotes.length; i += 1){
        var parameter = emotes[i];
        window.$codes[parameter.title] = $('<img>', parameter)[0].outerHTML;
    }
}
 
//
window.global.onConnected = function () {
    oldOnConnected();
    addEmotes();
};
//
 if(typeof(window.userInfo) !== 'undefined' && window.userInfo !== null){
    addEmotes();
}