Last active
April 6, 2021 01:57
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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