SomeCanadianScript

memes for the cool kids

07.09.2015 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         SomeCanadianScript
// @namespace    SomeCanadianEmotes
// @version      1.0.1
// @description  memes for the cool kids
// @grant        none
// @copyright    2015
// @include     *://*.instasynch.com/*
// @include     *://instasynch.com/*
// @include     *://*.instasync.com/*
// @include     *://instasync.com/*
// ==/UserScript==

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


var emotes = [
    { src:"http://i.imgur.com/LgMX7Qd.gif", width:60, height:50, title:'myboy'},
    { src:"http://i.imgur.com/hv9pLeN.gif", width:60, height:60, title:'jose'},
    { src:"http://i.imgur.com/VBSo8yR.gif", width:60, height:60, title:'ballpark'},
    { src:"http://i.imgur.com/QOVenhw.gif", width:60, height:60, title:'nochance'},
    { src:"http://i.imgur.com/PLqvAyg.gif", width:60, height:60, title:'noway'},
    { src:"http://i.imgur.com/DRJmmtY.gif", width:60, height:80, title:'coolguy'},
    { src:"http://i.imgur.com/iFxNlWs.gif", width:65, height:75, title:'goforit'},
    { src:"http://i.imgur.com/qjKvhfL.png", width:60, height:60, title:'shake'},
    { src:"http://i.imgur.com/F96U5vU.png", width:65, height:65, title:'diklife'},
    { src:"http://i.imgur.com/7pHwlun.gif", width:60, height:80, title:'stripe'},
    { src:"http://i.imgur.com/3v9H4jN.gif", width:70, height:70, title:'sickbeat'},
    { src:"http://i.imgur.com/ZAcJ8AM.gif", width:60, height:80, title:'heart'},
    { src:"http://i.imgur.com/uYPQZfJ.gif", width:65, height:70, title:'fingerwag'},
    { src:"http://i.imgur.com/08o1MVJ.gif", width:60, height:70, title:'buzzkill'},
    { src:"http://i.imgur.com/eKELHpX.gif", width:60, height:70, title:'laugh'},
    { src:"http://i.imgur.com/1UIV3t1.gif", width:60, height:60, title:'midgedance'},
    { src:"http://i.imgur.com/Z7DcSVF.gif", width:60, height:70, title:'fish'},
    { src:"http://i.imgur.com/DjoziBB.gif", width:60, height:60, title:'alrighty'},
    { src:"http://i.imgur.com/nWA3DIz.gif", width:65, height:60, title:'ooh'},
    { src:"http://i.imgur.com/JKlbFoY.gif", width:65, height:60, title:'turnup'},
    { src:"http://i.imgur.com/OaZYsEx.gif", width:60, height:60, title:'runbow'},
    { src:"http://i.imgur.com/FIy3qY5.gif", width:60, height:60, title:'shake2'},
    ];


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