How to Remove an Element from a Website in Firefox

How to Remove Any Element from Any Website in Firefox (for Screenshots etc.)

by Heinz Tschabitscher | Jun 26, 2026 | Useful Tech

Trying to take a screenshot (or just look at a website) — but an obnoxious overlay, menu, pop-up or interstitial keeps getting in the way? Find out here how to remove any element from any website in Firefox ⤓ for cleaner screenshots and a clutter-free experience.

How to Remove Any Element from a Website in Firefox (for Screenshots etc.)

Time needed: 3 minutes

To remove a part of a website (such as a menu or overlay) temporarily in Firefox (e.g., to take a screenshot):

  1. Click on the web page element you want to remove with the right mouse button.

  2. Select Inspect from the context menu that has appeared.

    No “Inspect”: If you do not see Inspect in the context menu, Firefox developer tools may be disabled; see below for enabling them.
    Open Firefox developer tools using “Inspect” in a page’s context menu

  3. Highlight the node that encompasses the element you want to delete in Inspector.

    Here’s where: Start with the node that has been selected; if that does not cover everything, try the node one level up.
    Here’s how: Firefox will highlight the node from the source code Inspector in the web site display; use that to find the node to remove.
    Find the part of HTML code that encompasses the part of the web page you want to remove in Firefox Inspector

  4. Click on the node with the right mouse button.

  5. Select Delete node from the context menu.

    No undo: Note that you cannot easily add the node back; see below for an alternative that hides elements instead of removing them.
    Select “Delete Node” to remove an unwanted element form a website (e.g., to take a screenshot) in Firefox

  6. Close developer tools.

    Back to in all: To go back to the original display, reload the page.
    Their word: Mozilla include information on developer tools in an MDN article.
    A web page with an element removed in Firefox

website.cleaned.up?

Buy La De Du a tea

Tips help fuel these email and tech how-tos.

Hide an Element on a Website

As an alternative, you can edit the HTML source code for the node and make it invisible if this is possible with reasonable effort.

To make an element invisible in Firefox:

  1. Open the element in Inspector (see above).
  2. Click on the node with the right mouse button.
  3. Select Edit As HTML from the menu.
  4. Add style="display:none;" to the element’s opening tag as inline CSS.
    Example: To hide a headline, make <h1> read <h1 style="display:none;">.
  5. Click outside the HTML editor.

How to Remove Any Element from a Website in Firefox (for Screenshots etc.): FAQ

I cannot open Firefox developer tools; how can I enable them?

Most likely, developer tools have been disabled using a Firefox policy.

To enable access to developer tools:

(Tested with Firefox 127–152; first published June 2024, last updated June 2026)

Home » Useful Tech » How to Remove an Element from a Website in Firefox