Integrating Only the Link Preview to a theme

Can the developer tell me how I can only integrate the "add link" button to my theme. I want to strip down all unnecessary files and codes from the plugin and only keep the "add link" feature's necessary codes.

Thanks