SomeCanadianScript

memes for the cool kids

2015-09-11 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         SomeCanadianScript
// @namespace    SomeCanadianEmotes
// @version      1.0.7
// @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:70, height:70, title:'myboy'},
    { src:"http://i.imgur.com/hv9pLeN.gif", width:65, height:65, title:'jose'},
    { src:"http://i.imgur.com/VBSo8yR.gif", width:70, height:70, title:'ballpark'},
    { src:"http://i.imgur.com/QOVenhw.gif", width:70, height:70, title:'nochance'},
    { src:"http://i.imgur.com/PLqvAyg.gif", width:65, height:65, 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:70, 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:'midge'},
    { 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'},
    { src:"http://i.imgur.com/2gdC6CL.gif", width:65, height:65, title:'charlie'},
    { src:"http://i.imgur.com/Cp8852C.png", width:70, height:75, title:'mademefeel'}
    { src:"http://i.imgur.com/68753q8.jpg", width:65, height:70, title:'inthewater'}
    ];

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