Created
January 22, 2010 15:42
-
-
Save unscriptable/283853 to your computer and use it in GitHub Desktop.
bookmarklet to fix some annoying chatterous issues
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
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