Wowhead Auto-Wide

By Viper007Bond Last update Apr 18, 2009 — Installed 350 times.

There are 4 previous versions of this script.

// ==UserScript==
// @name           Wowhead Auto-Wide
// @namespace      http://userscripts.org/users/75016
// @description    Automatically "clicks" the Wowhead expand button.
// @include        http://*.wowhead.com/?*
// ==/UserScript==

function ViperHideEl(ID) {
	var element = document.getElementById(ID);
	if ( element ) {
		element.style.display = "none";
	}
}

document.getElementById("wrapper").className = "nosidebar";

ViperHideEl("infobox-ad");
ViperHideEl("sidebar-ad");
ViperHideEl("topbar-expand");
ViperHideEl("sidebar");