Skip to content

Instantly share code, notes, and snippets.

@chrisinajar
Created October 14, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chrisinajar/3889750 to your computer and use it in GitHub Desktop.
Save chrisinajar/3889750 to your computer and use it in GitHub Desktop.
better chat window
// Make a bookmark with this in it:
javascript:(function(){$("#button-chat-expand").click(function() {$("#chat").animate({top:0})}); $("#button-chat-collapse").click(function() {$("#chat").animate({top:285})});$("#chat").css($("#playback").position()).width(842);$("#chat-messages").width(823); $.each(document.styleSheets, function(i, styleSheet) { $.each(styleSheet.cssRules, function(j, rule) { if (rule.selectorText == '.chat-message, .chat-mention, .chat-emote, .chat-skip, .chat-moderation, .chat-system, .chat-update' || rule.selectorText == '.chat-superuser' || rule.selectorText == '.chat-moderator') rule.style.width = '788px'; })});})();
@pantlesswonder
Copy link

window.customStyle = document.createElement('style');
document.head.appendChild(window.customStyle);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment