The default code would be:
<script type="text/discourse-plugin" version="0.8">
api.replaceIcon('link', 'share-alt');
</script>
Strangely this doesn’t work. It does work with other icons used just next to it, like bookmark or flag. link should be the icon’s name though..
@darkpixlz you recently posted about replacing the link icon with a cake in the sidebar.. did you use a different icon name here?