Skip to content

Instantly share code, notes, and snippets.

@erichexter
Created October 6, 2014 20:08
Show Gist options
  • Save erichexter/96971d52b2c97cf94c14 to your computer and use it in GitHub Desktop.
Save erichexter/96971d52b2c97cf94c14 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Remove Left Nav Items
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://manage.windowsazure.com/*
// @grant unsafeWindow
// ==/UserScript==
function remove(){
var $ = unsafeWindow.jQuery;
console.log("in timeout");
$('.fxshell-nav1-count').each(function(index){
console.log(index);
var item=$(this);
if(item.text()==='0'){
item.hide();
item.parent().hide();
item.parent().parent().hide();
}
});
}
unsafeWindow.setInterval(remove,10000);
@erichexter
Copy link
Author

tamperMonkey script to remove left nav items from the manage.windowsazure.com menus, it finds any menu item that does not have subitems and removes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment