// ==UserScript==
// @name           Make Canoe Usable
// @namespace      http://ertw.com/blog/
// @description    Remove canoe.ca's obnoxious search bar that always steals the focus, also stop the news from scrolling at the top
// @include        http://*.canoe.ca/*
// ==/UserScript==

(function(){

	window.addEventListener(
		'load', 
		function() {

		div = document.createElement('div');
		div.innerHTML = '<script language="javascript">'+
		'PauseTabs();' +
		'</script>';

		document.body.appendChild(div);

	}, true);

	var forms = document.getElementsByTagName('input');
	for (var i = 0; i < forms.length; i++) {
		if (forms[i].getAttribute("name") == "q" ||
			forms[i].getAttribute("name") == "query") {
			a = forms[i];
			a.parentNode.removeChild(a);
		}

	}
	
})();

