Dev Tools Basics

This article will help you master your browser’s DevTools, so you can edit websites, tweets and more

Inspect Element

this is an essential tool for editing websites

How To Open

use CMD + SHIFT + C on macOS or CTRL + SHIFT + C on Windows or Linux
alternatively, you can right-click and press Inspect
Screenshot 2023-03-26 at 07 55 48

The Dev Tools Menu

Screenshot 2023-03-28 at 17 55 13 The menu is split up into many tabs:
Inspector and Console are the main ones we will be using
Inspector lets you view the HTML of a page and edit the changes live
Console allows you to view logs and use JavaScript commands note:this may look slightly different on other browsers, but the functionality will be the same

Using Inspect

I will be using example.com for this example, but this will work on any website or HTML document

  • Step 1
    open the dev tools
  • Step 2
    I would recommend making sure that this icon is highlighted
    Screenshot 2023-03-28 at 18 16 37
    this icon allows you to hover over an element and then click on it to jump to it in the inspect menu

Screen Recording 2023-03-28 at 18 19 08

Document Design mode

  • step 1 open the Console tab

DocumentDesignModeStep1

  • step 2
    type document.designMode = "on" and press enter DocumentDesignModeStep2

this enables document design mode, you can now start editing a page by simply clicking text, you can also delete elements by selecting them

dev_tools_info

Example

YouTube Sub Count

SubCountExample

  • Step 1
    go to a YouTube Channel, e.g. https://www.youtube.com/@RobotDaniel10
  • Step 2
    open the dev tools and go to the Console Tab
  • Step 3
    type document.designMode = "on" and press enter
  • Step 4
    find the sub count and click on the number
  • Step 5
    you should now have a text cursor on the number, you can now edit the text
Written on April 10, 2023