This is a very small and simple add-on. Just install the add-on and all external URLs and attachments in the attachment list open in a new browser tab.
Optionally you can define a CSS class, which will be added to every external URL and attachment link element in Confluence. This gives you the possibility to configure another display style for such links in the Confluence Stylesheets.
External Link Add-on (External Link Add-on)