Created
December 19, 2009 22:35
-
-
Save skyboy/260264 to your computer and use it in GitHub Desktop.
A "That's what she said." button and more
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// original | |
javascript:$('header').innerHTML+='<div class="skyBox"><div id="skyTitle">[Buttons & Notes]</div><style>#skyTitle{background:#808080 none repeat scroll 0 0; margin: 0;position:absolute; top: 0; left: 0; width: 100%;}.skyBox{background:black none repeat scroll 0 0; border:1px solid black; cursor:default;font-size:13px; line-height:20px; margin:0; padding: 5px;position:fixed; z-index:199; top: 90px; left: 0px;}._SKY-InfoMessage{font-weight:bold;background-color:#EFEFEF;border: 1px solid #808080;}</style><p><br><textarea rows="5" cols="32" id="console2"></textarea><br><input type="button" onclick="sendChatMessage($(\'console2\').value)" value="Send"/><input type="button" onclick="sheSaid()" value="She Said"/><input type="button" onclick="Clear()" value="Clear"/></p></div>';function Clear() {holodeck.activeDialogue().clear();}function sendChatMessage(a){a = a.replace(/\\\\(?!u[0-9a-fA-f]{4}|x[0-9a-fA-f]{2})/g, "\\\\\\\\");dispatchToKonduit({type:KonduitEvent.ROOM_MESSAGE,data:{message:a,room:holodeck.chatWindow()._active_room._room}});return a;}function sheSaid(){sendChatMessage("That\'s what she said.");};void(0); | |
// slim | |
javascript:$('header').innerHTML+='<style>.TWSS{clear:none;margin:0px;padding:0px 5px;} .TWSSc{position:absolute;left:235px;top:3px}</style>';function sheSaid(){sendChatMessage("That\'s what she said.");holodeck.activeDialogue()._input_node.focus()};function sendChatMessage(a){a = a.replace(/\\\\(?!u[0-9a-fA-f]{4}|x[0-9a-fA-f]{2})/g, "\\\\\\\\");dispatchToKonduit({type:KonduitEvent.ROOM_MESSAGE,data:{message:a,room:holodeck.chatWindow()._active_room._room}});return a;};holodeck.addChatCommand("twss", sheSaid);holodeck.addChatCommand("TWSS", sheSaid);(function(){var a=$$(".room_name_container"),b,i;for(i in a){if(!(b=a[i]).TWSS)b.TWSS=b.innerHTML+="<span class='TWSSc'><input type='button' onclick='sheSaid();' class='TWSS' value='TWSS'></span>";}})();void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment