Forrest logo
back to the pageres tool

pageres:tldr:5ff8a

pageres: Hide a specific element.
$ pageres ${https:--example-com-} ${1366x768} --hide='${-page-header}'
try on your machine

The command provided is using the "pageres" tool to generate a screenshot of a webpage. Here's a breakdown of each element in the command:

  1. pageres: This is the command used to run the "pageres" tool.

  2. ${https:--example-com-}: This specifies the URL of the webpage that you want to take a screenshot of. In this case, it's set to "https://example.com".

  3. ${1366x768}: This determines the dimensions of the browser window in which the screenshot will be taken. The given dimensions are 1366x768 pixels, representing the width and height, respectively.

  4. --hide='${-page-header}': This flag is used to hide specific elements in the webpage before taking the screenshot. In this case, the element to be hidden is referenced as ${-page-header}. The exact nature and purpose of this element may depend on the specific implementation or customization of the "pageres" tool.

Overall, this command is instructing the "pageres" tool to capture a screenshot of the webpage "https://example.com" while the browser window size is set to 1366x768 pixels. It also specifies to hide a particular element referenced as ${-page-header}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pageres tool