ChatHider *OLD*

Hides chat by default, but adds show/hide links

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name           ChatHider *OLD*
// @namespace      Kilandor
// @description    Hides 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
// @version 0.0.1.20160422204229
// ==/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');
}());