Wowhead Auto-Wide

By Viper007Bond Last update Apr 18, 2009 — Installed 249 times. Daily Installs: 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 2, 0, 2, 2, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 2, 0, 0

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");