Skip to content

Instantly share code, notes, and snippets.

@armchairdeity
Last active April 6, 2021 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armchairdeity/bbe5b8546f80a4a6eed9f84f7c033998 to your computer and use it in GitHub Desktop.
Save armchairdeity/bbe5b8546f80a4a6eed9f84f7c033998 to your computer and use it in GitHub Desktop.
Prism modifications - removing menu items with a DOM watcher to build the new JS-based right-sidebar entities
let config = {
keep: {
entityNames: [
'VMs',
'Images',
'Virtual Private Clouds',
'Floating IPs',
'Categories',
'Availability Zones',
'Protection Policies',
'Recovery Plans',
'Recoverable Entities'
]
}
}
$(".entityname").each((i,e) => {
if ($.inArray(e.innerHTML,config.keep.entityNames) < 0) $(e).parent().remove()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment