Free javascript Hosting


kaskusfull.js

Uploaded on Jan 11 2010 00:14 by gajahjongkok

// Based on the original emoticonsforblogger by Kuribo (http://www.kuribo.info/2006/04/emoticons-for-blogger.html)
// Modified by Groho (http://usercp.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 KaskusEmoticon
// @namespace http://usercp.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 = "<br />";

buttons += emoticonButton(":ilovekaskus", "http://www.kaskus.us/images/smilies/s_sm_ilovekaskus.gif");
buttons += emoticonButton(":iloveindonesia", "http://www.kaskus.us/images/smilies/I-Luv-Indonesia.gif");
buttons += emoticonButton(":kiss", "http://www.kaskus.us/images/smilies/cewek.gif");
buttons += emoticonButton(":maho", "http://www.kaskus.us/images/smilies/s_sm_maho.gif");
buttons += emoticonButton(":najis", "http://www.kaskus.us/images/smilies/najis.gif");
buttons += emoticonButton(":nosara", "http://www.kaskus.us/images/smilies/nosara.gif");
buttons += emoticonButton(":marah", "http://www.kaskus.us/images/smilies/marah.gif");
buttons += emoticonButton(":berduka", "http://www.kaskus.us/images/smilies/berduka.gif");
buttons += emoticonButton(":malu", "http://www.kaskus.us/images/smilies/malu.gif");
buttons += emoticonButton(":ngakak", "http://www.kaskus.us/images/smilies/ngakak.gif");
buttons += emoticonButton(":repost", "http://www.kaskus.us/images/smilies/s_sm_repost1.gif");
buttons += emoticonButton(":repost2", "http://www.kaskus.us/images/smilies/s_sm_repost2.gif");
buttons += emoticonButton(":sup2:", "http://www.kaskus.us/images/smilies/sundul.gif");
buttons += emoticonButton(":cendolbig", "http://www.kaskus.us/images/smilies/s_big_cendol.gif");
buttons += emoticonButton(":batabig", "http://www.kaskus.us/images/smilies/s_big_batamerah.gif");
buttons += emoticonButton(":recsel", "http://www.kaskus.us/images/smilies/recseller.gif");
buttons += emoticonButton(":takut", "http://www.kaskus.us/images/smilies/takut.gif");
buttons += emoticonButton(":ngacir2", "http://www.kaskus.us/images/smilies/ngacir2.gif");
buttons += emoticonButton(":shakehand2", "http://www.kaskus.us/images/smilies/shakehand2.gif");
buttons += emoticonButton(":bingung", "http://www.kaskus.us/images/smilies/bingung.gif");
buttons += emoticonButton(":cekpm", "http://www.kaskus.us/images/smilies/cekpm.gif");
buttons += emoticonButton(":cd", "http://www.kaskus.us/images/smilies/capede.gif");
buttons += emoticonButton(":hammer", "http://www.kaskus.us/images/smilies/hammer.gif");
buttons += emoticonButton(":peluk", "http://www.kaskus.us/images/smilies/peluk.gif");
buttons += emoticonButton(":cendolb", "http://www.kaskus.us/images/smilies/s_sm_cendol.gif");
buttons += emoticonButton(":bata", "http://www.kaskus.us/images/smilies/s_sm_batamerah.gif");
buttons += emoticonButton(";)b", "http://www.kaskus.us/images/smilies/s_sm_smile.gif");
buttons += emoticonButton(":Yb", "http://www.kaskus.us/images/smilies/s_sm_peace.gif");
buttons += emoticonButton(":jrb:", "http://www.kaskus.us/images/smilies/fd_1.gif");
buttons += emoticonButton(":kts:", "http://www.kaskus.us/images/smilies/fd_6.gif");
buttons += emoticonButton(":sup:", "http://www.kaskus.us/images/smilies/fd_5.gif");
buttons += emoticonButton(":kbgt:", "http://www.kaskus.us/images/smilies/fd_4.gif");
buttons += emoticonButton(":kacau:", "http://www.kaskus.us/images/smilies/fd_8.gif");
buttons += emoticonButton(":bigo:", "http://www.kaskus.us/images/smilies/fd_3.gif");
buttons += emoticonButton(":repost:", "http://www.kaskus.us/images/smilies/fd_7.gif");
buttons += emoticonButton("http://www.kaskus.us/images/smilies/fd_2.gif", ":cd:");
buttons += emoticonButton(":think:", "http://www.kaskus.us/images/smilies/sumbangan/006.gif");
buttons += emoticonButton(":exclamati", "http://www.kaskus.us/images/smilies/sumbangan/52.gif");
buttons += emoticonButton(":Onigiri:", "http://www.kaskus.us/images/smilies/sumbangan/rice.gif");
buttons += emoticonButton(":table:", "http://www.kaskus.us/images/smilies/sumbangan/39.gif");
buttons += emoticonButton(";)", "http://www.kaskus.us/images/smilies/sumbangan/13.gif");
buttons += emoticonButton(":kucing:", "http://www.kaskus.us/images/smilies/sumbangan/28.gif");
buttons += emoticonButton(":beer:", "http://www.kaskus.us/images/smilies/sumbangan/smiley_beer.gif");
buttons += emoticonButton(":shutup:", "http://www.kaskus.us/images/smilies/sumbangan/5.gif");
buttons += emoticonButton(":shakehand", "http://www.kaskus.us/images/smilies/sumbangan/49.gif");
buttons += emoticonButton(":berbusa:", "http://www.kaskus.us/images/smilies/sumbangan/q20.gif");
buttons += emoticonButton(":breakheart", "http://www.kaskus.us/images/smilies/sumbangan/38.gif");
buttons += emoticonButton(":D", "http://www.kaskus.us/images/smilies/sumbangan/14.gif");
buttons += emoticonButton(":babi:", "http://www.kaskus.us/images/smilies/sumbangan/27.gif");
buttons += emoticonButton(":frog:", "http://www.kaskus.us/images/smilies/sumbangan/frog.gif");
buttons += emoticonButton(":Peace:", "http://www.kaskus.us/images/smilies/sumbangan/005.gif");
buttons += emoticonButton(":thumbdown", "http://www.kaskus.us/images/smilies/sumbangan/48.gif");
buttons += emoticonButton(":metal:", "http://www.kaskus.us/images/smilies/sumbangan/q17.gif");
buttons += emoticonButton(":heart:", "http://www.kaskus.us/images/smilies/sumbangan/37.gif");
buttons += emoticonButton(":o", "http://www.kaskus.us/images/smilies/sumbangan/07.gif");
buttons += emoticonButton(":linux2:", "http://www.kaskus.us/images/smilies/sumbangan/26.gif");
buttons += emoticonButton(":afro:", "http://www.kaskus.us/images/smilies/sumbangan/kribo.gif");
buttons += emoticonButton(":matabelo:", "http://www.kaskus.us/images/smilies/sumbangan/004.gif");
buttons += emoticonButton(":thumbup:", "http://www.kaskus.us/images/smilies/sumbangan/47.gif");
buttons += emoticonButton(":genit:", "http://www.kaskus.us/images/smilies/sumbangan/q03.gif");
buttons += emoticonButton(":kissmouth", "http://www.kaskus.us/images/smilies/sumbangan/36.gif");
buttons += emoticonButton(":tabrakan:", "http://www.kaskus.us/images/smilies/tabrakan.gif");
buttons += emoticonButton(":(", "http://www.kaskus.us/images/smilies/sumbangan/06.gif");
buttons += emoticonButton(":linux1:", "http://www.kaskus.us/images/smilies/sumbangan/25.gif");
buttons += emoticonButton(":hi:", "http://www.kaskus.us/images/smilies/sumbangan/hi.gif");
buttons += emoticonButton(":nohope:", "http://www.kaskus.us/images/smilies/sumbangan/q11.gif");
buttons += emoticonButton(":siul:", "http://www.kaskus.us/images/smilies/sumbangan/020.gif");
buttons += emoticonButton(":malu:", "http://www.kaskus.us/images/smilies/sumbangan/1.gif");
buttons += emoticonButton(":norose:", "http://www.kaskus.us/images/smilies/sumbangan/35.gif");
buttons += emoticonButton(":)", "http://www.kaskus.us/images/smilies/sumbangan/15.gif");
buttons += emoticonButton(":army:", "http://www.kaskus.us/images/smilies/sumbangan/24.gif");
buttons += emoticonButton(":fuck3:", "http://www.kaskus.us/images/smilies/sumbangan/fuck-8.gif");
buttons += emoticonButton(":Paws:", "http://www.kaskus.us/images/smilies/sumbangan/paw.gif");
buttons += emoticonButton(":doctor:", "http://www.kaskus.us/images/smilies/sumbangan/18.gif");
buttons += emoticonButton(":confused:", "http://www.kaskus.us/images/smilies/sumbangan/7.gif");
buttons += emoticonButton(":rose:", "http://www.kaskus.us/images/smilies/sumbangan/34.gif");
buttons += emoticonButton(":ngacir:", "http://www.kaskus.us/images/smilies/ngacir.gif");
buttons += emoticonButton(":angel:", "http://www.kaskus.us/images/smilies/sumbangan/017.gif");
buttons += emoticonButton(":fuck2:", "http://www.kaskus.us/images/smilies/sumbangan/fuck-6.gif");
buttons += emoticonButton(":kagets:", "http://www.kaskus.us/images/smilies/sumbangan/3.gif");
buttons += emoticonButton(":tv:", "http://www.kaskus.us/images/smilies/sumbangan/44.gif");
buttons += emoticonButton(":eek:", "http://www.kaskus.us/images/smilies/sumbangan/4.gif");
buttons += emoticonButton(":medicine:", "http://www.kaskus.us/images/smilies/sumbangan/33.gif");
buttons += emoticonButton(":fm:", "http://www.kaskus.us/images/smilies/smileyfm329wj.gif");
buttons += emoticonButton(":kissing:", "http://www.kaskus.us/images/smilies/sumbangan/014.gif");
buttons += emoticonButton(":fuck:", "http://www.kaskus.us/images/smilies/sumbangan/fuck-4.gif");
buttons += emoticonButton(":wowcantik", "http://www.kaskus.us/images/smilies/sumbangan/001.gif");
buttons += emoticonButton(":email:", "http://www.kaskus.us/images/smilies/sumbangan/43.gif");
buttons += emoticonButton(":mad:", "http://www.kaskus.us/images/smilies/sumbangan/12.gif");
buttons += emoticonButton(":ricebowl:", "http://www.kaskus.us/images/smilies/sumbangan/32.gif");
buttons += emoticonButton(":ck", "http://www.kaskus.us/images/smilies/sumbangan/kaskuslove.gif");
buttons += emoticonButton(":hammer:", "http://www.kaskus.us/images/smilies/sumbangan/8.gif");
buttons += emoticonButton(":flower:", "http://www.kaskus.us/images/smilies/sumbangan/e03.gif");
buttons += emoticonButton(":buldog:", "http://www.kaskus.us/images/smilies/sumbangan/woof.gif");
buttons += emoticonButton(":clock:", "http://www.kaskus.us/images/smilies/sumbangan/42.gif");
buttons += emoticonButton(":rolleyes:", "http://www.kaskus.us/images/smilies/sumbangan/01.gif");
buttons += emoticonButton(":coffee:", "http://www.kaskus.us/images/smilies/sumbangan/31.gif");
buttons += emoticonButton(":amazed:", "http://www.kaskus.us/images/smilies/sumbangan/amazed.gif");
buttons += emoticonButton(":sun:", "http://www.kaskus.us/images/smilies/sumbangan/008.gif");
buttons += emoticonButton(":rainbow:", "http://www.kaskus.us/images/smilies/sumbangan/e02.gif");
buttons += emoticonButton(":bikini:", "http://www.kaskus.us/images/smilies/sumbangan/vana-bum-vanaweb-dot-com.gif");
buttons += emoticonButton(":Phone:", "http://www.kaskus.us/images/smilies/sumbangan/41.gif");
buttons += emoticonButton(":cool:", "http://www.kaskus.us/images/smilies/sumbangan/05.gif");
buttons += emoticonButton(":baby:", "http://www.kaskus.us/images/smilies/sumbangan/30.gif");
buttons += emoticonButton(":gila:", "http://www.kaskus.us/images/smilies/sumbangan/crazy.gif");
buttons += emoticonButton(":moon:", "http://www.kaskus.us/images/smilies/sumbangan/007.gif");
buttons += emoticonButton(":rain:", "http://www.kaskus.us/images/smilies/sumbangan/60.gif");
buttons += emoticonButton(":tai:", "http://www.kaskus.us/images/smilies/sumbangan/shit-3.gif");
buttons += emoticonButton(":present:", "http://www.kaskus.us/images/smilies/sumbangan/40.gif");
buttons += emoticonButton(":p", "http://www.kaskus.us/images/smilies/sumbangan/6.gif");
buttons += emoticonButton(":anjing:", "http://www.kaskus.us/images/smilies/sumbangan/29.gif");
buttons += emoticonButton(":kawin:", "http://www.kaskus.us/images/smilies/sumbangan/smiley_couple.gif");
buttons += emoticonButton(":bingung:", "http://www.kaskus.us/images/smilies/bolakbalik.gif");
buttons += emoticonButton(":mewek", "http://i50.tinypic.com/2n9032t.jpg");
buttons += emoticonButton(":rate", "http://i46.tinypic.com/1i7bb.jpg");
buttons += emoticonButton(":supermaho", "http://i45.tinypic.com/juffva.jpg");
buttons += emoticonButton(":alay", "http://i50.tinypic.com/206kfte.jpg");
buttons += emoticonButton(":hoax", "http://i50.tinypic.com/2iuyekg.jpg");
buttons += emoticonButton(":nerd", "http://i45.tinypic.com/dxd2mw.jpg");
buttons += emoticonButton(":hottrit", "http://i48.tinypic.com/1z36zas.jpg");
buttons += emoticonButton(":sungkem", "http://i50.tinypic.com/29shgg.jpg");
buttons += emoticonButton(":becak", "http://i46.tinypic.com/zumwq9.jpg");
buttons += emoticonButton(":hope", "http://i49.tinypic.com/n3kznm.jpg");
buttons += emoticonButton(":pertamax", "http://i47.tinypic.com/2vu0iuo.jpg");
buttons += emoticonButton(":thxmod", "http://i49.tinypic.com/2s16pat.jpg");
buttons += emoticonButton(":lapar", "http://i45.tinypic.com/v8j48z.jpg");
buttons += emoticonButton(":siul", "http://i48.tinypic.com/24needd.jpg");
buttons += emoticonButton(":malu2", "http://i50.tinypic.com/vcvy1l.jpg");
buttons += emoticonButton(":ngintip", "http://i49.tinypic.com/2i1msgp.jpg");
buttons += emoticonButton(":newyear", "http://i48.tinypic.com/ogj9z5.jpg");
buttons += emoticonButton(":cendol", "http://i47.tinypic.com/2vdfjbp.jpg");
buttons += emoticonButton(":pocong", "http://u.kaskusnetworks.com/1/9dbdgijk.gif");
buttons += emoticonButton(":kuntilanak", "http://u.kaskusnetworks.com/1/eoqzdjs4.gif");

buttons += separator();

editbar.innerHTML += buttons;
}
}


function emoticonButton(name, url) {
return "<span class='' style='display: block;' id='htmlbar_undefined' title='" + name + "' onmouseover='ButtonHoverOn(this);' onmouseout='ButtonHoverOff(this);' onmouseup='' onmousedown='CheckFormatting(event);(function() {var rich_edit = document.getElementById(\"richeditorframe\");var rich_body = rich_edit.contentDocument.getElementsByTagName(\"body\");rich_body[0].innerHTML+=\"<img class=\\\"emoticon\\\" src=\\\""+url+"\\\" width=\\\"60\\\" height=\\\"50\\\" alt=\\\"" + name + "\\\" title=\\\"" + name + "\\\" />\";})();ButtonMouseDown(this);'><img src='" + url + "' alt='" + name + "' border='0'></span>\n";
}

function separator() {
return "<div style=\"display: block;\" class=\"vertbar\"><span style=\"display: block;\" class=\"g\">&nbsp;</span><span style=\"display: block;\" class=\"w\">&nbsp;</span></div>\n";
}

setemoticons("formatbar");

}, false);

Back to list