Learn how to enhance your website screenshots by injecting a custom CSS URL to modify the layout, colors, and visibility of elements on the webpage.
Using a custom CSS URL can effectively hide elements such as menus, headers, footers, notices, popups, and adverts, providing cleaner screenshots. Additionally, you can change the background color to save ink when printing screenshots.
Below is an example of using a custom CSS to hide the top menu, search bar, and change the background color:
// Line breaks added for readability https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&css_url=https://www.addscreenshots.com/css/demo/youtube.css
&url=https://youtube.com
Your API key can be found on the API Keys page. Need an API Key? Sign up to get started.
For internal applications, replace YOUR_API_KEY with your own unique API Key.
For public facing websites or hotlinks, generate a signed URL.