cross-origin

Java-script API system for content publishing

I'm currently stumped on how to approach this situation. my application is a content sharing system that requires the user to load my javascript file that would position a button for sharing and on click it would automatically collect content from the page and publish it to my application. My question is: What is the best way to find ...