Kongregate Chat Hider

By Kilandor Last update Sep 15, 2009 — Installed 269 times.

There are 1 previous version of this script.

// ==UserScript==
// @name           Kongregate Chat Hider
// @namespace      Kilandor
// @description    Hides Kongregate Chat by Default, but adds show/hide links
// @include        http://*.kongregate.com/games/*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==

(function() {
	// Append some text to the element with id #someText using the jQuery library.
	$("#chat_tab_pane").wrap('<div id="kongchatroom"></div>');
	$("#main_tab_set").after('<script type="text/javascript">function konghidechat(){document.getElementById(\'kongchatroom\').style.display = \'block\';}function kongshowchat(){document.getElementById(\'kongchatroom\').style.display = \'none\';}</script><div id="kongchatmenu"><a href="#maingame" onclick="konghidechat()">Show</a> / <a href="#maingame" onclick="kongshowchat()">Hide</a></div>');
	$("#kongchatroom").css('display', 'none');
}());