// ==UserScript== // @name InstaSynch emote list // @description Shows a list of available emotes, hidden by default and toggled by button. Click on an emote to post it. // @namespace oh no oh god oh man og nafaasdasd // @include http://instasync.com/r/* // @version 1.23 // @run_at document_end // @grant none // @downloadURL https://update.greasyfork.icu/scripts/5484/InstaSynch%20emote%20list.user.js // @updateURL https://update.greasyfork.icu/scripts/5484/InstaSynch%20emote%20list.meta.js // ==/UserScript== $("").appendTo("head"); // post a message function sendMessage(message){ $('#cin').val(message); $('#cin').trigger({ type : 'keypress', which : 13 }); } sndmsg_pre = "$(\"#cin\").val(\"" sndmsg_post = "\");$(\"#cin\").trigger({ type : \"keypress\", which : 13 });" function toDo(){ var emotes_button = $("\ "); if($(".mod-control").is(":visible")){ emotes_button.insertAfter("#create_poll_btn_column"); } else{ emotes_button.insertBefore(".mod-control"); } emote_container=$("\
").insertAfter("#poll_column") for(code in $codes){ emote_container.find(">:first-child").append(""+code+":"+$codes[code]+"") } emote_container.toggle(); } // gotta delay the script to allow other scripts to settle down setTimeout(toDo,2500);