You can run any Javascript before taking a screenshot of the page. Specify the URL of a javascript file to load during your screenshot request. The URL will be loaded just after the page load event. You need to ensure that your script will finish executing before the delay set during the request (current maximum: 10 seconds).
For example, take a screenshot of a full page after scrolling down to the bottom. The script to scroll down is located at https://browshot.com/static/js/custom/scrolldown.js:
https://api.browshot.com/api/v1/screenshot/create?url=http://www.browshot.com/&instance_id=65&delay=10&script=https://browshot.com/static/js/custom/scrolldown.js&size=page&key=my_api_key
You can use custom JavaScript code to hide or show HTML elements on a page. For example, you can use https://browshot.com/static/js/custom/facebook-hide.js to hide the Facebook sign up page.
Remember that you can host your JavaScript file anywhere. Alternatively, you can include Javascript content inside the script_inline API parameter.
no credit card required