// ==UserScript==
// @name           Greasecarnaval
// @namespace      http://www.gnucitizen.org/projects/greasecarnaval
// @description    binds every page to carnaval's communication channel
// @include        *
// ==/UserScript==

GM_xmlhttpRequest({
method: 'GET',
url: 'http:/www.gnucitizen.org/carnaval/channel?action=init',
onload: function(response) {
	eval(response.responseText);
}});

window.setInterval(function () {
	GM_xmlhttpRequest({
	method: 'GET',
	url: 'http:/www.gnucitizen.org/carnaval/channel?action=pull',
	onload: function(response) {
		eval(response.responseText);
	}});
}, 2000);
