hide Garoon application_menu
// hide Garoon application_menu
// version 0.1 BETA!
// 2009/03/19
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.
//
// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "hide Garoon application_menu", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name hide Garoon application_menu
// @namespace http://www.fun.ac.jp/~niimi/
// @description hide Garoon application_menu on cbz.fun.ac.jp
// @include https://cbz.fun.ac.jp/*
// @exclude https://cbz.fun.ac.jp/scripts/cbgrn/grn.exe/portal/*
// ==/UserScript==
var allDivs, thisDiv;
allDivs = document.evaluate(
"//div[@class='application_menu']",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < allDivs.snapshotLength; i++) {
thisDiv = allDivs.snapshotItem(i);
// do something with thisDiv
if (thisDiv) {
thisDiv.parentNode.removeChild(thisDiv);
}
}