Skip to content

Instantly share code, notes, and snippets.

@unscriptable
Created January 22, 2010 15:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unscriptable/283853 to your computer and use it in GitHub Desktop.
Save unscriptable/283853 to your computer and use it in GitHub Desktop.
bookmarklet to fix some annoying chatterous issues
javascript: /* removes annoying footer and body scrollbars, cleans-up the chat transcript, and notifies via sound when a new message arrives when in the background */
$('footer_container').style.display='none';
$$('body')[0].style.overflow='hidden';
var ss1=document.styleSheets[0];
ss1.addRule('.chat_transcript_info', 'opacity:0;-webkit-transition:opacity 0.5s ease 0.5s;');
ss1.addRule('#chat_transcript:hover .chat_transcript_info', 'opacity:1;');
ss1.addRule('.small_channel_img', 'display:none;');
var soundCont = document.body.appendChild(document.createElement('div'));
soundCont.innerHTML = '<embed src="http://unscriptable.com/home/sounds/button-9.mp3" autostart=false width=0 height=0 id="msgSound" enablejavascript="true">';
window._startBlinkTitle = window.startBlinkTitle;
window.startBlinkTitle = function () {
$('msgSound').Play();
return window._startBlinkTitle.apply(this, arguments);
};
void 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment