Forum Discussion
aymiee
May 24, 2023Brass Contributor
MutationObserver to modify the SharePoint UI
Has anyone used the MutationObserver to modify the SharePoint UI? I want to remove the "Move To" and "Copy To" from the context menu (Right Click and ellipse). Is this stable and reliable? ShareP...
aymiee
May 25, 2023Brass Contributor
Thank you!, I was able to remove all options from the top menu using the Format View. The context menu is the next step and I understand that it's not recommended but we have to turn off the ability to move to and copy to, unfortunately.
ganeshsanap
May 26, 2023MVP
aymiee Then try using SPFx application customizer and custom CSS/JS for hiding it as mentioned in my above response.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.