Saturday, December 4, 2010

Add Kaskus Emoticons On Blogger

,
After I install Yahoo + Plurk emoticons for blogger, I'm adding more emoticons from kaskus. I'm looking for scripts from userscripts.org and found it, but not whole emoticons from kaskus are available. So, I modify the script in order to include all the emoticons. You can copy this script and use it with greasemonkey or chrome:
// Based on the original emoticonsforblogger by Entry44
// Modified by Budi Ariyanto (http://fxbudiariyanto.blogspot.com/)

// FEATURES
// Works only in Compose modes
// Add the emoticons at the end of the text

// TODO
// modify the script to insert the emoticon directly after the cursor
// ==UserScript==
// @name           KasKus Smiley
// @namespace      http://fxbudiariyanto.blogspot.com/
// @description    You can use emoticons in Blogger.
// @include        http://*.blogger.com/post-edit.g?*
// @include        http://*.blogger.com/post-create.g?*
// ==/UserScript==

window.addEventListener("load", function(e) {


function setemoticons(domname)
{
var editbar = document.getElementById(domname);
if (editbar) {

 var buttons = "
";
//only in kaskus
buttons += emoticonButton(":ilovekaskus:", "http://www.kaskus.co.id/images/smilies/s_sm_ilovekaskus.gif");
buttons += emoticonButton(":iluvindo:", "http://www.kaskus.co.id/images/smilies/I-Luv-Indonesia.gif");
buttons += emoticonButton(":kiss:", "http://www.kaskus.co.id/images/smilies/cewek.gif");
buttons += emoticonButton(":maho:", "http://www.kaskus.co.id/images/smilies/s_sm_maho.gif");
buttons += emoticonButton(":najis:", "http://www.kaskus.co.id/images/smilies/najis.gif");
buttons += emoticonButton(":nosara:", "http://www.kaskus.co.id/images/smilies/nosara.gif");
buttons += emoticonButton(":marah:", "http://www.kaskus.co.id/images/smilies/marah.gif");
buttons += emoticonButton(":duka:", "http://www.kaskus.co.id/images/smilies/berduka.gif");
buttons += emoticonButton(":malu:", "http://www.kaskus.co.id/images/smilies/malu.gif");
buttons += emoticonButton(":ngakak:", "http://www.kaskus.co.id/images/smilies/ngakak.gif");
buttons += emoticonButton(":repost:", "http://www.kaskus.co.id/images/smilies/s_sm_repost1.gif");
buttons += emoticonButton(":repost2:", "http://www.kaskus.co.id/images/smilies/s_sm_repost2.gif");
buttons += emoticonButton(":s_up2:", "http://www.kaskus.co.id/images/smilies/sundul.gif");
buttons += emoticonButton(":cendolbig:", "http://www.kaskus.co.id/images/smilies/s_big_cendol.gif");
buttons += emoticonButton(":bata_big:", "http://www.kaskus.co.id/images/smilies/s_big_batamerah.gif");
buttons += emoticonButton(":recsel", "http://www.kaskus.co.id/images/smilies/recseller.gif");
buttons += emoticonButton(":takut:", "http://www.kaskus.co.id/images/smilies/takut.gif");
buttons += emoticonButton(":ngacir:", "http://www.kaskus.co.id/images/smilies/ngacir2.gif");
buttons += emoticonButton(":berjabat:", "http://www.kaskus.co.id/images/smilies/shakehand2.gif");
buttons += emoticonButton(":bingung:", "http://www.kaskus.co.id/images/smilies/bingung.gif");
buttons += emoticonButton(":cekpm:", "http://www.kaskus.co.id/images/smilies/cekpm.gif");
buttons += emoticonButton(":capede:", "http://www.kaskus.co.id/images/smilies/capede.gif");
buttons += emoticonButton(":palu:", "http://www.kaskus.co.id/images/smilies/hammer.gif");
buttons += emoticonButton(":peluk:", "http://www.kaskus.co.id/images/smilies/peluk.gif");
buttons += emoticonButton(":cendoltoast:", "http://www.kaskus.co.id/images/smilies/toastcendol.gif");
buttons += emoticonButton(":hoax:", "http://www.kaskus.co.id/images/smilies/hoax.gif");
buttons += emoticonButton(":cystg:", "http://www.kaskus.co.id/images/smilies/cystg.gif");
buttons += emoticonButton(":dp:", "http://www.kaskus.co.id/images/smilies/dp.gif");
buttons += emoticonButton(":selamat:", "http://www.kaskus.co.id/images/smilies/selamat.gif");
buttons += emoticonButton(":thumbup:", "http://www.kaskus.co.id/images/smilies/jempol1.gif");
buttons += emoticonButton(":thumbup2:", "http://www.kaskus.co.id/images/smilies/jempol2.gif");
buttons += emoticonButton(":jrb:", "http://www.kaskus.co.id/images/smilies/fd_1.gif");
buttons += emoticonButton(":kaskus_bgt:", "http://www.kaskus.co.id/images/smilies/fd_4.gif");
buttons += emoticonButton(":kts:", "http://www.kaskus.co.id/images/smilies/fd_6.gif");
buttons += emoticonButton(":sundul:", "http://www.kaskus.co.id/images/smilies/fd_5.gif");
buttons += emoticonButton(":kacau_thread:", "http://www.kaskus.co.id/images/smilies/fd_8.gif");
buttons += emoticonButton(":cape_de:", "http://www.kaskus.co.id/images/smilies/fd_2.gif");
buttons += emoticonButton(":kaskus___:", "http://www.kaskus.co.id/images/smilies/sumbangan/kaskuslove.gif");
buttons += emoticonButton("::", "http://img148.imageshack.us/img148/4416/tipiav1.gif");

//only in kaskus(small)
buttons += emoticonButton(":cendolb", "http://www.kaskus.co.id/images/smilies/s_sm_cendol.gif");
buttons += emoticonButton(":)b", "http://www.kaskus.co.id/images/smilies/s_sm_smile.gif");
buttons += emoticonButton(":cendols", "http://www.kaskus.co.id/images/smilies/cendols.gif");
buttons += emoticonButton(":ioveindonesias", "http://www.kaskus.co.id/images/smilies/iloveindonesias.gif");
buttons += emoticonButton(":berdukas", "http://www.kaskus.co.id/images/smilies/berdukas.gif");
buttons += emoticonButton(":bingungs", "http://www.kaskus.co.id/images/smilies/bingungs.gif");
buttons += emoticonButton(":najiss", "http://www.kaskus.co.id/images/smilies/najiss.gif");
buttons += emoticonButton(":ilovekaskuss", "http://www.kaskus.co.id/images/smilies/iluvkaskuss.gif");
buttons += emoticonButton(":mads", "http://www.kaskus.co.id/images/smilies/mads.gif");
buttons += emoticonButton(":sundulgans", "http://www.kaskus.co.id/images/smilies/sundulgans.gif");
buttons += emoticonButton(":hammers", "http://www.kaskus.co.id/images/smilies/hammers.gif");
buttons += emoticonButton(":bata", "http://www.kaskus.co.id/images/smilies/s_sm_batamerah.gif");
buttons += emoticonButton(":Yb", "http://www.kaskus.co.id/images/smilies/s_sm_peace.gif");
buttons += emoticonButton(":batas", "http://www.kaskus.co.id/images/smilies/batas.gif");
buttons += emoticonButton(":cekpms", "http://www.kaskus.co.id/images/smilies/cekpms.gif");
buttons += emoticonButton(":capedes", "http://www.kaskus.co.id/images/smilies/capedes.gif");
buttons += emoticonButton(":mahos", "http://www.kaskus.co.id/images/smilies/mahos.gif");
buttons += emoticonButton(":malus", "http://www.kaskus.co.id/images/smilies/malus.gif");
buttons += emoticonButton(":kisss", "http://www.kaskus.co.id/images/smilies/kisss.gif");
buttons += emoticonButton(":ngakaks", "http://www.kaskus.co.id/images/smilies/ngakaks.gif");
buttons += emoticonButton(":takuts", "http://www.kaskus.co.id/images/smilies/takuts.gif");
buttons += emoticonButton(":reposts", "http://www.kaskus.co.id/images/smilies/reposts.gif");

//standard smilies
buttons += emoticonButton(":thumbdown", "http://www.kaskus.co.id/images/smilies/sumbangan/48.gif");
buttons += emoticonButton(":metal:", "http://www.kaskus.co.id/images/smilies/sumbangan/q17.gif");
buttons += emoticonButton(":afro:", "http://www.kaskus.co.id/images/smilies/sumbangan/kribo.gif");
buttons += emoticonButton(":linux2:", "http://www.kaskus.co.id/images/smilies/sumbangan/26.gif");
buttons += emoticonButton(":matabelo:", "http://www.kaskus.co.id/images/smilies/sumbangan/004.gif");
buttons += emoticonButton(":genit:", "http://www.kaskus.co.id/images/smilies/sumbangan/q03.gif");
buttons += emoticonButton(":hi:", "http://www.kaskus.co.id/images/smilies/sumbangan/hi.gif");
buttons += emoticonButton(":linux1:", "http://www.kaskus.co.id/images/smilies/sumbangan/25.gif");
buttons += emoticonButton(":nohope:", "http://www.kaskus.co.id/images/smilies/sumbangan/q11.gif");
buttons += emoticonButton(":norose:", "http://www.kaskus.co.id/images/smilies/sumbangan/35.gif");
buttons += emoticonButton(":)", "http://www.kaskus.co.id/images/smilies/sumbangan/15.gif");
buttons += emoticonButton(":doctor:", "http://www.kaskus.co.id/images/smilies/sumbangan/18.gif");
buttons += emoticonButton(":ngacir:", "http://www.kaskus.co.id/images/smilies/ngacir.gif");
buttons += emoticonButton(":rose:", "http://www.kaskus.co.id/images/smilies/sumbangan/34.gif");
buttons += emoticonButton(":angel:", "http://www.kaskus.co.id/images/smilies/sumbangan/017.gif");
buttons += emoticonButton(":kagets:", "http://www.kaskus.co.id/images/smilies/sumbangan/3.gif");
buttons += emoticonButton(":eek:", "http://www.kaskus.co.id/images/smilies/sumbangan/4.gif");
buttons += emoticonButton(":fuck:", "http://www.kaskus.co.id/images/smilies/sumbangan/fuck-4.gif");
buttons += emoticonButton(":email:", "http://www.kaskus.co.id/images/smilies/sumbangan/43.gif");
buttons += emoticonButton(":ck:", "http://www.kaskus.co.id/images/smilies/sumbangan/kaskuslove.gif");
buttons += emoticonButton(":ricebowl:", "http://www.kaskus.co.id/images/smilies/sumbangan/32.gif");
buttons += emoticonButton(":hammer:", "http://www.kaskus.co.id/images/smilies/sumbangan/8.gif");
buttons += emoticonButton(":buldog:", "http://www.kaskus.co.id/images/smilies/sumbangan/woof.gif");
buttons += emoticonButton(":rolleyes:", "http://www.kaskus.co.id/images/smilies/sumbangan/01.gif");
buttons += emoticonButton(":rainbow:", "http://www.kaskus.co.id/images/smilies/sumbangan/e02.gif");
buttons += emoticonButton(":Phone:", "http://www.kaskus.co.id/images/smilies/sumbangan/41.gif");
buttons += emoticonButton(":gila:", "http://www.kaskus.co.id/images/smilies/sumbangan/crazy.gif");
buttons += emoticonButton(":baby:", "http://www.kaskus.co.id/images/smilies/sumbangan/30.gif");
buttons += emoticonButton(":moon:", "http://www.kaskus.co.id/images/smilies/sumbangan/007.gif");
buttons += emoticonButton(":tai:", "http://www.kaskus.co.id/images/smilies/sumbangan/shit-3.gif");
buttons += emoticonButton(":p", "http://www.kaskus.co.id/images/smilies/sumbangan/6.gif");
buttons += emoticonButton(":exclamati", "http://www.kaskus.co.id/images/smilies/sumbangan/52.gif");
buttons += emoticonButton(":Onigiri:", "http://www.kaskus.co.id/images/smilies/sumbangan/rice.gif");
buttons += emoticonButton(":beer:", "http://www.kaskus.co.id/images/smilies/sumbangan/smiley_beer.gif");
buttons += emoticonButton(":kucing:", "http://www.kaskus.co.id/images/smilies/sumbangan/28.gif");
buttons += emoticonButton(":shutup:", "http://www.kaskus.co.id/images/smilies/sumbangan/5.gif");
buttons += emoticonButton(":breakheart", "http://www.kaskus.co.id/images/smilies/sumbangan/38.gif");
buttons += emoticonButton(":D", "http://www.kaskus.co.id/images/smilies/sumbangan/14.gif");
buttons += emoticonButton(":bingung:", "http://www.kaskus.co.id/images/smilies/bolakbalik.gif");
buttons += emoticonButton(":Peace:", "http://www.kaskus.co.id/images/smilies/sumbangan/005.gif");
buttons += emoticonButton(":heart:", "http://www.kaskus.co.id/images/smilies/sumbangan/37.gif");
buttons += emoticonButton(":o", "http://www.kaskus.co.id/images/smilies/sumbangan/07.gif");
buttons += emoticonButton(":thumbup:", "http://www.kaskus.co.id/images/smilies/sumbangan/47.gif");
buttons += emoticonButton(":tabrakan:", "http://www.kaskus.co.id/images/smilies/tabrakan.gif");
buttons += emoticonButton(":kissmouth", "http://www.kaskus.co.id/images/smilies/sumbangan/36.gif");
buttons += emoticonButton(":(", "http://www.kaskus.co.id/images/smilies/sumbangan/06.gif");
buttons += emoticonButton(":siul:", "http://www.kaskus.co.id/images/smilies/sumbangan/020.gif");
buttons += emoticonButton(":malu:", "http://www.kaskus.co.id/images/smilies/sumbangan/1.gif");
buttons += emoticonButton(":fuck3:", "http://www.kaskus.co.id/images/smilies/sumbangan/fuck-8.gif");
buttons += emoticonButton(":army:", "http://www.kaskus.co.id/images/smilies/sumbangan/24.gif");
buttons += emoticonButton(":Paws:", "http://www.kaskus.co.id/images/smilies/sumbangan/paw.gif");
buttons += emoticonButton(":confused:", "http://www.kaskus.co.id/images/smilies/sumbangan/7.gif");
buttons += emoticonButton(":fuck2:", "http://www.kaskus.co.id/images/smilies/sumbangan/fuck-6.gif");
buttons += emoticonButton(":tv:", "http://www.kaskus.co.id/images/smilies/sumbangan/44.gif");
buttons += emoticonButton(":fm:", "http://www.kaskus.co.id/images/smilies/smileyfm329wj.gif");
buttons += emoticonButton(":medicine:", "http://www.kaskus.co.id/images/smilies/sumbangan/33.gif");
buttons += emoticonButton(":kissing:", "http://www.kaskus.co.id/images/smilies/sumbangan/014.gif");
buttons += emoticonButton(":wowcantik", "http://www.kaskus.co.id/images/smilies/sumbangan/001.gif");
buttons += emoticonButton(":mad:", "http://www.kaskus.co.id/images/smilies/sumbangan/12.gif");
buttons += emoticonButton(":flower:", "http://www.kaskus.co.id/images/smilies/sumbangan/e03.gif");
buttons += emoticonButton(":clock:", "http://www.kaskus.co.id/images/smilies/sumbangan/42.gif");
buttons += emoticonButton("amazed:", "http://www.kaskus.co.id/images/smilies/sumbangan/amazed.gif");
buttons += emoticonButton(":coffee:", "http://www.kaskus.co.id/images/smilies/sumbangan/31.gif");
buttons += emoticonButton(":sun:", "http://www.kaskus.co.id/images/smilies/sumbangan/008.gif");
buttons += emoticonButton(":bikini:", "http://www.kaskus.co.id/images/smilies/sumbangan/vana-bum-vanaweb-dot-com.gif");
buttons += emoticonButton(":cool:", "http://www.kaskus.co.id/images/smilies/sumbangan/05.gif");
buttons += emoticonButton(":rain:", "http://www.kaskus.co.id/images/smilies/sumbangan/60.gif");
buttons += emoticonButton(":present:", "http://www.kaskus.co.id/images/smilies/sumbangan/40.gif");
buttons += emoticonButton(":kimpoi", "http://www.kaskus.co.id/images/smilies/sumbangan/smiley_couple.gif");
buttons += emoticonButton(":anjing:", "http://www.kaskus.co.id/images/smilies/sumbangan/29.gif");
buttons += emoticonButton(":think:", "http://www.kaskus.co.id/images/smilies/sumbangan/006.gif");
buttons += emoticonButton(":table:", "http://www.kaskus.co.id/images/smilies/sumbangan/39.gif");
buttons += emoticonButton(";)", "http://www.kaskus.co.id/images/smilies/sumbangan/13.gif");
buttons += emoticonButton(":shakehand", "http://www.kaskus.co.id/images/smilies/sumbangan/49.gif");
buttons += emoticonButton(":berbusa:", "http://www.kaskus.co.id/images/smilies/sumbangan/q20.gif");
buttons += emoticonButton(":frog:", "http://www.kaskus.co.id/images/smilies/sumbangan/frog.gif");
buttons += emoticonButton(":babi:", "http://www.kaskus.co.id/images/smilies/sumbangan/27.gif");
buttons += separator();

 editbar.innerHTML += buttons;
}
}


function emoticonButton(name, url) {
return "\";})();ButtonMouseDown(this);">" + name + "\n";
}

function separator() {
return "
\n"; } setemoticons("formatbar"); }, false);


Notes : If you use google chrome, save this script in the following directory :
~/.config/google-chrome/Default/Extensions/

Enjoy.

:D:beer::afro::metal::nohope::):doctor::najiss:mahos:shakehand:cool::army::ilovekaskuss:ck::ngacir:

0 comments to “Add Kaskus Emoticons On Blogger”

Post a Comment