Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Polypane to hide elements tip #130

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/img/hide-elements-polypane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions src/tips/en/hide-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
date: 2024-06-12
authors: Patrick Brosset
title: Hide elements from the page, without changing the layout
tags: ["tip", "personalization", "css", "browser:edge", "browser:chrome", "browser:firefox"]
tags: ["tip", "personalization", "css", "browser:edge", "browser:chrome", "browser:firefox", "browser:polypane"]
see-also: ["remove-annoying-overlays.md"]
---
In the DevTools' **Elements** (or **Inspector**) tool, you can delete nodes from the DOM tree by selecting them in the tool and then pressing <kbd>Delete</kbd> or <kbd>Backspace</kbd>. While this is great to completely remove the elements and make others take more space for example, it can also break the CSS layout of the page.
Expand All @@ -18,7 +18,7 @@ To hide an element without removing it from the DOM tree, in DevTools:
1. Go to the **Elements** tool (called **Inspector** in Firefox).
1. Select the element you want to hide.

* Either from the poage, by right-clicking on it and selecting **Inspect**.
* Either from the page, by right-clicking on it and selecting **Inspect**.
* Or from the tool, by finding and clicking on the element in the DOM tree.

1. Press <kbd>H</kbd> on your keyboard.
Expand All @@ -28,3 +28,11 @@ To hide an element without removing it from the DOM tree, in DevTools:
To show the element again, make sure it's selected in the **Elements**/**Inspector** tool, and press <kbd>H</kbd> again.

![Chrome with DevTools opened, showing how pressing H hides elements from the page](../../assets/img/hide-elements.png)

### In Polypane

1. Select the element you want to hide in the **Elements** panel.
1. Click the **Eye** button in the toolbar. It will go from an open eye to a closed eye.
1. Click it again to show the element again.

![Polypane with the Elements panel opened, showing how Clicking the eye icon hides elements from the page](../../assets/img/hide-elements-polypane.png)
Loading