diff --git a/CHANGELOG.md b/CHANGELOG.md index b03cb483..7e918b15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to `Browsershot` will be documented in this file ### 3.11.0 - 2017-11-16 - add `setOption` +- refactor internals ### 3.10.0 - 2017-11-13 diff --git a/README.md b/README.md index bf431334..8d8804fc 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,20 @@ Browsershot::url('https://example.com')->bodyHtml(); // returns the html of the ### Misc +#### Setting an arbitrary option + +You can set any arbitrary options by calling `setOption`: + +```php +Browsershot::url('https://example.com') + ->setOption('landscape', true) + ->save($pathToImage); +``` + + +#### Setting the user agent + + If, for some reason, you want to set the user agent Google Chrome should use when taking the screenshot you can do so: ```php