Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- 'use strict';
- $('<style>')
- .text([
- '.shoutbox-lenny {'
- , ' background-color: #ff6600;'
- , ' color: white !important;'
- , ' display: inline-block;'
- , ' line-height: 24px;'
- , ' vertical-align: middle;'
- , ' border-radius: 12px;'
- , ' padding: 0 10px;'
- , '}'
- ].join('\n'))
- .appendTo('head')
- ;
- $(function() {
- var $message = $('#shoutbox_message');
- var session = $message.next().attr('onclick').replace(/.*'(.*)'.*/, '$1');
- $('<a>', {
- href: '#',
- text: '( ͡° ͜ʖ ͡°)',
- 'class': 'shoutbox-lenny',
- })
- .on('click', function(event) {
- $message.val($.trim($message.val() + ' ( ͡° ͜ʖ ͡°)'));
- Shoutbox_SentMsg(session);
- event.preventDefault();
- })
- .prependTo('#shoutbox table:last td:last div')
- ;
- });
- }(jQuery));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement