Recently i have created an app which uses custom JavaScript in sidebar home page component using custom links, The app works perfectly and i also uploaded it to appexchange as managed released package and submitted it to review by salesforce.
Unfortunately review is negative saying Custom javascript is not allowed to run on Salesforce DOM. Below is details
1) Javascript in Salesforce DOM Vulnerability
Notes
Custom javascript is not allowed to run on Salesforce DOM.
Please check the requirement checklist for more information
https://developer.salesforce.com/page/Requirements_Checklist
Please guide how to resolve this.
**Custom Link Body:**
{!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')}
{!REQUIRESCRIPT('/resource/customjavascript')}