This is the correct approach. You are using the plugin api and decorateWidget
which is the way you should modify things.
Why is positioning the links tough? Are they not appearing in the right place in the DOM? If not maybe I can add something to make them easier to insert in the right place.