// ==UserScript== // @name YoYo Emoticon // @namespace http://www.facebook.com/Yochanc15/ // @description Dung YoYo Emo tren cac mang xa hoi. // @include * // @version 1.0.5 // ==/UserScript== function replaceByClass(className, obj) { if(obj.getElementsByClassName) { var nodes = obj.getElementsByClassName(className); for(i in nodes) { if(typeof(nodes[i].innerHTML)=="string") { changeEmoticon(nodes[i]); } } } } function changeEmoticon(node) { // See More Fix node.innerHTML = node.innerHTML .replace(/"\)/g, '" )'); node.innerHTML = node.innerHTML //Reaction Faces .replace(/:sexy:/g, "<style>.md img { display:inline; } .rageface { visibility:visible; } </style><div id='lol' class='lol'><img src=\'http://www.laymark.com/l/m/m004.gif' title='Sexy' /></div>") .replace(/\:byebye\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m057.gif\' title=\'byebye\' />") .replace(/\:look_down\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m009.gif\' title=\'look_down\' />") .replace(/\:stick\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m095.gif\' title=\'stick\' />") .replace(/\:adore\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m196.gif\' title=\'adore\' />") .replace(/\:chaymau\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m122.gif\' title=\'chaymau\' />") .replace(/\:\"\>/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/embarrassed.gif\' title=\'Embarrased\' />") .replace(/\:beauty\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/beauty.gif\' title=\'beauty\' />") .replace(/\:gach\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/brick.png\' title=\'gach\' />") .replace(/\:pudency\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/pudency.gif\' title=\'pudency\' />") .replace(/\:sosad\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/too_sad.gif\' title=\'sosad\' />") .replace(/\:surrender\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/surrender.gif\' title=\'surrender\' />") .replace(/\:sweat\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/sweat.gif\' title=\'sweat\' />") .replace(/\:nosebleed\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/nosebleed.gif\' title=\'nosebleed\' />") .replace(/\:go\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m043.gif\' title=\'go\' />") .replace(/\:sogood\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m066.gif\' title=\'sogood\' />") .replace(/\:shame\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m197.gif\' title=\'shame\' />") .replace(/\:canny\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m067.gif\' title=\'canny\' />") .replace(/\:shot\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/beat_shot.gif\' title=\'shot\' />") .replace(/\:hungry\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m200.gif\' title=\'hungry\' />") .replace(/\:\)/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://http://www.laymark.com/l/m/m066.gif\' title=\'Smile\' />") .replace(/\:plaster\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m198.gif\' title=\'plaster\' />") .replace(/\:rap\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m036.gif\' title=\'rap\' />") .replace(/\:hang\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m152.gif\' title=\'hang\' />") .replace(/\:\*/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.laymark.com/l/m/m032.gif\' title=\'Kiss\' />") .replace(/\:ops\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/ops.gif\' title=\'ops\' />") .replace(/\:tire\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/tire.gif\' title=\'tire\' />") .replace(/\:bad_smell\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/bad_smelly.gif\' title=\'bad_smell\' />") .replace(/\:brick\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/beat_brick.gif\' title=\'brick\' />") .replace(/\:kool\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/cool.gif\' title=\'kool\' />") .replace(/\:hell_boy\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/hell_boy.gif\' title=\'hell_boy\' />") .replace(/\:oh\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/oh.gif\' title=\'oh\' />") .replace(/\:\(\(/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/cry.gif\' title=\'Cry\' />") .replace(/\:dribble\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/dribble.gif\' title=\'dribble\' />") .replace(/\:waaaht\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/waaaht.gif\' title=\'waaaht\' />") .replace(/\:aboom\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/after_boom.gif\' title=\'aboom\' />") .replace(/\^\:\)\^/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/lay.gif\' title=\'Lay\' />") .replace(/\:fix\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/fix.gif\' title=\'fix\' />") .replace(/\:amazed\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/amazed.gif\' title=\'amazed\' />") .replace(/\:sad\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/sad.gif\' title=\'sad\' />") .replace(/\:hug\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/hug.gif\' title=\'hug\' />") .replace(/\:cheers\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/cheers.gif\' title=\'cheers\' />") .replace(/\-\_\-/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/sleep.gif\' title=\'Sleep\' />") .replace(/\:shitty\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/shit.gif\' title=\'shitty\' />") .replace(/\:what\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/what.gif\' title=\'what\' />") .replace(/\:doubt\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/doubt.gif\' title=\'doubt\' />") .replace(/\:capture\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/capture.gif\' title=\'capture\' />") .replace(/\:confident\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/confident.gif\' title=\'confident\' />") .replace(/\:theft\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/theft.gif\' title=\'theft\' />") .replace(/\:spam\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/spam.gif\' title=\'spam\' />") .replace(/\:ah\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/ah.gif\' title=\'ah\' />") .replace(/\:rofl\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/rofl.gif\' title=\'rofl\' />") .replace(/\:baffle\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/baffle.gif\' title=\'baffle\' />") .replace(/\:choler\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/choler.gif\' title=\'choler\' />") .replace(/\:haha\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/haha.gif\' title=\'haha\' />") .replace(/\:hehe\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/hehe.gif\' title=\'hehe\' />") .replace(/\:smoke\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/smoke.gif\' title=\'smoke\' />") .replace(/\:D/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/big_smile.gif\' title=\'Big Smile\' />") .replace(/\:matrix\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/matrix.gif\' title=\'matrix\' />") .replace(/\:sos\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/sos.gif\' title=\'sos\' />") .replace(/\:spiderman\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/spiderman.gif\' title=\'spiderman\' />") .replace(/\:angry\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/angry.gif\' title=\'angry\' />") .replace(/\:misdoubt\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/misdoubt.gif\' title=\'misdoubt\' />") .replace(/\:mage\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/mage.gif\' title=\'mage\' />") .replace(/\:boss\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/boss.gif\' title=\'boss\' />") .replace(/\:dreaming\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/still_dreaming.gif\' title=\'dreaming\' />") .replace(/\:\-s/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/confuse.gif\' title=\'Confuse\' />") .replace(/\:bike\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/bike.gif\' title=\'bike\' />") .replace(/\:lmao\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/lmao.gif\' title=\'lmao\' />") .replace(/\:bye\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/bye.gif\' title=\'bye\' />") .replace(/\:phone\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/phone.gif\' title=\'phone\' />") .replace(/\:sure\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/sure.gif\' title=\'sure\' />") .replace(/\:ot\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/ot.gif\' title=\'ot\' />") .replace(/\:flame\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/flame.gif\' title=\'flame\' />") .replace(/\:stupid\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/stupid.gif\' title=\'stupid\' />") .replace(/\:doublegun\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/doublegun.gif\' title=\'doublegun\' />") .replace(/\:ban\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/bann.gif\' title=\'ban\' />") .replace(/\:please\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/please.gif\' title=\'please\' />") .replace(/\:boom\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/boom.gif\' title=\'boom\' />") .replace(/\:lol\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/lol.gif\' title=\'lol\' />") .replace(/\:welcome\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/welcome.gif\' title=\'welcome\' />") .replace(/\:puke\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/puke.gif\' title=\'puke\' />") .replace(/\:shit\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/shit.gif\' title=\'shit\' />") .replace(/\:lovemachine\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/lovemachine.gif\' title=\'lovemachine\' />") .replace(/\:runrun\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/Off/runrun.gif\' title=\'runrun\' />") .replace(/\:loveyou\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/loveyou.gif\' title=\'loveyou\' />") .replace(/\:no\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/no.gif\' title=\'no\' />") .replace(/\:yes\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/yes.gif\' title=\'yes\' />") .replace(/\:Birthday\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/Birthday.gif\' title=\'Birthday\' />") .replace(/\:shoot1\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/shoot1.gif\' title=\'shoot1\' />") .replace(/\:band\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/band.gif\' title=\'band\' />") .replace(/\:winner\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://vozforums.com/images/smilies/emos/winner.gif\' title=\'winner\' />") .replace(/\:\+1\:/g, "<style> .md img { display:inline; } .rageface { visibility:visible; } </style><img src=\'http://www.google.com/+1/button/images/icon.png\' title=\'\+1\' />") .replace(/original=\"/g, "src=\""); } function commonInsert(obj) { if(typeof(obj)=="object") { replaceByClass('tweet-text', obj); //Twitter replaceByClass('commentContent', obj); //Facebook replaceByClass('mobile_status', obj); //Facebook replaceByClass('uiStreamMessage', obj); //Facebook replaceByClass('GBThreadMessageRow_Body_Content', obj); //Facebook replaceByClass('UIStory_Message', obj); //Facebook replaceByClass('t', obj); //FunnyJunk replaceByClass('md', obj); //Reddit replaceByClass('commentBody', obj); //FunnyJunk replaceByClass('comment even thread-even depth-1', obj); //MemeBase replaceByClass('commentlist', obj); //MemeBase replaceByClass('displayed', obj); //Can't Remember replaceByClass('reply', obj); //Can't Remember replaceByClass('fbQuestionsPollClickTarget', obj); //Facebook replaceByClass('pas fbQuestionsPollResultsBar', obj); //Facebook replaceByClass('inputboxusr', obj); //Facebook replaceByClass('mvs answerText', obj); //Facebook replaceByClass('fcg', obj); //Can't Remember replaceByClass('fbPhotoCaptionText', obj); //Facebook replaceByClass('uiHeaderTitle', obj); replaceByClass('content', obj); //Various replaceByClass('comment-content', obj); //Various replaceByClass('box_cuerpo', obj); //Various replaceByClass('post-contenido', obj); //Cabron replaceByClass('cuerpocontainer', obj); //Cabron replaceByClass('post-contenedor', obj); //Cabron replaceByClass('highlighted', obj); //Cabron replaceByClass('main', obj); //Cabron replaceByClass('box comment_box', obj); //Cabron replaceByClass('post_content', obj); //tumblr replaceByClass('post', obj); //tumblr replaceByClass('cx-comment-display', obj); replaceByClass('watch-expander yt-uix-expander yt-uix-expander-collapsed', obj); //YouTube replaceByClass('comment-list', obj); //YouTube replaceByClass('comment', obj); //YouTube replaceByClass('comment-text', obj); //YouTube replaceByClass('comment last', obj); //YouTube replaceByClass('a-f-i-W-p', obj); //Google Plus replaceByClass('a-b-f-i-p-R', obj); //Google Plus replaceByClass('wackmsg_new_sender', obj); // Google Plus replaceByClass('wackmsg wackmsgtype_c', obj); //Google Plus replaceByClass('chat_content', obj); // Google Plus replaceByClass('youmsg', obj); //Omegle replaceByClass('logwrapper', obj); //Omegle replaceByClass('logbox', obj); //Omegle replaceByClass('logitem', obj); //Omegle replaceByClass('xg_sprite feed-quote', obj); //Trollr replaceByClass('status-update', obj); //Trollr replaceByClass('content-comment', obj); //Trollr } } function nodeInserted(event) { commonInsert(event.target); } commonInsert(document); document.addEventListener('DOMNodeInserted', function(event) { commonInsert(event.target); }, false);
Mozilla add on,User script,Grease Monkey Script, greasemonkey userscripts, updater userscripts mafia wars userscripts mafia wars autoplayer userscripts mafia wars wall userscripts scripts userscripts travian greasemonkey greasemonkey download greasemonkey facebook greasemonkey tutorial greasemonkey youtube greasemonkey travian greasemonkey chrome greasemonkey mafia wars greasemonkey mafia wars autoplayer
Monday, December 5, 2011
YoYo Emoticon
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment