Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @id
- // @name Normlpeople script
- // @version 134 Jan,03 ,2013
- // @author Shinypony
- // @description This script is for the emotes in the normlpeople synchtube.
- // @include http://www.synchtube.com/r/normlpeople*
- // @run-at document-end
- // ==/UserScript==
- /**********************************************
- Add here your Javascript code.
- To debug your code use Preview mode and
- debug betterinternetuserscript.js using
- Firebug/other debugger.
- **********************************************/
- (function(){
- document.addEventListener("DOMContentLoaded", function(){
- var facecodes={
- ":angel:":'<img src="" width="80" height="80" title="angel">',
- ":applebloom:":'<img src="http://i.imgur.com/t0IuE.png" width="62" height="80" title="applebloom">',
- ":applefritter:":'<img src="http://i.imgur.com/71ZTs.png" width="76" height="80" title="applefritter">',
- ":applejack:":'<img src="http://i.imgur.com/DPlMs.png" width="71" height="80" title="applejack">',
- ":berrypunch:":'<img src="http://i.imgur.com/CVy1q.png" width="96" height="60" title="berrypunch">',
- ":goodship:":'<img src="http://i.imgur.com/ZbcQq.png" width="90" height="68" title="goodship">',
- ":bestship:":'<img src="http://i.imgur.com/xWlE944.png" title="bestship">',
- ":bigmacintosh:":'<img src="http://i.imgur.com/g6dus.png" width="73" height="80" title="bigmacintosh">',
- ":celestia:":'<img src="http://i.imgur.com/djo0G.jpg" width="100" height="42" title="celestia">',
- ":cheerilee:":'<img src="http://i.imgur.com/hn7Xg.png" width="125" height="64" title="cheerilee">',
- ":cheeselegs:":'<img src="http://i.imgur.com/UnOk0.png" width="90" height="51" title="cheeselegs">',
- ":derpyhooves:":'<img src="http://i.imgur.com/lzyq6.png" width="80" height="80" title="derpyhooves">',
- ":fluttershy:":'<img src="http://i.imgur.com/0FJJx.png" width="80" height="68"title="fluttershy">',
- ":gilda:":'<img src="http://i.imgur.com/alupK.png" width="107" height="90" title="gilda">',
- ":goldenharvest:":'<img src="http://i.imgur.com/4JTeo.png" width="98" height="60" title="goldenharvest">',
- ":grannysmith:":'<img src="http://i.imgur.com/dKANG.png" width="69" height="90" title="grannysmith">',
- ":littlestrongheart:":'<img src="http://i.imgur.com/WAGn1.jpg" width="83" height="100" title="littlestrongheart">',
- ":luna:":'<img src="http://i.imgur.com/5L0vn.png" width="90" height="56" title="luna">',
- ":lyraheartstrings:":'<img src="http://i.imgur.com/AIkhlpT.png" title="lyraheartstrings">',
- ":minty:":'<img src="http://i.imgur.com/MPUef.png" width="78" height="80" title="minty">',
- ":minuette:":'<img src="http://i.imgur.com/fTHGe.png" width="81" height="60" title="minuette">',
- ":octavia:":'<img src="http://i.imgur.com/9FgpO.png" width="103" height="80" title="octavia">',
- ":pinkiepie:":'<img src="http://i.imgur.com/PlIg4.png" width="78" height="80" title="pinkiepie">',
- ":pipsqueak:":'<img src="http://i.imgur.com/Kceyv.png" width="62" height="80" title="pipsqueak">',
- ":rainbowdash:":'<img src="http://i.imgur.com/KOkiy.png" width="80" height="56" title="rainbowdash">',
- ":rarity:":'<img src="http://i.imgur.com/hN0sg.png" width="80" height="80" title="rarity">',
- ":roseluck:":'<img src="http://i.imgur.com/MHiwz.png" width="104" height="80" title="roseluck">',
- ":royalguard:":'<img src="http://i.imgur.com/ixeLW.png" width="71" height="80" title="royalguard">',
- ":scootaloo:":'<img src="http://i.imgur.com/S6tOq.png" width="72" height="80" title="scootaloo">',
- ":snails:":'<img src="http://i.imgur.com/5dYgz.png" width="74" height="80" title="snails">',
- ":soarin:":'<img src="http://i.imgur.com/RuoMj.png" width="61" height="70" title="soarin">',
- ":spike:":'<img src="http://i.imgur.com/f78IW.png" width="96" height="77" title="spike">',
- ":spitfire:":'<img src="http://i.imgur.com/oRjeX.png" width="74" height="80" title="spitfire">',
- ":sweetiebelle:":'<img src="http://i.imgur.com/lyryF.png" width="67" height="81" title="sweetiebelle">',
- ":trixie:":'<img src="http://i.imgur.com/xxN6cQw.png" title="trixie">',
- ":twilightsparkle:":'<img src="http://i.imgur.com/ER6uH.png" width="80" height="56" title="twilightsparkle">',
- ":twinkleshine:":'<img src="http://i.imgur.com/l7b8j.png" width="68" height="80" title="twinkleshine">',
- ":twist:":'<img src="http://i.imgur.com/9ghcy.png" width="73" height="80" title="twist">',
- ":wub:":'<img src="http://i.imgur.com/tWlGu.gif" width="80" height="76" title="wub">',
- ":zecora:":'<img src="http://i.imgur.com/j0Anw.jpg" width="80" height="80" title="zecora">',
- ":daringdoo:":'<img src="http://i.imgur.com/FVeYx.png" width="80" height="80" title="daringdoo">',
- ":gun:":'<img src="http://i.imgur.com/hzqzF.gif" width="90" height="90" title="gun">',
- // Ponies without emotes:
- // Cancer Pony
- // Carrot Cake
- // Cranky Doodle Donkey
- // Cup Cake
- // Diamond Tiara
- // Pound Cake
- // Pumpkin Cake
- // Screwball
- // Screwloose
- // Shining Armor
- // Silver Spoon
- // Snips
- // Pony and people emotes:
- ":chicken:":'<img src="http://i.imgur.com/WzvS9.png" width="68" height="80" title="chicken">',
- ":correspondent:":'<img src="http://i.imgur.com/7vT7z.png" width="62" height="80" title="correspondent">',
- ":faust:":'<img src="http://i.imgur.com/TSz2m.png" width="80" height="74" title="faust">',
- ":futashy:":'<img src="http://i.imgur.com/i8AGg.png" width="80" height="64" title="futashy">',
- ":pinkamena:":'<img src="http://i.imgur.com/FPFAd.gif" width="73" height="80" title="pinkamena">',
- ":tarastrong:":'<img src="http://i.imgur.com/Cp90O.png" width="80" height="80" title="tarastrong">',
- ":tara:":'<img src="http://i.imgur.com/lxjRu.jpg" width="80: height="80" title="tara">',
- // Autism emotes:
- ":ricky:":'<img src="http://i.imgur.com/N5yvR.jpg" width="80" height="80" title="ricky">',
- ":autism:":'<img src="http://i.imgur.com/yJnky.png" width="70" height="54" title="autism">',
- ":bestbrony:":'<img src="http://i.imgur.com/u5uGd.png" width="80" height="79" title="bestbrony">',
- ":brony:":'<img src="http://i.imgur.com/VOdl7.gif" width="65" height="33" title="brony">',
- ":chrischan:":'<img src="http://i.imgur.com/BAwiN.png" width="60" height="80" title="chrischan">',
- ":cinnamongroove:":'<img src="http://i.imgur.com/JEFMH.png" width="62" height="80" title="cinnamongroove">',
- ":friendshipismagic:":'<img src="http://i.imgur.com/lRrWg.png" width="80" height="80" title="friendshipismagic">',
- ":foamadventure:":'<img src="http://i.imgur.com/OQN9u.png" width="90" height="59" title="foamadventure">',
- ":meelz:":'<img src="http://i.imgur.com/VfMIY.png" width="69" height="73" title=""meelz>',
- ":nathan:":'<img src="http://i.imgur.com/sImry.png" width="63" height="80" title="nathan">',
- ":rainboomcrash:":'<img src="http://i.imgur.com/Den1v.png" width="60" height="60" title="rainboomcrash">',
- // Other emotes:
- ":420:":'<img src="http://i.imgur.com/rMIpu.png" width="80" height="66" title="420">',
- ":america:":'<img src="http://i.imgur.com/yAVSi.png" width="80" height="60" title="america">',
- ":basicmushroom:":'<img src="http://i.imgur.com/hLC1b.png" width="65" height="80" title="basicmushroom">',
- ":baww:":'<img src="http://i.imgur.com/QcmJw.png" width="80" height="64" title="baww">',
- ":bongrips:":'<img src="http://i.imgur.com/mM6FE.png" width="59" height="60" title="bongrips">',
- ":usa:":'<img src="http://i.imgur.com/5Ke6f.gif" width="62" height="70" title="usa">',
- ":clop:":'<img src="http://i.imgur.com/M8aYv.png" width="71" height="80" title="clop">',
- ":coolstorybro:":'<img src="http://i.imgur.com/QITik.png" width="120" height="90" title="coolstorybro">',
- ":cumonstepitup:":'<img src="http://i.imgur.com/RjfKr.gif" width="80" height="56" title="cumonstepitup">',
- ":cupcakes:":'<img src="http://i.imgur.com/LTner.gif" width="80" height="67" title="cupcakes">',
- ":datplot:":'<img src="http://i.imgur.com/x5mxh.png" width="68" height="80" title="datplot">',
- ":facepalm:":'<img src="http://i.imgur.com/phT05.png" width="67" height="80" title="facepalm">',
- ":flutterface:":'<img src="http://i.imgur.com/YuiAj.png" width="69" height="98" title="flutterface">',
- ":fuckthepolice:":'<img src="http://i.imgur.com/nJjCc.png" width="60" height="79" title="fuckthepolice">',
- ":gildamenow:":'<img src="http://i.imgur.com/o42gF.png" width="80" height="59" title="gildamenow">',
- ":go:":'<img src="http://i.imgur.com/Vo97C.gif" width="50" height="38" title="go">',
- ":gottagofast:":'<img src="http://i.imgur.com/koTZA.gif" width="97" height="73" title="gottagofast">',
- ":heilcelestia:":'<img src="http://i.imgur.com/NnX3n.png" width="80" height="71" title="heilcelestia">',
- ":ISHYGDDT:":'<img src="http://i.imgur.com/Bftfr.png" width="80" height="80" title="ISHTGDDT">',
- ":jump:":'<img src="http://i.imgur.com/UPhKb.gif" width="81" height="90" title="jump">',
- ":killmenow:":'<img src="http://i.imgur.com/ses8j.png" width="62" height="80" title="killmenow">',
- ":laughingponywhores:":'<img src="http://i.imgur.com/1w3cJ.png" width="80" height="64" title="laughingponywhores">',
- ":lolcocks:":'<img src="http://i.imgur.com/PWPzE.png" width="80" height="57" title="lolcocks">',
- ":love:":'<img src="http://i.imgur.com/GykMH.png" width="16" height="16" title="love">',
- ":motherland:":'<img src="http://i.imgur.com/aC1U7.png" width="58" height="80" title="motherland">',
- ":ohmy:":'<img src="http://i.imgur.com/j1qzz.png" width="74" height="80" title="ohmy">',
- ":rape:":'<img src="http://i.imgur.com/hfzwS.png" width="80" height="70" title="rape">',
- ":sanic:":'<img src="http://i.imgur.com/0CfVp.png" width="46" height="80" title="sanic">',
- ":soon:":'<img src="http://i.imgur.com/i93A3.png" width="88" height="60" title="soon">',
- ":stanza:":'<img src="http://i.imgur.com/Bftfr.png" width="80" height="80" title="stanza">',
- ":stonerrarity:":'<img src="http://i.imgur.com/IWpZF.png" width="95" height="94" title="stonerrarity">',
- ":stonershy:":'<img src="http://i.imgur.com/UIiEr.gif" width="76" height="90" title="stonershy">',
- ":techno:":'<img src="http://i.imgur.com/R79sX.gif" width="150" height="93" title="techno">',
- ":tulpa:":'<img src="http://i.imgur.com/61k96.png" width="84" height="80" title="tulpa">',
- ":whatever:":'<img src="http://i.imgur.com/WrtrT.png" width="60" height="59" title="whatever">',
- ":yourtooslow:":'<img src="http://i.imgur.com/3vanI.gif" width="97" height="73" title="yourtooslow">',
- ":iwatchforthis:":'<img src="http://i.imgur.com/KatYs.png" width="80" height="85" title="iwatchforthis">',
- // Non-pony:
- ":burd:": '<img src="http://i.imgur.com/agpKo.gif" width="35" height="36" title="burd">',
- ":duane:":'<img src="http://i.imgur.com/Z7AK4.gif" width="70" height="47" title="duane">',
- ":mario:":'<img src="http://i.imgur.com/sRoH1.gif" width="37" height="70" title="mario">',
- ":smokeweed:":'<img src="http://i.imgur.com/5rq0l.gif" width="21" height="49" title="smokeweed">',
- ":nigga:":'<img src="http://i.imgur.com/YZZj5.gif" width="75" height="75" title="nigga">',
- ":troll:":'<img src="http://i.imgur.com/w0wFN.png" width="30" height="25" title="troll">',
- "::D:":'<img src="http://i.imgur.com/STgsM.png" width="40" height="40">',
- "D:":'<img src="http://i.imgur.com/oA2l2.gif" width="40" height="40">',
- // New emotes:
- ":ohgodwhat:":'<img src="http://i.imgur.com/xMSMj.png" width="82" height="80" title="ohgodwhat">',
- ":scootaluna:":'<img src="http://i.imgur.com/kOhsl.png" width="72" height="80" title="scootaluna">',
- ":uncle:":'<img src="http://i.imgur.com/X9JVs.png" width="62" height="80" title="uncle">',
- ":greenandpurple:":'<img src="http://i.imgur.com/LM734.png" width="80" height="73" title="greenandpurple">',
- ":ohyou:": '<img src="http://i.imgur.com/d1vK4.png" width="70" height="70" title="ohyou">',
- ":pokerface:": '<img src="http://i.imgur.com/o8C2u.gif" width="54" height="60" title="pokerface">',
- ":1000years:": '<img src="http://i.imgur.com/AnqS7.gif" width="74" height="80" title="1000years">',
- ":snoop:": '<img src="http://i.imgur.com/wywzX.gif" width="50" height="55" title="snoop">',
- ":feel:": '<img src="http://i.imgur.com/vk10K.png" width="65" height="65" title="feel">',
- ":world:": '<img src="http://i.imgur.com/E5I6b.gif" width="65" height="65" title="world">',
- ":daringjump:": '<img src="http://i.imgur.com/IV1ul.gif" width="65" height="65" title="daringjump">',
- ":cocaine:": '<img src="http://i.imgur.com/FUSU9.png" width="65" height="65" title="cocaine">',
- ":douevenlift: ": '<img src="http://i.imgur.com/qw382.gif" width="65" height="65" title="douevenlift">',
- ":lamp: ": '<img src="http://i.imgur.com/vmc2Y.gif" width="65" height="65" title="lamp">',
- // Unused emotes:
- ":dontgiveafuck:":'<img src="http://i.imgur.com/hqGYX.gif" width="100" height="65" title="dontgiveafuck">',
- ":pomf:":'<img src="http://i.imgur.com/a3MoR.png" width="68" height="55" title="pomf">',
- ":bateman:" : '<img src="http://i2.kym-cdn.com/entries/icons/original/000/001/714/doublesguy.jpg" width="40" height="40" title="bateman">',
- ":sweetcelestia:":'<img srcyoureawesome="http://i.imgur.com/zfMGs.png" width="71" height="80" title="sweetcelestia">',
- "epample":"EXAPMLE",
- ":tongue:":'<img src="http://i.imgur.com/w1p4h.gif" width="71" height="80" title="tongue">',
- ":alex:":'<img src="http://i.imgur.com/3f8fo.jpg" width="50" height="50" title="alex">',
- // Colored text:
- ':end:' : '</span>',
- ':e:' : '</span>',
- ':yellow:' : '<span style="color:#eeda3d">',
- ':blue:' : '<span style="color:#088bcb">',
- ':cyan:' : '<span style="color:cyan">',
- ':red:' : '<span style="color:#e52f35">',
- ':green:' : '<span style="color:#4cac37">',
- ':violet:' : '<span style="color:violet">',
- ':purple:' : '<span style="color:#5d2484">',
- ':orange:' : '<span style="color:#ffaf4c">',
- ':brown:' : '<span style="color:brown">',
- ':deeppink:' : '<span style="color:deeppink">',
- ':indigo:' : '<span style="color:indigo">',
- ':pink:' : '<span style="color:pink">',
- ':chocolate:' : '<span style="color:chocolate">',
- ':silver:' : '<span style="color:silver">',
- ':tan:' : '<span style="color:tan">',
- ':implying:' : '<span style="color:#789922">',
- 'shinypony:' : '<span style="color:red; font-weight:bold;">Shiny the Great:</span>',
- 'RaaRaa:' : '<span><font color="#C37FC8">Raa</font><font color="#3BBA41">Raa</font></span>',
- 'Yesfan:' : '<span style="color:#0F1875; font-weight:bold;">Yesfan the Epic:</span>',
- 'Faggot666:' : '<font color="Purple">Faggot</font><font color="Pink">666</font>:',
- 'CMCSpitfire:' : '<span style="font-weight:bold;"><font color=red>C</font><font color=blue>M</font><font color=green>C</font><font color=yellow>S</font><font color=purple>p</font><font color=orange>i</font><font color=red>t</font><font color=blue>f</font><font color=green>i</font><font color=yellow>r</font><font color=purple>e</font>:</span>',
- //Red, Blue, Green, Yellow, Purple, Orange repeat until the end of my
- 'CaptainUSSR:' : '<span style="font-weight:bold;"><font color=red>Captain</font><font color=orange>USSR:</font></span>',
- 'ROBOxHOBO:' : '<span font-weight:bold;"><font color=ff0000>G</font><font color=ff1100>l</font><font color=ff2200>o</font><font color=ff3300>r</font><font color=ff4400>i</font><font color=ff5500>o</font><font color=ff6600>u</font><font color=ff7700>s</font> <font color=ff8800>L</font><font color=ff9900>e</font><font color=ffaa00>a</font><font color=ffbb00>d</font><font color=ffcc00>e</font><font color=ffdd00>r:</font></span>',
- 'HoloDash:' : '<span style="font-weight:bold;"><FONT COLOR="#FF0000">H</FONT><FONT COLOR="#FF8000">o</FONT><FONT COLOR="#FFff00">l</FONT><FONT COLOR="#00ff00">o</FONT><FONT COLOR="#00ff80">D</FONT><FONT COLOR="#00ffff">a</FONT><FONT COLOR="#0080ff">s</FONT><FONT COLOR="#4700ff">h</FONT>:</span>',
- ':s:':'<span class="spoiler">',
- '( ͡° ͜ʖ ͡°)' : '<span style="font-weight:bold;">I am a faggot!</span>',
- //Requests for Normlpeople
- ":twhylight:":'<img src="http://i.imgur.com/xbkwV.jpg" title="twhylight">',
- ":twily":'<img src="http://i.imgur.com/3u8dS.jpg" title="twily">',
- ":nurseredheart:":'<img src="http://i.imgur.com/ogI9c.png" title="nurseredheart">',
- ":colgate:":'<img src="http://i.imgur.com/TJxcQ.png" title="colgate">',
- ":horse:":'<img src="http://i.imgur.com/qHZLk.png" title="horse">',
- ":bonbon:":'<img src="http://i.imgur.com/VMwDOgu.png" title="bonbon">',
- ":bedroomeyes:":'<img src="http://i.imgur.com/rv5GO.png" title="bedroomeyes">',
- ":lie:":'<img src="http://i.imgur.com/N7cZI.gif?1" title="lie">',
- ":spaghettah:":'<img src="http://i.imgur.com/O5FREZW.jpg?1" title="spaghettah">',
- ":stalker:":'<img src="http://i.imgur.com/XL74Z4b.jpg?1" title="stalker">',
- ":removekebab:":'<img src="http://i.imgur.com/9vFH0pb.jpg?1" title="removekebab">',
- ":cuminside:":'<img src="http://i.imgur.com/eBtww.png" title="cuminside">',
- ":science:":'<img src="http://i.imgur.com/LMMxD.png" title="science">',
- ":thunderlane:":'<img src="http://i.imgur.com/RlnqJ.png" title="thunderlane">',
- ":braeburn:":'<img src="http://i.imgur.com/7JqGcpP.png" title="braeburn">',
- ":cadence:":'<img src="http://i.imgur.com/R1F0R.jpg" title="cadence">',
- ":stevenmagnet:":'<img src="http://i.imgur.com/9B76z.png" title="stevenmagnet">',
- ":firefly:":'<img src="http://i.imgur.com/3xo6F.png" title="firefly">',
- ":humans:":'<img src="http://i.imgur.com/JQmps.png" title="humans">',
- ":rage:":'<img src="http://i.imgur.com/PT1XW.png" title="rage">',
- ":flitter:":'<img src="http://i.imgur.com/HvpMf.png" title="flitter">',
- ":cloudchaser:":'<img src="http://i.imgur.com/rvETZ.png" title="cloudchaser">',
- ":hipster:":'<img src="http://i.imgur.com/zpJr8.png" title="hipster">',
- ":headbang:":'<img src="http://i.imgur.com/q3Xvy.gif" width="45" height="70" title="headbang">',
- ":eatadick:":'<img src="http://i.imgur.com/5fmajes.gif" title="eatadick">',
- "somebody":'somepony',
- "anybody":'anypony',
- "everybody":'everypony',
- ":whatswrongwithyou:":'<img src="http://i.imgur.com/DpbFWuC.gif" height="80" title="whatswrongwithyou">',
- ":youreawesome:":'<img src="http://i.imgur.com/B8oZntn.gif" height="80" title="youreawesome">',
- ":icanfaptothis:":'<img src="http://i.imgur.com/9ezcutg.gif" height="80" title="icanfaptothis">',
- ":absodisgus:":'<img src="http://i.imgur.com/gyom0x8.jpg" height="80" title="absodisgus">',
- ":whatthefuck:":'<img src="http://i.imgur.com/l2wKzr3.png" height="80" title="whatthefuck">',
- ":disgonbgud:":'<img src="http://i.imgur.com/8q0eZWD.gif" height="80" title=""disgonbgud>',
- 'CoInPo:' : '<FONT COLOR="red">C</FONT><FONT COLOR="orange">o</FONT><FONT COLOR="yellow">I</FONT><FONT COLOR="green">n</FONT><FONT COLOR="blue">P</FONT><FONT COLOR="purple">o</FONT></HTML>',
- "Yules:":'<font color="#000066">Yules</font>:',
- ":srsly:":'<img src="http://i.imgur.com/JkjULq4.jpg" width="70" height="70" title="srsly">',
- ":shiny:":'<img src="http://i.imgur.com/CuRg6Zd.png" width="60" height="60" title="shiny">',
- ":wat:":'<img src="http://i.imgur.com/4516tS8.jpg" width="70" height="60" title="wat">',
- ":happy:":'<img src="http://i.imgur.com/ZYpEllV.gif" width="60" height="60" title="happy">',
- ":coinpo:":'<img src="http://i.imgur.com/VUj4XDv.png" width="70" height="70" title="coinpo">',
- ":takeitaway:":'<img src="http://i.imgur.com/798tnZN.gif" width="60" height="60" title="takeitaway">',
- ":USA:":'<img src="http://i.imgur.com/tuUTmJp.gif" height="80" title="USA">',
- ":yesfan:":'<img src="http://i.imgur.com/oT0asVF.jpg" height="60" title="yesfan">',
- ":disgusting:":'<img src="http://i.imgur.com/yuv3Ddj.gif" width="70" height="60" title="disgusting">',
- ":murrica:":'<img src="http://i.imgur.com/uXcNagI.png" width="60" height="60" title="murrica">',
- ":germany:":'<img src="http://i.imgur.com/Gf5biyX.png" width="60" height="60" title="germany">',
- ":uk:":'<img src="http://i.imgur.com/7dbbO2f.png" width="60" height="60" title="uk">',
- ":italy:":'<img src="http://i.imgur.com/paPkTp3.png" width="60" height"60" title="italy">',
- ":holodash:":'<img src="http://i.imgur.com/HddvoYi.png" title="holodash">',
- ":seiko:":'<img src="http://i.imgur.com/bLHzd9e.jpg" title="seiko">',
- ":kageshi:":'<img src="http://i.imgur.com/8evWa5S.png" title="kageshi">',
- ":rainbowthrash:":'<img src="http://i.imgur.com/Ry44xtb.png" title="rainbowthrash">',
- ":manebang:":'<img src="http://i.imgur.com/7SiJVVZ.gif" title="manebang">',
- ":fuckingmetal:":'<img src="http://i.imgur.com/qfaNpRE.gif" title="fuckingmetal">',
- ":vinylscratch:":'<img src="http://i.imgur.com/xmBpSfE.jpg" title="vinylscratch">',
- ":hoitytoity:":'<img src="http://i.imgur.com/IxNCsEu.jpg" title="hoitytoity">',
- ":cmc:":'<img src="http://i.imgur.com/mHgnnbQ.png" title="cmc">',
- ":shiggydiggy:":'<img src="http://i.imgur.com/RauQazC.png" title="shiggydiggy">',
- ":robo:":'<img src="http://i.imgur.com/CEdzr5Z.png" width="60" height="60" title="robo">',
- "FinchiBird:" : '<font color="green">Finchi</font><font color="yellow">Burd</font>:',
- ":annoyed:":'<img src="http://i.imgur.com/BDeYb4I.gif" title="annoyed">',
- ":raaraa:":'<img src="http://i.imgur.com/ppaY5Pl.gif" width="60" height="60" title="raaraa">',
- ":startrek:":'<img src="http://i.imgur.com/9kTvVwy.jpg" title="startrek">',
- ":seriously:":'<img src="http://i.imgur.com/QLGkdEn.png" title="seriously">',
- ":spoiler:":'<img src="http://i.imgur.com/qJhAp21.jpg" title="spoiler">',
- ":implyra:":'<img src="http://i.imgur.com/Q2R53C0.gif" title="implyra">',
- ":imafilly:":'<img src="http://i.imgur.com/5gPlRwy.png" title="imafilly">',
- ":ilovecheese:":'<img src="http://i.imgur.com/Uf2saT8.png" title="ilovecheese">',
- //":name here:":'<img src="imgurlink" width="x" height="y" title="name here">',
- }
- var id= document.getElementById("chat_list");
- var chatstring;
- id.addEventListener("DOMNodeInserted", function(event){
- var element = event.target;
- if(element.innerHTML){
- chatstring=element.innerHTML;
- for(var emotes in facecodes){
- var regexps=new RegExp(emotes,'g');
- chatstring = chatstring.replace(regexps,facecodes[emotes]);
- }
- element.innerHTML=chatstring;
- }
- });
- }, false);
- })();
- function loadjscssfile(filename, filetype){
- if (filetype=="js"){ //if filename is a external JavaScript file
- var fileref=document.createElement('script')
- fileref.setAttribute("type","text/javascript")
- fileref.setAttribute("src", filename)
- }
- else if (filetype=="css"){ //if filename is an external CSS file
- var fileref=document.createElement("link")
- fileref.setAttribute("rel", "stylesheet")
- fileref.setAttribute("type", "text/css")
- fileref.setAttribute("href", filename)
- }
- if (typeof fileref!="undefined")
- document.getElementsByTagName("head")[0].appendChild(fileref)
- }
- //loadjscssfile("myscript.js", "js") //dynamically load and add this .js file
- //loadjscssfile("javascript.php", "js") //dynamically load "javascript.php" as a JavaScript file
- loadjscssfile("https://gist.github.com/raw/4615054/f587d82f7bf800ed0266f4afcc21267ced1c8d9f/norml.css", "css") ////dynamically load and add this .css file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement