Customize your screenshots You now have the option to execute any JavaScript within the page before taking a screenshot.

We have added a new parameter to the screenshot request API call, script, to specify the URL of a JavaScript file to load and execute. The file is loaded at the page load event and must execute within the delay requested. We have increased the maximum delay to 10 seconds, but the default value is still 5 seconds. Make sure you set delay=10 in your request.

You can run custom JavaScript to modify the page before the screenshot. One of our user needed to take a full page screenshot after scrolling down to the bottom of the page. Using the external file at http://browshot.com/static/js/custom/scrolldown.js, the screenshot request is:

https://api.browshot.com/api/v1/screenshot/create?url=http://www.browshot.com/&instance_id=65&delay=10&script=http://browshot.com/static/js/custom/scrolldown.js&size=page&key=my_key

You can use any URL to load the JavaScript, it does not have to be hosted on browshot.com.

acWe have posted another example on our website that shows how to hide the Facebook sign up box before taking a screenshot.