
function removeChatWindow() {

	$('table:eq(3) td:eq(2) center:eq(0) *:lt(2)').remove();
	$('table:eq(3) td:eq(2) br').remove();
}

$(document).ready(function() {
	
	// FORUM.PHP
	if(window.location.href.match('forum.php')) {
	
		// Remove chat window
		if(dataStore['chat_hide']) {
			removeChatWindow();
		}
		
		if(dataStore['valami']) {
			// valami
		}
	}
});


var dataStore;
var port = chrome.extension.connect();


port.postMessage({ type : "getStorageData" });

port.onMessage.addListener(function(response) {

	if(response.type == 'setStorageData') {
		dataStore = response.data;
		extInit();
	}
});
@@ -273,16 +273,26 @@
 t_hide'%5D
+ == 'true'
 ) %7B%0A%09%09%09r
@@ -318,56 +318,8 @@
 %09%09%7D%0A
-%09%09%0A%09%09if(dataStore%5B'valami'%5D) %7B%0A%09%09%09// valami%0A%09%09%7D%0A
 %09%7D%0A%7D

fix chat hiding option