When saving a page or content i want to be able to perform custom operation on the slug BEFORE the page is saved. I would go the add-on way but don't know which event to listen to.

Is there way to add custom button near the sidebar slug field (or anywhere else in the control panel not just the menu) ?