Another option is to modify Bootstrap to use Object.defineProperty($.fn, 'tooltip', ...) to prevent its value from being later overwritten. We want to force the Bootstrap implementation for tooltip in XWiki, so it should be OK. And if you really want to undo, we modify noConflict to remove the protection (i.e. delete the 'tooltip' property before assigning the previous value).
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.