Allow to hide Ethernet/Wireless items from system menu in top bar on locked down systems
Feature summary
I'm a sysadmin at a University and I'm deploying Ubuntu (20.04) lab systems that I would like to be relatively locked down. Given that standard accounts are limited and down allow general users to change network settings, I'd like the ability to hide networking options so the system menus on the top right are tidy.
How would you like it to work
It would be great if these features worked out of the box as it could be useful to other people with my use case, however I imagine I will need to create an extension for this to work.
I have forked a version of an existing extension as this already gives me the ability to stop students from shutting down computers. I'm have made some small edits which add options to the remove eth/wifi buttons, this is pretty early on:
https://github.com/jamboNum5/bring-out-submenu-of-power-off-logout
I'm no javascript expert, so I'm struggling to find the necessary methods to hook into the system and remove the networking options. I have played with alt + f2 lg to bring up the gnome inspector, but this doesn't allow me to click on the network options from the top right.
Any directions on how to do this would be great, thanks in advance.