AnchorFree banner killer

By Palaniraja Last update Aug 1, 2007 — Installed 4,796 times. Daily Installs: 2, 2, 1, 0, 2, 1, 2, 0, 1, 4, 0, 2, 1, 4, 3, 3, 7, 4, 3, 3, 3, 6, 2, 7, 8, 2, 2, 0, 2, 2, 0, 5
/*

Remove Banner from the top when you use Anchor Free Hotspot shield

Version 0.1
(C) 2007 A.P.Palaniraja<A.P.Palaniraja@gmail.com>
Use this freely under the GNU GPL, http://www.gnu.org/licenses/gpl.html
*/

// ==UserScript==
// @name          AnchorFree banner killer
// @description   Remove Banner from the top when you use Anchor Free Hotspot shield / Please deactivate the script after disconnecting Hotspot shield
// @include       *
// ==/UserScript==
//*[@id="resultright"]

var css = "@namespace url(http://www.w3.org/1999/xhtml); html {margin-top:0px} body{margin-top:-90px;}";

if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var heads = document.getElementsByTagName("head");
	//console.log("printing heads",heads);
	if (heads.length > 0) {
		var node = document.createElement("style");
		node.type = "text/css";
		node.innerHTML = css;
		heads[0].appendChild(node); 
		
	}
}

var topBar = document.getElementById('iframe-af-container');
if(topBar) {
 topBar.parentNode.removeChild(topBar);
}

/*document.getElementById('body-af-container').style.position='absolute';
document.getElementById('body-af-container').style.top='0px';
document.getElementById('body-af-container').style.left='0px';*/
//document.getElementById('body-af-container').style.marginTop='-90px';